"Quantity" (Text Content Type)
-
See Also
- TextCases
- TextPosition
- TextSentences
- TextStructure
- Containing
-
- Interpreter Types
- Quantity
-
- Text Contents
- CurrencyAmount
- Number
- Unit
- Color
- Related Guides
-
-
See Also
- TextCases
- TextPosition
- TextSentences
- TextStructure
- Containing
-
- Interpreter Types
- Quantity
-
- Text Contents
- CurrencyAmount
- Number
- Unit
- Color
- Related Guides
-
See Also
"Quantity" (Text Content Type)
Text identified as a currency amount.
Details
- "Quantity" can be used in TextCases, TextPosition and TextContents.
- "Quantity" corresponds to any mention of a currency amount in the context of the text.
- TextCases[…,"Quantity""Interpretation"] attempts to return a Quantity object, as Interpreter["Quantity"] does.
Examples
Basic Examples (2)
Find occurrences of quantities in a text:
TextCases["They regularly exceed 2 m (ft) and weigh over 100 kg (220 lbs). One kilo is sold for $1,800.", "Quantity"]Get the results as Quantity objects:
TextCases["They regularly exceed 2 m (ft) and weigh over 100 kg (220 lbs). One kilo is sold for $1,800.", "Quantity" -> "Interpretation"]Get properties about occurrences of quantities:
TextContents["They regularly exceed 2 m (ft) and weigh over 100 kg (220 lbs). One kilo is sold for $1,800.", "Quantity", All]See Also
TextCases TextPosition TextSentences TextStructure Containing
Interpreter Types: Quantity
Text Contents: CurrencyAmount Number Unit Color