Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

embed_doc does not work #283

Open
shamidreza opened this issue Apr 1, 2020 · 3 comments
Open

embed_doc does not work #283

shamidreza opened this issue Apr 1, 2020 · 3 comments

Comments

@shamidreza
Copy link

I want to use embed_doc on a trained mode
embed_doc model
and instead on a stdin, it immediately closes:

Start to load a trained starspace model.
STARSPACE-2018-2
Model loaded.
Must provide base labels when label is featured.

What is the issue here?

@Magdiel3
Copy link

Magdiel3 commented May 6, 2020

Hi, which trainMode did you used for that model?

@shamidreza
Copy link
Author

I use trainMode 0 and labelDoc.
I managed to comment out this line:

loadBaseDocs();

and recompile. This solved the issue that it needed me to provide base docs, but does not accept it via sending arguments.

For embed_doc, we don't really need base labels as I understand. Correct?

@nandanrao
Copy link

Indeed, line 130 in starspace.cpp was added in commit 8aee0a9. But in theory that commit has nothing to do with training. Not sure what the idea with that was?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants