addTypeDetails
R2026bAdd token type details to documents
Syntax
Description
detects the token types in updatedDocuments = addTypeDetails(documents)documents and updates the token details. The
function adds type details to the tokens with unknown type only. To get the token types from
updatedDocuments, use tokenDetails.
specifies additional options using one or more name-value arguments. For example,
updatedDocuments = addTypeDetails(documents,Name=Value)addTypeDetails(documents,TopLevelDomains=["com" "net" "org"]) specifies
the top-level domains "com", "net", and "org" for web address detection.
Tip
Use addTypeDetails before using the lower,
upper, and erasePunctuation functions as
addTypeDetails uses information that is removed by these
functions.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2018b