VerifyInterpretation
is an option for TextCases, TextPosition and TextContents that verifies that results can be interpreted using Interpreter and related functions and drops those that cannot.
Details
- When VerifyInterpretationTrue, only substrings that have an interpretation will be returned.
Examples
Basic Examples (1)
Find all the occurrences of cities in a text:
Obtain the corresponding entities, which may result in some failures:
Get the entities directly from TextCases when they are available, and raw strings when the interpretation fails:
Use VerifyInterpretation to prune out the substrings that cannot be interpreted:
Text
Wolfram Research (2019), VerifyInterpretation, Wolfram Language function, https://reference.wolfram.com/language/ref/VerifyInterpretation.html.
CMS
Wolfram Language. 2019. "VerifyInterpretation." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VerifyInterpretation.html.
APA
Wolfram Language. (2019). VerifyInterpretation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VerifyInterpretation.html