facebookresearch / StarSpace

Learning embeddings for classification, retrieval and ranking.
MIT License
3.94k stars 531 forks source link

Must provide base labels when label is featured. on query_nn on trainDoc=1 #301

Open luthfianto opened 3 years ago

luthfianto commented 3 years ago

As what @ledw said in #153, I used wikipedia_sentence_matching.sh and change the trainDoc=3 to trainDoc=1 and successfully trained the model

But I cannot run the query_nn, I use command

 ./query_nn /tmp/starspace/models/wikipedia_sentence_match `

and got

  Start to load a trained starspace model.
  STARSPACE-2018-2

  Model loaded.
  Must provide base labels when label is featured.

I also tried

    ./query_nn /tmp/starspace/models/wikipedia_sentence_match -basedoc /tmp/starspace/data/wikipedia_test_basedocs_tm3.txt  -fileFormat labelDoc

but no success.

What is the correct command for query_nn?

Thanks