pommedeterresautee / fastrtext

R wrapper for fastText
https://pommedeterresautee.github.io/fastrtext/
Other
101 stars 15 forks source link

How to quantize #21

Closed alanault closed 6 years ago

alanault commented 6 years ago

How do I quantize an existing model?

It's eluded to in the package intro help page, but I couldn't find any reference to it in help. According to the Fasttext page, they use a quantize function which runs against an existing model? Is this supported?

Many thanks! Alan

pommedeterresautee commented 6 years ago

right now evrything doable by the command line is doable via the function execute.

Does it answer your question?

alanault commented 6 years ago

Yes! Thank you makes complete sense now - I can just do:

fastrtext::execute(commands = c("quantize",
                                "-input", model_file,
                                "-output", model_file,

Thanks for the pointer!