/cbow

CBOW Model of pytorch, using C++.

Primary LanguageMakefileApache License 2.0Apache-2.0

cbow

CPP Sample Code of Pytorch, which implements CBOW Language model.

How to build

Fisrt, cmake 3.0+ is needed, to "build" dir, run "cmake -DCMAKE_PREFIX_PATH=/path/to/libtorch ..". Then you can make.

CPP API is simlar to python.