Comments (3)
ご報告ありがとうございます。
開発時に利用していたSudachiPy v0.1.0ではTokenizerのparamは以下の仕様でしたが、その後メソッド関数の引数仕様が変更されたことが原因のようです。
https://github.com/WorksApplications/SudachiPy/blob/v0.1/sudachipy/tokenizer.py
class Tokenizer:
SplitMode = Enum("SplitMode", "A B C")def __init__(self, grammar, lexicon, input_text_plugins, oov_provider_plugins, path_rewrite_plugins): self.grammar = grammar self.lexicon = lexicon self.input_text_plugins = input_text_plugins self.oov_provider_plugins = oov_provider_plugins self.path_rewrite_plugins = path_rewrite_plugins self.dump_output = None self.lattice = lattice.Lattice(grammar) if self.oov_provider_plugins: self.default_oov_provider = self.oov_provider_plugins[-1] def tokenize(self, mode, text):
from expression_trans.
最新版のSudachiPyでの動作確認をしておりませんので、差し当たってはSudachiPy v1.0をご利用いただくか、全体的な動作保証はできませんがコードを現状に即する形で修正して使っていただくようお願いいたします。
現在フリーランスから正社員になったのもあり、多忙で最新のSudachiPyでの動作検証ができません。
可能であれば、修正して動作検証後に問題なければプルリク飛ばしていただけるとありがたいです(_ _)
from expression_trans.
最新のSudachiPy v0.5.2で動作するように改修を実施し、v_0,2,1でご指摘の関数仕様変更にも対応しました。
from expression_trans.
Related Issues (2)
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 expression_trans.