Comments (9)
Thanks!
timeout
attribute of KNP
class is not used and this is apparently a bug.
I will fix it.
from pyknp.
Done, I submitted the issue: ku-nlp/knp#7
from pyknp.
I could not reproduce your issue...
pip supports pyproject.toml
and does not require setup.py
or __version__.py
.
https://github.com/pypa/pip/blob/main/NEWS.rst#features-18
Could you upgrade pip and try again?
Or in another way, you can install the latest pyknp just by pip install pyknp
.
from pyknp.
Sorry for my late reply. I successfully installed the latest pyknp via pip without any copy-and-paste procedure after upgrading pip. Thank you for your help!
from pyknp.
I appreciate your attendance!
from pyknp.
I don’t think that -timeout
option properly works on bash either. The example sentence I mentioned above is parsed, although I set 0 sec for the timeout. Would you mind rechecking whether timeout option of knp
itself functions, too?
echo "このような句読点が少ない文章は文章の流れをつかみにくく読みづらいという欠点を持つが書く人はこの方が早く書けることもあるので「句読点が多い文章」よりは出現しやすくさらにパソコンやワープロなどで書き印刷する場合は紙のスペースの節約になり省資源にも多少は貢献すると思われるのみならず最近の女子高生が携帯電話からブログに書いた文章においては句読点がないのが普通だったりするんだけれども読みやすさ第一を心がける場合においては句読点をつけすぎなさすぎないことはやめましょう。" | jumanpp | knp -tab -anaphora -semantic-head -timeout 0
from pyknp.
Could you make an issue on ku-nlp/knp?
from pyknp.
Thank you for the bug fix.
I want to reinstall pyknp via the following command, but this command does not work since the GitHub repo is missing setup.py
and __version__.py
pip install git+https://github.com/ku-nlp/pyknp.git@master#egg=pyknp
So currently, I got the latest stable release of pyknp (0.4.6) from here, copied setup.py
and __version__.py
of the stable version and placed these two files to my local git repo of pyknp. I succeeded in the reinstallation and I'm now trying to use the timeout option.
from pyknp.
I confirmed that the bug is fixed in my local environment too. I appreciate your help and maintenance!
from pyknp.
Related Issues (20)
- comment line with only S-ID infomation is ignored
- New pypi package release? HOT 1
- 特定の文章を入力された際にフリーズする現象
- IndexError caused HOT 1
- 述語項構造にNEの情報が付与されている場合,パースに失敗する HOT 4
- jumanpp 2.0.0-rc3でpyknp/juman/juman.pyのテストに失敗する HOT 1
- pas.cfidがNoneになることがある HOT 4
- UnicodeDecodeError: 'cp932' HOT 2
- AttributeError: 'NoneType' object has no attribute 'group' HOT 2
- ValueError: invalid literal for int() with base 10: '!!' HOT 2
- parse() returns empty result for a sentence without a punctuation
- consideration of parse process
- 複数スレッド間で `Juman` インスタンスを共有し analysis を実行すると確率的に処理が止まってしまう HOT 2
- Documentation of pyknp (pyknp.readthedocs.io) shows no detailed information on knp HOT 1
- How to cite pyknp? HOT 5
- 照応解析(anaphora)オプションを付けると前の入力を読み続ける HOT 3
- jumanの出力が止まったとき無限ループに入る HOT 3
- Exception: Can't find JUMAN command: juman HOT 4
- Unable to tokenize sentences that start with at mark
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyknp.