Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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.
Posted
Comments
Dave Kreskowiak 26-Feb-14 11:37am    
For what purpose? You could just put all kinds of "time referencing" strings in an array and just search for those, but I don't think that's what you're after.
sazzad37 26-Feb-14 11:45am    
I am working on an artificial intelligence project, where detection of relative time is my task. Stanford Parser can recognize this type of entity, but unfortunately I don't know how to use Stanford Parser at visual studio.

1 solution

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#[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900