1

私はPythonの初心者です。owlreadyを使用してオントロジーに取り組んでいます。PyCharm IDE にライブラリをインストールしましたが、Python コードのowlreadyインポートに問題があります。owlreadyドキュメントと同じように試しましfrom owlready import *たが、常に次のようになります。

Traceback (most recent call last):
  File "C:/Users/siekoo/OneDrive/Development/python/NER/onto_start.py", line 1, in <module>
    from owlready import *
  File "C:\winpython\python-2.7.10.amd64\lib\site-packages\owlready\__init__.py", line 85
    def __init__(self, *Entities, ontology = None):
                                         ^
SyntaxError: invalid syntax
4

1 に答える 1