VerifyInterpretation

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:

Wolfram Research (2019), VerifyInterpretation, Wolfram Language function, https://reference.wolfram.com/language/ref/VerifyInterpretation.html.

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

BibTeX

@misc{reference.wolfram_2024_verifyinterpretation, author="Wolfram Research", title="{VerifyInterpretation}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/VerifyInterpretation.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_verifyinterpretation, organization={Wolfram Research}, title={VerifyInterpretation}, year={2019}, url={https://reference.wolfram.com/language/ref/VerifyInterpretation.html}, note=[Accessed: 21-November-2024 ]}