【发布时间】:2020-01-15 00:30:30
【问题描述】:
我收到此错误:
ImportError: cannot import name 'SUTime' from partially initialized module 'sutime' (most likely due to a circular import)
将 sutime 模块导入为:
from sutime import SUTime
按照 sutime GitHub 示例中的建议:https://github.com/FraBle/python-sutime
上下文:sutime 是一个 Python 库,用于从自然语言输入中解析日期/时间,由斯坦福 CoreNLP 的出色团队开发。
注意:我也已经运行了 pre-req 安装:
>> pip install setuptools_scm jpype1 # install pre-reqs
>> pip install sutime
>> # use package pom.xml to install all Java dependencies via Maven into ./jars
>> mvn dependency:copy-dependencies -DoutputDirectory=./jars
【问题讨论】:
标签: python python-3.x nlp stanford-nlp sutime