lower - Convert documents to lowercase - MATLAB (original) (raw)

Main Content

Convert documents to lowercase

Syntax

Description

[newDocuments](#d126e32344) = lower([documents](#d126e32324)) converts each uppercase character in the input documents to the corresponding lowercase character, and leaves all other characters unchanged.

example

Examples

collapse all

Convert all uppercase characters in an array of documents to lowercase.

documents = tokenizedDocument([ "An Example of a Short Sentence" "A Second Short Sentence"])

documents = 2×1 tokenizedDocument:

6 tokens: An Example of a Short Sentence
4 tokens: A Second Short Sentence

newDocuments = lower(documents)

newDocuments = 2×1 tokenizedDocument:

6 tokens: an example of a short sentence
4 tokens: a second short sentence

Input Arguments

Output Arguments

Version History

Introduced in R2017b