我收到此错误:
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