ja-compromise 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,93 @@
1
+ <div align="center">
2
+ <img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
3
+ <div><b>ja-compromise</b></div>
4
+ <img src="https://user-images.githubusercontent.com/399657/68222691-6597f180-ffb9-11e9-8a32-a7f38aa8bded.png"/>
5
+ <div>ブラウザでのシンプルな自然言語処理</div>
6
+ <div><code>npm install ja-compromise</code></div>
7
+ <div align="center">
8
+ <sub>
9
+ work-in-progress! • 進行中!
10
+ </sub>
11
+ </div>
12
+ <img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
13
+ <div align="center">
14
+ <div>
15
+ <a href="https://npmjs.org/package/ja-compromise">
16
+ <img src="https://img.shields.io/npm/v/ja-compromise.svg?style=flat-square" />
17
+ </a>
18
+ <!-- <a href="https://codecov.io/gh/spencermountain/ja-compromise">
19
+ <img src="https://codecov.io/gh/spencermountain/ja-compromise/branch/master/graph/badge.svg" />
20
+ </a> -->
21
+ <a href="https://bundlephobia.com/result?p=ja-compromise">
22
+ <img src="https://img.shields.io/bundlephobia/min/ja-compromise"/>
23
+ </a>
24
+ </div>
25
+ <sub>see:
26
+ <a href="https://github.com/nlp-compromise/fr-compromise">フランス語</a> •
27
+ <a href="https://github.com/nlp-compromise/es-compromise">スペイン語</a> •
28
+ <a href="https://github.com/nlp-compromise/de-compromise">ドイツ語</a> •
29
+ <a href="https://github.com/spencermountain/compromise">英語</a>
30
+ </sub>
31
+ </div>
32
+ </div>
33
+
34
+
35
+ <!-- spacer -->
36
+ <img height="85px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
37
+
38
+ ja-compromise は、英語の JavaScript ライブラリ nlp-compromise を日本語で移植したものです。
39
+
40
+ このプロジェクトの目標は、小さくて基本的なルール ベースの POS タグを提供することです。
41
+
42
+ `ja-compromise` (妥協) is a port of [compromise](https://github.com/nlp-compromise/compromise) in japanese.
43
+
44
+ The goal of this project is to provide a small, basic, rule-based POS-tagger.
45
+
46
+
47
+
48
+ <!-- spacer -->
49
+ <img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
50
+
51
+ ```js
52
+ import nlp from 'ja-compromise'
53
+
54
+ let doc = ldv('小さな子供は食料品店に歩いた')
55
+ doc.match('#Noun').out('array')
56
+ // [ '子', '食料品店']
57
+ ```
58
+
59
+
60
+ <!-- spacer -->
61
+ <img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
62
+
63
+ またはブラウザで
64
+ ```html
65
+ <script src="https://unpkg.com/de-compromise"></script>
66
+ <script>
67
+ let txt = '小さな子供が食料品を買いました。 彼はとても怖がっていた'
68
+ let doc = jaCompromise(txt)
69
+ console.log(doc.sentences(1).json())
70
+ // { text:'小さな子供が食...', terms:[ ... ] }
71
+ </script>
72
+ ```
73
+
74
+
75
+ see [en-compromise/api](https://github.com/spencermountain/compromise#api) for full API documentation.
76
+
77
+ 参加して助けてください! - please join to help!
78
+
79
+ ### 指示: / Contributing
80
+ ```
81
+ git clone https://github.com/nlp-compromise/ja-compromise.git
82
+ cd ja-compromise
83
+ npm install
84
+ npm test
85
+ npm watch
86
+ ```
87
+
88
+ ### See also
89
+ * [spacy/japanese](https://spacy.io/models/ja) - python tagger/tokenizer, by [explosionAI](https://explosion.ai/)
90
+ * [meCab](https://taku910.github.io/mecab/) - C/C++ tokenizer/tagger, by Taku Kudo
91
+ * [fugashi](https://github.com/polm/fugashi) - Cython wrapper for MeCab, by [Paul O'Leary McCann](https://www.dampfkraft.com/)
92
+ * [janome](https://mocobeta.github.io/janome/en/) - python tokenizer/tagger, by Tomoko Uchida
93
+ * [sudachi](https://github.com/WorksApplications/Sudachi) - tokenizer/tagger, by Arseny Tolmachev