You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
times = ex.extract_time(text)
xxx: ArrowParseWarning: The .get() parsing method without a format string will parse more strictly in version 0.15.0.See https://github.com/crsmithdev/arrow/issues/612 for more details.
ArrowParseWarning,
时间只有在明确的时间不会出错,类似于“上周”这种表达就会触发错误
我调试了位于
“cocoNLP\Lib\site-packages\cocoNLP\config\basic\time_nlp”
下的TimeUnit.py
,先是把arrows降级到0.15.0,然后把.replace
替换成.replace``.shift
,之后给getTime方法修改(分别加上s)最后还是有错误
不知用的是哪一版本的arrows呢
The text was updated successfully, but these errors were encountered: