"Number" (Text Content Type)
-
See Also
- TextCases
- TextPosition
- TextSentences
- TextStructure
- PartOfSpeech
- Containing
-
- Interpreter Types
- Number
- SemanticNumber
- ComputedNumber
-
- Text Contents
- Quantity
- CurrencyAmount
- Color
- Related Guides
-
-
See Also
- TextCases
- TextPosition
- TextSentences
- TextStructure
- PartOfSpeech
- Containing
-
- Interpreter Types
- Number
- SemanticNumber
- ComputedNumber
-
- Text Contents
- Quantity
- CurrencyAmount
- Color
- Related Guides
-
See Also
"Number" (Text Content Type)
Text identified as a number.
Details
- "Number" can be used in TextCases, TextPosition and TextContents.
- "Number" corresponds to any mention of a number in the context of the text.
- TextCases[…,"Number""Interpretation"] attempts to return a number, as Interpreter["SemanticNumber"] does.
Examples
Basic Examples (2)
Find occurrences of numbers in a text:
TextCases["In American usage, four-digit numbers are often named using multiples of \"hundred\" and combined with tens and ones: \"eleven hundred three\", \"twelve hundred twenty-five\", \"four thousand forty-two\", or \"ninety-nine hundred ninety-nine.\" In British usage, this style is common for multiples of 100 between 1,000 and 2,000 (e.g. 1,500 as \"fifteen hundred\") but not for higher numbers.", "Number"]Get the result as a list of numbers:
TextCases["In American usage, four-digit numbers are often named using multiples of \"hundred\" and combined with tens and ones: \"eleven hundred three\", \"twelve hundred twenty-five\", \"four thousand forty-two\", or \"ninety-nine hundred ninety-nine.\" In British usage, this style is common for multiples of 100 between 1,000 and 2,000 (e.g. 1,500 as \"fifteen hundred\") but not for higher numbers.", "Number" -> "Interpretation"]Get properties about occurrences of numbers:
TextContents["In American usage, four-digit numbers are often named using multiples of \"hundred\" and combined with tens and ones: \"eleven hundred three\", \"twelve hundred twenty-five\", \"four thousand forty-two\", or \"ninety-nine hundred ninety-nine.\" In British usage, this style is common for multiples of 100 between 1,000 and 2,000 (e.g. 1,500 as \"fifteen hundred\") but not for higher numbers.", "Number", All, PerformanceGoal -> "Quality"]See Also
TextCases TextPosition TextSentences TextStructure PartOfSpeech Containing
Interpreter Types: Number SemanticNumber ComputedNumber
Text Contents: Quantity CurrencyAmount Color