通常在句子末尾看到实体包括结束标点符号 [英] Commonly seeing entities at end of sentence include end punctuation

查看:91
本文介绍了通常在句子末尾看到实体包括结束标点符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一句话,比如"我的发票是什么?"并且让我们说发票属于某种实体类型。 我经常会看到"发票?"标记为实体。 这就是包含问号,在实体和标点符号之间有一个空格
。 我有许多不同类型的话语,遵循这种模式,具有不同的实体类型。 如何防止这个结束标点符号被添加到真实实体?

I have an utterance like "What are my invoices?" and let us say that invoices belongs to a certain entity type.  I will often see "invoices ?" tagged as an entity.  That is the question mark is included and there is a space in between what should be the entity and the punctuation.  I have many different sorts of utterances that follow this pattern with differing entity types.  How can I prevent this ending punctuation from being added to the true entity?

推荐答案

Hello Greg,

Hello Greg,

将话语添加到您的意图中门户中标记的实体如何?您是否正在训练应用程序以使用标点符号来使用这些实体?以下是我为培训添加的示例。

When the utterances are added to your intent how are the entities labelled in the portal? Are you training the app to use these entities with the punctuation? Here is an example of what I added for training.

1。添加了一个话语并将单词标记为实体,对应用进行了培训和测试。这里只显示标记为实体的单词。

1. Added a utterance and labelled a word as entity, Trained and tested the app. Here it shows me only the word that was labelled as entity.

2。类似地,在我向实体添加标点符号的地方添加了另一个话语。在训练和测试之后,它还会将标点符号显示为已识别的实体。 

2. Similarly another utterance was added where I added the punctuation mark to the entity. After training and testing it displays the punctuation mark also as the identified entity. 

如果是这种情况,我建议重新标记你话语中的实体并重新训练应用程序只获取所需的单词作为响应中的实体。

If this is the case I would suggest to re-label the entities in your utterances and re-train the app to get only the required word as the entity in the response.

我希望这有帮助!!


这篇关于通常在句子末尾看到实体包括结束标点符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆