Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

returned features are wrong on python 3.3 #4

Closed
hideaki-t opened this issue Feb 7, 2017 · 1 comment
Closed

returned features are wrong on python 3.3 #4

hideaki-t opened this issue Feb 7, 2017 · 1 comment

Comments

@hideaki-t
Copy link
Owner

hideaki-t commented Feb 7, 2017

this issue is reproducible in igo-python 0.9.7 and newer versions.
the latest, 0.9.8, works fine on python 2.7, 3.4, 3.5, 3.6, pypy, pypy3.
0.9.6 works fine on python 3.3.
0.9.8 works fine on python 3.3 if use_mmap=False

expected result

>>> import igo; [x.feature for x in igo.tagger.Tagger('ipadic').parse('私の名前は中野です')]
['名詞,代名詞,一般,*,*,*,私,ワタシ,ワタシ', '助詞,連体化,*,*,*,*,の,ノ,ノ', '名詞,一般,*,*,*,*,名前,ナマエ,ナマエ', '助詞,係助詞,*,*,*,*,は,ハ,ワ', '名詞,固有名詞,地域,一般,*,*,中野,ナカノ,ナカノ', '助動詞,*,*,*,特殊・デス,基本形,です,デス,デス']

on python 3.3

>>> import igo; [x.feature for x in igo.tagger.Tagger('ipadic').parse('私の名前は中野です')]
['名詞,一般,*,*,*,*,*', '名詞,一般,*,*,*,*,*', '名詞,一般,*,*,*,*,*', '名詞,一般,*,*,*,*,*', '名詞,一般,*,*,*,*,*', '名詞,一般,*,*,*,*,*']
@hideaki-t
Copy link
Owner Author

0.9.6 cannot use mmap by a silly bug, because of that, it works on Python 3.3.
0.9.6 + mmap enabling patch does not work on Python 3.3.

hideaki-t added a commit that referenced this issue Feb 9, 2017
memoryview over memoryview does not work as expected on Python 3.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant