如何使用C#从句子中提取相对时间实体 [英] How to extract relative time entities from a sentence using C#

查看:105
本文介绍了如何使用C#从句子中提取相对时间实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用c#识别句子中的相对时间实体。

示例:如果句子是谁赢得了舞会或去年?,那么输出将只是去年句子。请帮我解决这个问题。

I need to recognize relative time entity from a sentence using c#.
Example: If the sentence is "Who won the ballon d'or last year?", the output will be only last year from the sentence. Please help me to solve this.

推荐答案

你使用的任何解析器都会遇到同样的问题。你真的别无选择,只能对这些进行研究,并弄清楚如何使用其中之一。这不是任何人都可以为您解答的问题。



自然语言解析器C# [ ^ ]
You're going to have the same problem with any parser that you use. You really have no choice but to do the research on these and figure out how to use one of them. This is not going to be a question that anyone can answer for you.

Natural Language Parsers C#[^]


这篇关于如何使用C#从句子中提取相对时间实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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