Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to replace relative time entity by it's real time from a sentence. If Current date is 25-Feb-2014 then the following input produce corresponding output.

Input:
1. Who won the ballon d'or last year?
2. How many people had died at road accident yesterday?

Output:
1. Who won the ballon d'or 2013?
2. How many people had died at road accident 24-Feb-2014?

Stanford-nlp could help me, but I don't know how to use it into C#. Please help me to solve this. Thanks in advance, your help is greatly appreciated.
Posted

The only way to do it is to parse the data looking for specific words. There may be some libraries that you can buy to help so I would search the internet for those. Otherwise, you'll just have to keep track of a list of specific phrases you look for.
 
Share this answer
 
 
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