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

GlobalVectors object lost fit method? #329

Open
geotheory opened this issue Dec 26, 2020 · 3 comments
Open

GlobalVectors object lost fit method? #329

geotheory opened this issue Dec 26, 2020 · 3 comments

Comments

@geotheory
Copy link

geotheory commented Dec 26, 2020

Hey there. I find your example from Feb no longer works for me (macOS 11.0.1, version 4.0.3, text2vec 0.6).

require(text2vec)
#> Loading required package: text2vec
glove = GlobalVectors$new(rank = 50, x_max = 10)
glove$fit
#> NULL

In your example script, replacing glove$fit() line with glove$fit_transform() does train the model. But next line fails:

word_vectors <- glove$get_word_vectors()
Error: attempt to apply non-function

because glove$get_word_vectors is also missing. Any idea what is going on?

@dselivanov
Copy link
Owner

dselivanov commented Dec 26, 2020 via email

@geotheory
Copy link
Author

geotheory commented Dec 26, 2020

I just noticed the vignette has changed since that example. April version is up to date.

@dselivanov
Copy link
Owner

Yes, I need to update CRAN version to fix some documentation issues. This issue seems duplicate for #323. I will keep it open until I update pkg on CRAN.

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

No branches or pull requests

2 participants