Main Content
replaceNgrams
Replace n-grams in documents
Syntax
Description
updates the specified documents by replacing the n-grams newDocuments
= replaceNgrams(documents
,oldNgrams
,newNgrams
)oldNgrams
with
the corresponding n-grams in newNgrams
. The function, by default, is
case sensitive.
replaces the n-grams newDocuments
= replaceNgrams(documents
,oldNgrams
,newNgrams
,'IgnoreCase',true)oldNgrams
ignoring case.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019a