Updating the message model

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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.198.94