日期的自然语言解析器(.NET)? [英] Natural language parser for dates (.NET)?

查看:132
本文介绍了日期的自然语言解析器(.NET)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想能够让用户使用自然语言(例如下周五,每个工作日)输入日期(包括循环日期)。很像 http://todoist.com/Help/timeInsert 中的示例

I want to be able to let users enter dates (including recurring dates) using natural language (eg "next friday", "every weekday"). Much like the examples at http://todoist.com/Help/timeInsert

我发现这篇文章,但它有点旧,只提供我不完全满足的一个解决方案。我以为我会复活这个问题,看看:有没有其他的.NET库做这样的日期解析?

I found this post, but it's a bit old and offered only one solution that I'm not entirely content with. I thought I'd resurrect this question and see: are there any other .NET libraries out there that do this kind of date parsing?

推荐答案

我知道这不是最佳解决方案,但您也可以尝试将 dateJs 库移植到.net

I know it's not an optimal solution but you can also try to port the dateJs library to .net

它处理像今天这样的事情;明天; 2008年7月下周五;去年四月2004.08.07; 6/4/2005;下午8:15 22:30:45; + 5年

It handles things like today; tomorrow; July 2008; next friday; last April; 2004.08.07; 6/4/2005; 8:15 PM; 22:30:45; +5years

这篇关于日期的自然语言解析器(.NET)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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