Using fastText word vectors
You can train the machine learning services model, by using the pre-trained word vectors trained by using fastText. This is a prerequisite task for the machine learning services model.
Proceed as follows to use the fastText word vectors.
On-prem deployment
- Download and extract the crawl-300d-2M.vec.zip file.
- Create the data/training_vectors folder in the $TOP/mdmui/machinelearning folder.
- Copy the crawl-300d-2M.vec file to the $TOP/mdmui/machinelearning/data/training_vectors folder.
Containerized deployment
- Download and extract the crawl-300d-2M.vec.zip file.
- View ML pod details by using the following
command.
oc get pods
- Go to the ML pod by using the following
command.
oc rsh <ML pod name>
- Create the data/training_vectors folder in the
$TOP/mdmui/machinelearning folder by using the following
command.
cd $TOP/mdmui/machinelearning mkdir -p data/training_vectors
- Exit the ML pod by using the following
command.
exit
- Copy the crawl-300d-2M.vec file to the
$TOP/mdmui/machinelearning/data/training_vectors folder by using the following
command.
oc cp <path of .vec file on the server> <ML pod name>:$TOP/mdmui/machinelearning/data/training_vectors
Example
oc cp /opt/crawl-300d-2M.vec productmaster-ml-0: $TOP/mdmui/machinelearning/data/training_vectors