简体   繁体   English

如何匹配聊天脚本中的概念值

[英]how to match concept values in chatscript

If i use a ~concept, how would I know what the user typed?如果我使用 ~concept,我怎么知道用户输入了什么? this is like an entity in typical NLP frameworks.这就像典型的 NLP 框架中的实体。 eg例如

u: (I am from ~country )
  ^keep() ^repeat()
  you come from _0?

If the user types I am from FRANCE there seems no way to extract the value FRANCE for ~country to echo back to the user or to use it later with perhaps $country=_0如果用户I am from FRANCE ,似乎无法提取FRANCE的值~country以回显给用户或稍后使用$country=_0

I thought the _0 might help with that, but no workie我认为_0可能会对此有所帮助,但没有工作

This will work but doesn't use concepts just wildcards这将起作用,但不使用通配符的概念

u: (I was born [in near close by] _* )
  ^keep() ^repeat()
  you were born in _0?

ref docs https://github.com/ChatScript/ChatScript/blob/master/WIKI/OVERVIEWS-AND-TUTORIALS/ChatScript-Tutorial.md#short-term-memory--_参考文档https://github.com/ChatScript/ChatScript/blob/master/WIKI/OVERVIEWS-AND-TUTORIALS/ChatScript-Tutorial.md#short-term-memory--_

seems _ before the ~concept will allow capturing:似乎_~concept之前将允许捕获:

u: (I am from _~country )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Dialogflow 中,如何处理具有相同参考值的多个实体? - In Dialogflow, How to deal with multiple entities having the same reference values? 如何在Lucene中进行实体提取 - How do I do Entity Extraction in Lucene 如何识别作为光学字符识别 (OCR) 输出的文本中的实体? - How to recognize entities in text that is the output of optical character recognition (OCR)? 如何处理 Rasa NLU 实体提取中的拼写错误(错别字)? - how to handle spelling mistake(typos) in entity extraction in Rasa NLU? 半自动注释工具 - 如何查找RDF三元组 - Semi-automatic annotation tool - How to find RDF Triplets 如何使用自然语言处理或其他技术从html提取实体 - How to extract entities from html using natural language processing or other technique 如何执行实体链接到本地​​知识图? - How to perform entity linking to local knowledge graph? 如何在RASA NLU中定义具有独立意图的实体? - How to define entities with intent independent in RASA NLU? Stanford NLP / NER-如何使用提取器和分类器? - Stanford NLP/NER - how to use extractors and classifiers? 如何将ner结果存储在json /数据库中 - How to store ner result in json/ database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM