Next, we are going to update our message model. We are going to save categories, documentSentiment, entities, sentences, tokens, and language. Update servermodelsmessage.ts as shown in the following code:
// SNIPP SNIPP
nlpCategories: [{
type: Schema.Types.Mixed,
default: []
}],
nlpDocumentSentiment: {
type: Schema.Types.Mixed
},
nlpEntities: [{
type: Schema.Types.Mixed,
default: []
}],
nlpSentences: [{
type: Schema.Types.Mixed,
default: []
}],
nlpTokens: [{
type: Schema.Types.Mixed,
default: []
}],
nlpLanguage: String
// SNIPP SNIPP