如何在textmodel_wordfsh中设置“ dir”以进行模型收敛?

时间:2019-10-26 23:39:54

标签: r quanteda

我有一个dfm,但我无法收敛模型。我只需要知道如何拟合模型,并可能通过在textmodel_wordfsh中设置目录即可。该怎么做?

我的代码:

wf.mandela <- textmodel_wordfish(dfm_trim(mandela.dfm) , dir = c(3,4), sparse = FALSE)

我的错误:

Warning message:
In textmodel_wordfish.dfm(dfm_trim(mandela.dfm), dir = c(3, 4),  :
  Warning: The algorithm did not converg

0 个答案:

没有答案