Skip to content

textplot_influence raises error #1116

Description

@cschwem2er

Hi,

this is probably due to the affinity textmodel still being work in progress, but with the latest quanteda build, textplot_influence() raises an error for the example from manual:

fitted <- textmodel_affinity(data_dfm_lbgexample, y = c("L", NA, NA, NA, "R", NA))
pred <- predict(fitted)

> textplot_influence(fitted)
Error in textplot_influence.default(fitted) : 
  textplot_influence() only works on affinity_influence, summary_affinity_influence objects.
> textplot_influence(pred)
Error in textplot_influence.default(pred) : 
  textplot_influence() only works on affinity_influence, summary_affinity_influence objects.

Or am I using this in the wrong way?

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions