vecto icon indicating copy to clipboard operation
vecto copied to clipboard

Analogies

Open lfcc1 opened this issue 2 years ago • 1 comments

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?

lfcc1 avatar Jun 09 '22 18:06 lfcc1

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

undertherain avatar Jun 11 '22 05:06 undertherain