Training a model is time consuming, to avoid delay during the startup in a production environment use the NLP.js Load node to load in memory a model generated by NLPjs Train .

Train model

Train model

Use the NLPjs Save to store a trained model on a local JSON file.