MATLAB: AddEntityDetails() available on matlab 2018b
addentitydetails()MATLAB
I am trying to creat an NER annotator
I need to use addEntityDetails() but I am getting Undefined function or variable 'addEntityDetails'.
Best Answer
The documentation page for the addEntityDetails method for tokenizedDocument objects indicate it was introduced in Text Analytics Toolbox in release R2019a. It is not available in release R2018b.
You will need to upgrade to release R2019a or later, have Text Analytics Toolbox installed and licensed, and call addEntityDetails with a tokenizedDocument as its first input to use this function.
This is because these functions belong to a specific class. For instance, "doc2cell" function is a method of "tokenizedDocument" class. Therefore, in order to access these function, you need to have an object of the corresponding class that they belong to.
For example, to access "doc2cell" function, you need to have input documents, specified as atokenizedDocument array.
documents = tokenizedDocument([ ...
"an example of a short sentence" ...
"a second short sentence"])
documents.doc2cell % or doc2cell(documents)
Please refer to the domentation for each of these function for more details about the class they belong to.
1. wordEmbedding Class for "word2vec" and "vec2word":
Best Answer