Hi. After I install trankit using pip, run this simple code to test trankit:
from trankit import Pipeline
p = Pipeline('auto')
output = p.tokenize('xxxxx')
And I see this error:
Traceback (most recent call last):
File "/Users/jiluyang/Desktop/trankit.py", line 1, in
from trankit import Pipeline
File "/Users/jiluyang/Desktop/trankit.py", line 1, in
from trankit import Pipeline
ImportError: cannot import name 'Pipeline' from partially initialized module 'trankit' (most likely due to a circular import) (/Users/jiluyang/Desktop/trankit.py)
So why does it occur and how can I fix it? I have tried trankit 1.1.0 and 1.1.1, this error occurs in both versions. Thx !
Hi. After I install trankit using pip, run this simple code to test trankit:
And I see this error: Traceback (most recent call last): File "/Users/jiluyang/Desktop/trankit.py", line 1, in
from trankit import Pipeline
File "/Users/jiluyang/Desktop/trankit.py", line 1, in
from trankit import Pipeline
ImportError: cannot import name 'Pipeline' from partially initialized module 'trankit' (most likely due to a circular import) (/Users/jiluyang/Desktop/trankit.py)
So why does it occur and how can I fix it? I have tried trankit 1.1.0 and 1.1.1, this error occurs in both versions. Thx !