Mallet Java bug

I want to do thematic modeling. So, I ran the following command: -

bin\mallet train-topics --input web.mallet --output-state output-file.gz 

      

He tells me: - Modeling volumes currently only support functional sequences: use the -keep-sequence parameter when importing data.

When I add the -keep-sequence, my command becomes: -

bin\mallet train-topics --input web.mallet --output-state output-file.gz --keep-sequence

      

Following is the error: -

Exception in thread "main" java.lang.IllegalArgumentException: Unrecognized option 4: --keep-sequence
        at cc.mallet.util.CommandOption$List.process(CommandOption.java:345)
        at cc.mallet.util.CommandOption.process(CommandOption.java:146)
        at cc.mallet.topics.tui.Vectors2Topics.main(Vectors2Topics.java:201)

      

What should I do? I am running for the first time. Please, help.

+3


source to share


1 answer


The command is train-topics

designed to run the model in a previously imported Mallet data file. This option is --keep-sequence

used for the data import phase using the import-file

or command import-dir

.



+1


source







All Articles