azuru / sanmoku Goto Github PK
View Code? Open in Web Editor NEWThis project forked from sile/sanmoku
A morphological analyzer with a small memory footpring.
License: MIT License
This project forked from sile/sanmoku
A morphological analyzer with a small memory footpring.
License: MIT License
[名前] ・Sanmoku [バージョン] ・0.0.2 [概要] ・Gomoku( https://github.com/sile/gomoku )から派生した形態素解析器 ・Gomokuに比べて実行時に必要なメモリ量が少ないのが特徴 (数分の一程度) ・形態素解析器としての特徴は、おおむねGomokuと同様 [形態素解析器] 形態素解析を行う(Java)。 = ビルド方法 $ cd analyzer $ ant $ ls sanmoku-0.0.1.jar = 形態素解析コマンド # 形態素解析 $ java -cp sanmoku-0.0.1.jar net.reduls.sanmoku.bin.Sanmoku < 解析対象テキスト # 分かち書き $ java -cp sanmoku-0.0.1.jar net.reduls.sanmoku.bin.Sanmoku -wakati < 解析対象テキスト = java API package net.reduls.sanmoku; class Tagger { public static List<Morpheme> parse(String text); public static List<String> wakati(String text); } class Morpheme { public final String surface; // 形態素表層形 public final String feature; // 形態素素性 (== 品詞) public final int start; // 入力テキスト内での形態素の出現開始位置 } [辞書構築コマンド] Sanmoku用のバイナリ辞書を構築する(Common Lisp)。 デフォルトの辞書(IPADIC)をカスタマイズしたい場合は、このコマンドを使ってバイナリ辞書を作成し、jarを再ビルドする必要がある。 ソース辞書にはMecabのサイト( http://mecab.sourceforge.net/ )にて配布されている辞書を想定。 ※ 現時点ではIPADICにのみ対応。他の辞書での動作は未確認。 = 依存パッケージ ・SBCL: http://www.sbcl.org/ ・Common Lisp処理系 = 辞書構築コマンド作成方法 $ cd dicbuilder $ sbcl --script make-build-dic-command.lisp [コマンドの作成先ディレクトリ] $ ls sanmoku-build-dic = 辞書構築コマンド使用方法 $ sanmoku-build-dic <入力テキスト辞書ディレクトリ> <出力バイナリ辞書ディレクトリ> [テキスト辞書の文字コード(デフォルトはeuc-jp)] # 注意! ディレクトリ指定は最後の'/'が必要 = Sanmoku辞書の更新手順 $ cd analyzer $ sanmoku-build-dic mecab-ipadic-2.7.0-20070801/ src/net/reduls/sanmoku/dicdata/ # 新しい辞書データで上書き $ ant clean $ ant [ライセンス] ・Sanmoku本体(ソースファイル及びjarファイル) ・MITライセンス: 詳細はCOPYINGファイルを参照 ・Sanmokuに含まれるIPADICバイナリデータ ・IPADICのライセンスに準拠: 詳細はCOPYING.ipadicを参照 [TODO] ・サロゲートペア対応 ・CSVパーサ ・IPADIC以外の辞書に対応 ・ヒープ実装最適化 ・諸々整理
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.