应用函数在documents
calls the function specified by the function handlenewDocuments
= docfun(func
,documents
)func
and passes elements ofdocuments
as a string vector of words.
Iffunc
accepts exactly one input argument, then the words ofnewDocuments(i)
are the output offunc(string(documents(i)))
.
Iffunc
accepts two input arguments, then the words ofnewDocuments(i)
are the output offunc(string(documents(i)),details)
, wheredetails
contains the corresponding token details output bytokenDetails
.
Iffunc
changes the number of words in the document, thendocfun
removes the token details from that document.
docfun
does not perform the calls to functionfunc
in a specific order.
calls the function specified by the function handlenewDocuments
= docfun(func
,documents1,...,documentsN)func
and passes elements ofdocuments1,…,documentsN
as string vectors of words, whereNis the number of inputs to the functionfunc
. The words ofnewDocuments(i)
are the output offunc(string(documents1(i)),...,string(documentsN(i)))
.
Each ofdocuments1,…,documentsN
must be the same size.
addPartOfSpeechDetails
|addSentenceDetails
|bagOfNgrams
|bagOfWords
|decodeHTMLEntities
|lower
|plus
|regexprep
|replace
|tokenDetails
|tokenizedDocument
|upper