korean:mecab:python
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
korean:mecab:python [2021/11/14 22:48] – [準備] yoshi | korean:mecab:python [2021/11/14 22:49] (現在) – [形態素解析の実行] yoshi | ||
---|---|---|---|
行 60: | 行 60: | ||
<code python> | <code python> | ||
import MeCab | import MeCab | ||
- | from k2jamo | + | import |
tokenizer = MeCab.Tagger(' | tokenizer = MeCab.Tagger(' | ||
tokenizer.parse('' | tokenizer.parse('' | ||
行 67: | 行 67: | ||
===== 形態素解析の実行 ===== | ===== 形態素解析の実行 ===== | ||
- | '' | + | '' |
<code python> | <code python> | ||
input = u' | input = u' | ||
# 한겨레 2021年11月5日付け記事(https:// | # 한겨레 2021年11月5日付け記事(https:// | ||
- | input = substitute_main(input) | + | input = k2jamo.substitute(input) |
print(tokenizer.parse(input)) | print(tokenizer.parse(input)) | ||
</ | </ |
korean/mecab/python.1636897714.txt.gz · 最終更新: 2021/11/14 22:48 by yoshi