"Sentence" (Text Content Type)
Text identified as a sentence-like unit, usually delimited by punctuation marks.
Details
- "Sentence" can be used in TextCases, TextPosition and TextContents.
Examples
Basic Examples (3)
Segment a text into sentences:
TextCases["The cat sat on a mat. The bat and a fat rat sat on a cat. The fat cat sat on a mat.", "Sentence"]//TextElementSentence segmentation intelligently ignores acronyms and other misleading boundaries:
TextCases["Washington D.C. is the capital of the United States. Mr. Fox is the CEO of the company. She co-founded the company with Mrs. Smith.", "Sentence"]//TextElementFind all sentences in a string that contain countries:
TextCases["On vacation, I first went to France, then I went to Belgium. The food was amazing in both countries.", Containing["Sentence", "Country"]]