如何确定输入句子是否与某个主题一致?
例如,假设我得到以下数据集。
| Subject | User input | Output |
|---------------|----------------------|--------|
| Dog ownership | I own a dog | Yes |
| Dog ownership | My dog is called Joe | Yes |
| Dog ownership | I don't have a dog | No |
在上面的例子中,主语“dog Ownership”与输入句子“I own a dog”和“My dog is called Joe”是一致的(因为,如果你的狗叫 Joe,那么你也拥有一只狗)。