vecto-ai / vecto

Doing things with embeddings
http://vecto.space/
Mozilla Public License 2.0
64 stars 11 forks source link

Analogies #113

Open lfcc1 opened 2 years ago

lfcc1 commented 2 years ago

Hello, I'm trying to evaluate some word embeddings with analogies, however, the examples from the jupyter notebooks and documentations are not working, probably deprecated...

import vecto.embeddings
embeddings = vecto.embeddings.load_from_dir("/storage/data/NLP/embeddings/6b.wiki_giga")

analogy = Analogy()
analogy.get_result()

or

path_model = "./UC/SINONIMO_N_8_2_100_50.txt"

options = {}
options["path_dataset"] = "./UC/SINONIMO_N_8_2_100_50.txt"
options["path_results"] = "UC/results"
options["name_method"] = "3CosAdd"
vecto.benchmarks.analogy.run(model, options)

None of those approaches work..

How can I use my analogies to test my embeddings?

undertherain commented 2 years ago

how exactly it doesn't work? documentation might be dated, but the tests are passing, so you can look at unittests source to check how it is invoked. also can use vecto from the command line