Skip to content

GlobalVectors object lost fit method? #329

Open
@geotheory

Description

@geotheory

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions