VerifyInterpretation

VerifyInterpretation

TextCasesTextPositionTextContents 的一个选项,用 Interpreter 及相关函数验证结果是可以被解释的,同时删除无法解释的结果.

更多信息

  • 当设置为 VerifyInterpretationTrue 时,只返回有解释的子字符串.

范例

基本范例  (1)

查找文本中出现的所有城市:

获取相应的实体,有些可能会失败:

可行的情况下直接从 TextCases 获取实体,如果解释失败就返回原始字符串:

VerifyInterpretation 去除无法解释的子字符串:

Wolfram Research (2019),VerifyInterpretation,Wolfram 语言函数,https://reference.wolfram.com/language/ref/VerifyInterpretation.html.

文本

Wolfram Research (2019),VerifyInterpretation,Wolfram 语言函数,https://reference.wolfram.com/language/ref/VerifyInterpretation.html.

CMS

Wolfram 语言. 2019. "VerifyInterpretation." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/VerifyInterpretation.html.

APA

Wolfram 语言. (2019). VerifyInterpretation. Wolfram 语言与系统参考资料中心. 追溯自 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: 22-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: 22-November-2024 ]}