Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc2vec not available - even though gensim is installed #1310

Open
LukasWallrich opened this issue Feb 8, 2023 · 3 comments
Open

doc2vec not available - even though gensim is installed #1310

LukasWallrich opened this issue Feb 8, 2023 · 3 comments
Labels
documentation question Further information is requested

Comments

@LukasWallrich
Copy link
Contributor

Probably this just shows my lack of understanding of python - but I can't get doc2vec to work. Based on the documentation, I have installed gensim (both locally and globally) and when I open python3 in the folder where asreview lives, I can import gensim without trouble. However, in asreview, the option continues to be greyed out.

If this is just a usage issue, should it be documented more clearly?

@LukasWallrich LukasWallrich added the bug Something isn't working label Feb 8, 2023
@LukasWallrich
Copy link
Contributor Author

Note that I have also tried installing gensim in a virtual environment as per #426 - still no doc2vec ...

@PeterLombaers
Copy link
Member

Hi Lukas!
The reason that the doc2vec feature extraction is greyed out is that it doesn't work in combination with Naive Bayes. The implementation of Naive Bayes that we use does not accept negative feature values. So any feature extraction method that produces negative values will not work in combination with it. There might be other solutions like changing the feature vectors, but right now ASReview just does not allow the combination. If you select Logistic Regression as a classifier instead of Naive Bayes, the option to select doc2vec will become available again.

I agree that this definitely could be documented more clearly. Maybe a table in the documentation showing which combinations (classifier + feature extraction) are allowed. Or in the screen where you select the model there could be an explanation why certain options are greyed out.

@Rensvandeschoot
Copy link
Member

Feel free to start a PR with suggestions how to improve the documentation! It might fit in the section on selecting a model. For the underlying file, go to: https://github.com/asreview/asreview/blob/master/docs/source/project_create.rst

@Rensvandeschoot Rensvandeschoot added question Further information is requested documentation and removed bug Something isn't working labels Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants