stem or lemmatize words -凯发k8网页登录
stem or lemmatize words
syntax
description
use normalizewords
to reduce words to a root form. to
lemmatize english words (reduce them to their dictionary
forms), set the 'style'
option to
'lemma'
.
the function supports english, japanese, german, and korean text.
reduces the words in updateddocuments
= normalizewords(documents
)documents
to a root form. for english
and german text, the function, by default, stems the words using the porter
stemmer for english and german text respectively. for japanese and korean text,
the function, by default, lemmatizes the words using the mecab tokenizer.
reduces each word in the string array updatedwords
= normalizewords(words
)words
to a root
form.
reduces the words and also specifies the word language.updatedwords
= normalizewords(words
,'language',language
)
examples
input arguments
output arguments
algorithms
version history
introduced in r2017bsee also
removestopwords
| | | | | | tokenizeddocument
| | | addpartofspeechdetails
|