de-compromise 0.0.1 → 0.0.4

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 CHANGED
@@ -1,21 +1,96 @@
1
1
  <div align="center">
2
- <img src="https://cloud.githubusercontent.com/assets/399657/21955696/46e882d4-da3e-11e6-94a6-720c34e27df7.jpg" />
3
- <div>Computerlinguistik Im Browser!</div>
4
- <a href="https://npmjs.org/package/de-compromise">
2
+ <img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
3
+ <div><b>de-compromise</b></div>
4
+ <img src="https://user-images.githubusercontent.com/399657/68222691-6597f180-ffb9-11e9-8a32-a7f38aa8bded.png"/>
5
+ <div>bescheidene Computerlinguistik im Browser</div>
6
+ <div><code>npm install de-compromise</code></div>
7
+ <div align="center">
8
+ <sub>
9
+ work-in-progress! • in Arbeit!
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
+ <sub>see:
15
+ <a href="https://github.com/nlp-compromise/fr-compromise">french</a> • <a href="https://github.com/nlp-compromise/es-compromise">spanish</a> • <a href="https://github.com/spencermountain/compromise">english</a>
16
+ </sub>
17
+ </div>
18
+ </div>
19
+
20
+ <div align="center">
21
+ <div>
22
+ <a href="https://npmjs.org/package/de-compromise">
5
23
  <img src="https://img.shields.io/npm/v/de-compromise.svg?style=flat-square" />
6
24
  </a>
7
- <a href="https://nodejs.org/api/documentation.html#documentation_stability_index">
8
- <img src="https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square" />
25
+ <!-- <a href="https://codecov.io/gh/spencermountain/de-compromise">
26
+ <img src="https://codecov.io/gh/spencermountain/de-compromise/branch/master/graph/badge.svg" />
27
+ </a> -->
28
+ <a href="https://bundlephobia.com/result?p=de-compromise">
29
+ <img src="https://badge-size.herokuapp.com/spencermountain/de-compromise/master/builds/de-compromise.min.js" />
9
30
  </a>
31
+ </div>
10
32
  </div>
11
33
 
12
- `de-compromise` (kompromiss) is a **work-in-progress** port of [compromise](https://github.com/nlp-compromise/compromise) in german.
34
+ <!-- spacer -->
35
+ <img height="85px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
36
+
37
+
38
+ `de-compromise` (kompromiss) is a port of [compromise](https://github.com/nlp-compromise/compromise) in german.
13
39
 
14
40
  The goal of this project is to provide a small, basic, rule-based POS-tagger.
41
+
42
+ Das Ziel dieses Projekts ist es, einen kleinen, einfachen, regelbasierten POS-Tagger bereitzustellen.
43
+
44
+
45
+ <!-- spacer -->
46
+ <img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
47
+
48
+ ```js
49
+ import ldv from 'de-compromise'
50
+
51
+ let dok = ldv('Werden wir Helden für einen Tag.')
52
+ dok.match('#Noun').out('array')
53
+ // [ 'wir', 'Helden', 'Tag.' ]
54
+ ```
55
+
56
+ ### Parsing von Zahlen / Number parsing
57
+ es kann Zahlen in natürlicher Sprache analysieren und formatieren
58
+ ```js
59
+ let doc = ldv('Ich habe einhunderteinundzwanzig Euro')
60
+ doc.numbers().minus(10)
61
+ doc.text()
62
+ // 'Ich habe einhundertelf Euro'
63
+ ```
64
+
65
+ <!-- spacer -->
66
+ <img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
67
+
68
+ oder im Browser:
69
+ ```html
70
+ <script src="https://unpkg.com/de-compromise"></script>
71
+ <script>
72
+ let txt = 'Hast du etwas Zeit für mich? Dann singe ich ein Lied für dich'
73
+ let doc = deCompromise(txt) //globalen Namensraum
74
+ console.log(doc.sentences(1).json())
75
+ // { text:'Dann singe...', terms:[ ... ] }
76
+ </script>
77
+ ```
78
+
79
+ see [en-compromise/api](https://github.com/spencermountain/compromise#api) for full API documentation.
80
+
81
+ Bitte beitreten, um zu helfen! - please join to help!
82
+
83
+ <!-- spacer -->
84
+ <img height="85px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
85
+
15
86
  <h2 align="center">
16
- <a href="https://rawgit.com/nlp-compromise/de-compromise/master/demo/basic/index.html">Demo</a>
87
+ <a href="https://rawgit.com/nlp-compromise/de-compromise/master/demo/index.html">Demo</a>
17
88
  </h2>
18
89
 
90
+
91
+
92
+
93
+ ### Beitragen / Contributing
19
94
  ```
20
95
  git clone https://github.com/nlp-compromise/de-compromise.git
21
96
  cd de-compromise
@@ -24,14 +99,9 @@ npm test
24
99
  npm watch
25
100
  ```
26
101
 
27
- ```js
28
- import ldv from 'de-compromise'
29
- var dok= ldv('Werden wir Helden für einen Tag.')
30
- dok.match('#Noun').out('array')
31
- // [ 'wir', 'Helden', 'Tag.' ]
32
- ```
33
102
 
34
- please join to help! - Bitte beitreten, um zu helfen!
103
+ <!-- spacer -->
104
+ <img height="15px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
35
105
 
36
106
  <table>
37
107
  <tr align="center">
@@ -49,3 +119,8 @@ please join to help! - Bitte beitreten, um zu helfen!
49
119
  </td>
50
120
  </tr>
51
121
  </table>
122
+
123
+ ### See also
124
+ * [dweiss/compound-splitter](https://github.com/dweiss/compound-splitter) - german compound-word splitter
125
+ * [danielnaber/jwordsplitter](https://github.com/danielnaber/jwordsplitter) - Java compound-word splitter
126
+ MIT