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

查看:127
本文介绍了自然语言解析器日期(.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年8月7日; 2005年6月4日; 8:15 PM; 22时三十分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天全站免登陆