@qvac/translation-nmtcpp 0.1.0
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/LICENSE +202 -0
- package/README.md +470 -0
- package/binding.js +1 -0
- package/index.d.ts +82 -0
- package/index.js +188 -0
- package/lib/error.js +65 -0
- package/marian.js +186 -0
- package/package.json +69 -0
- package/prebuilds/android-arm/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/android-arm64/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/android-ia32/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/android-x64/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__translation-nmtcpp.bare.exports +3622 -0
- package/prebuilds/darwin-x64/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/darwin-x64/qvac__translation-nmtcpp.bare.exports +3731 -0
- package/prebuilds/ios-arm64/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/ios-arm64/qvac__translation-nmtcpp.bare.exports +3603 -0
- package/prebuilds/ios-arm64-simulator/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/ios-arm64-simulator/qvac__translation-nmtcpp.bare.exports +3603 -0
- package/prebuilds/ios-x64-simulator/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/ios-x64-simulator/qvac__translation-nmtcpp.bare.exports +3720 -0
- package/prebuilds/linux-x64/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/win32-x64/qvac__translation-nmtcpp.bare +0 -0
- package/prebuilds/win32-x64/qvac__translation-nmtcpp.bare.exports +0 -0
- package/third-party/indic-processor-deps/indicnlp/INDIC_NLP_LICENCE +9 -0
- package/third-party/indic-processor-deps/indicnlp/index.js +11 -0
- package/third-party/indic-processor-deps/indicnlp/indic_detokenize.js +141 -0
- package/third-party/indic-processor-deps/indicnlp/indic_normalize.js +1213 -0
- package/third-party/indic-processor-deps/indicnlp/indic_tokenize.js +123 -0
- package/third-party/indic-processor-deps/indicnlp/langinfo.js +609 -0
- package/third-party/indic-processor-deps/indicnlp/sinhala_transliterator.js +197 -0
- package/third-party/indic-processor-deps/indicnlp/unicode_transliterator.js +120 -0
- package/third-party/indic-processor-deps/sacremoses/SACREMOSES_LICENCE +21 -0
- package/third-party/indic-processor-deps/sacremoses/cjk.js +202 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/README.txt +8 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.as +65 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.bn +65 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.ca +75 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.cs +390 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.de +325 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.el +1568 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.en +123 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.es +118 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.et +138 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.fi +138 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.fr +153 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.ga +48 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.gu +105 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.hi +113 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.hu +103 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.is +251 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.it +180 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.kn +70 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.lt +698 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.lv +100 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.ml +67 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.mni +65 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.mr +113 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.nl +115 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.or +101 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.pa +102 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.pl +283 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.pt +210 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.ro +38 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.ru +293 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.sk +474 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.sl +78 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.sv +97 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.ta +71 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.tdt +210 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.te +70 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.yue +53 -0
- package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.zh +53 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/CJK.txt +23246 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/CJKSymbols.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Close_Punctuation.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Currency_Symbol.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Han.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Hangul.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Hangul_Syllables.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Hiragana.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsAlnum-unichars-au.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsAlnum.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsAlpha-unichars-au.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsAlpha.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsLower.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsN.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsPf.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsPi.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsSc.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsSo.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/IsUpper.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Katakana.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Line_Separator.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Lowercase_Letter.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Number.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Open_Punctuation.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Punctuation.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Separator.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Symbol.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Titlecase_Letter.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/data/perluniprops/Uppercase_Letter.txt +1 -0
- package/third-party/indic-processor-deps/sacremoses/index.js +8 -0
- package/third-party/indic-processor-deps/sacremoses/indic.js +76 -0
- package/third-party/indic-processor-deps/sacremoses/normalizer.js +264 -0
- package/third-party/indic-processor-deps/sacremoses/pernuliprops.js +287 -0
- package/third-party/indic-processor-deps/sacremoses/tokenizer.js +1217 -0
- package/third-party/indic-processor.js +565 -0
package/third-party/indic-processor-deps/sacremoses/data/nonbreaking_prefixes/nonbreaking_prefix.de
ADDED
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
#Anything in this file, followed by a period (and an upper-case word), does NOT indicate an end-of-sentence marker.
|
|
2
|
+
#Special cases are included for prefixes that ONLY appear before 0-9 numbers.
|
|
3
|
+
|
|
4
|
+
#any single upper case letter followed by a period is not a sentence ender (excluding I occasionally, but we leave it in)
|
|
5
|
+
#usually upper case letters are initials in a name
|
|
6
|
+
#no german words end in single lower-case letters, so we throw those in too.
|
|
7
|
+
A
|
|
8
|
+
B
|
|
9
|
+
C
|
|
10
|
+
D
|
|
11
|
+
E
|
|
12
|
+
F
|
|
13
|
+
G
|
|
14
|
+
H
|
|
15
|
+
I
|
|
16
|
+
J
|
|
17
|
+
K
|
|
18
|
+
L
|
|
19
|
+
M
|
|
20
|
+
N
|
|
21
|
+
O
|
|
22
|
+
P
|
|
23
|
+
Q
|
|
24
|
+
R
|
|
25
|
+
S
|
|
26
|
+
T
|
|
27
|
+
U
|
|
28
|
+
V
|
|
29
|
+
W
|
|
30
|
+
X
|
|
31
|
+
Y
|
|
32
|
+
Z
|
|
33
|
+
a
|
|
34
|
+
b
|
|
35
|
+
c
|
|
36
|
+
d
|
|
37
|
+
e
|
|
38
|
+
f
|
|
39
|
+
g
|
|
40
|
+
h
|
|
41
|
+
i
|
|
42
|
+
j
|
|
43
|
+
k
|
|
44
|
+
l
|
|
45
|
+
m
|
|
46
|
+
n
|
|
47
|
+
o
|
|
48
|
+
p
|
|
49
|
+
q
|
|
50
|
+
r
|
|
51
|
+
s
|
|
52
|
+
t
|
|
53
|
+
u
|
|
54
|
+
v
|
|
55
|
+
w
|
|
56
|
+
x
|
|
57
|
+
y
|
|
58
|
+
z
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
#Roman Numerals. A dot after one of these is not a sentence break in German.
|
|
62
|
+
I
|
|
63
|
+
II
|
|
64
|
+
III
|
|
65
|
+
IV
|
|
66
|
+
V
|
|
67
|
+
VI
|
|
68
|
+
VII
|
|
69
|
+
VIII
|
|
70
|
+
IX
|
|
71
|
+
X
|
|
72
|
+
XI
|
|
73
|
+
XII
|
|
74
|
+
XIII
|
|
75
|
+
XIV
|
|
76
|
+
XV
|
|
77
|
+
XVI
|
|
78
|
+
XVII
|
|
79
|
+
XVIII
|
|
80
|
+
XIX
|
|
81
|
+
XX
|
|
82
|
+
i
|
|
83
|
+
ii
|
|
84
|
+
iii
|
|
85
|
+
iv
|
|
86
|
+
v
|
|
87
|
+
vi
|
|
88
|
+
vii
|
|
89
|
+
viii
|
|
90
|
+
ix
|
|
91
|
+
x
|
|
92
|
+
xi
|
|
93
|
+
xii
|
|
94
|
+
xiii
|
|
95
|
+
xiv
|
|
96
|
+
xv
|
|
97
|
+
xvi
|
|
98
|
+
xvii
|
|
99
|
+
xviii
|
|
100
|
+
xix
|
|
101
|
+
xx
|
|
102
|
+
|
|
103
|
+
#Titles and Honorifics
|
|
104
|
+
Adj
|
|
105
|
+
Adm
|
|
106
|
+
Adv
|
|
107
|
+
Asst
|
|
108
|
+
Bart
|
|
109
|
+
Bldg
|
|
110
|
+
Brig
|
|
111
|
+
Bros
|
|
112
|
+
Capt
|
|
113
|
+
Cmdr
|
|
114
|
+
Col
|
|
115
|
+
Comdr
|
|
116
|
+
Con
|
|
117
|
+
Corp
|
|
118
|
+
Cpl
|
|
119
|
+
DR
|
|
120
|
+
Dr
|
|
121
|
+
Ens
|
|
122
|
+
Gen
|
|
123
|
+
Gov
|
|
124
|
+
Hon
|
|
125
|
+
Hosp
|
|
126
|
+
Insp
|
|
127
|
+
Lt
|
|
128
|
+
MM
|
|
129
|
+
MR
|
|
130
|
+
MRS
|
|
131
|
+
MS
|
|
132
|
+
Maj
|
|
133
|
+
Messrs
|
|
134
|
+
Mlle
|
|
135
|
+
Mme
|
|
136
|
+
Mr
|
|
137
|
+
Mrs
|
|
138
|
+
Ms
|
|
139
|
+
Msgr
|
|
140
|
+
Op
|
|
141
|
+
Ord
|
|
142
|
+
Pfc
|
|
143
|
+
Ph
|
|
144
|
+
Prof
|
|
145
|
+
Pvt
|
|
146
|
+
Rep
|
|
147
|
+
Reps
|
|
148
|
+
Res
|
|
149
|
+
Rev
|
|
150
|
+
Rt
|
|
151
|
+
Sen
|
|
152
|
+
Sens
|
|
153
|
+
Sfc
|
|
154
|
+
Sgt
|
|
155
|
+
Sr
|
|
156
|
+
St
|
|
157
|
+
Supt
|
|
158
|
+
Surg
|
|
159
|
+
|
|
160
|
+
#Misc symbols
|
|
161
|
+
Mio
|
|
162
|
+
Mrd
|
|
163
|
+
bzw
|
|
164
|
+
v
|
|
165
|
+
vs
|
|
166
|
+
usw
|
|
167
|
+
d.h
|
|
168
|
+
z.B
|
|
169
|
+
u.a
|
|
170
|
+
etc
|
|
171
|
+
Mrd
|
|
172
|
+
MwSt
|
|
173
|
+
ggf
|
|
174
|
+
d.J
|
|
175
|
+
D.h
|
|
176
|
+
m.E
|
|
177
|
+
vgl
|
|
178
|
+
I.F
|
|
179
|
+
z.T
|
|
180
|
+
sogen
|
|
181
|
+
ff
|
|
182
|
+
u.E
|
|
183
|
+
g.U
|
|
184
|
+
g.g.A
|
|
185
|
+
c.-à-d
|
|
186
|
+
Buchst
|
|
187
|
+
u.s.w
|
|
188
|
+
sog
|
|
189
|
+
u.ä
|
|
190
|
+
Std
|
|
191
|
+
evtl
|
|
192
|
+
Zt
|
|
193
|
+
Chr
|
|
194
|
+
u.U
|
|
195
|
+
o.ä
|
|
196
|
+
Ltd
|
|
197
|
+
b.A
|
|
198
|
+
z.Zt
|
|
199
|
+
spp
|
|
200
|
+
sen
|
|
201
|
+
SA
|
|
202
|
+
k.o
|
|
203
|
+
jun
|
|
204
|
+
i.H.v
|
|
205
|
+
dgl
|
|
206
|
+
dergl
|
|
207
|
+
Co
|
|
208
|
+
zzt
|
|
209
|
+
usf
|
|
210
|
+
s.p.a
|
|
211
|
+
Dkr
|
|
212
|
+
Corp
|
|
213
|
+
bzgl
|
|
214
|
+
BSE
|
|
215
|
+
|
|
216
|
+
#Number indicators
|
|
217
|
+
# add #NUMERIC_ONLY# after the word if it should ONLY be non-breaking when a 0-9 digit follows it
|
|
218
|
+
No
|
|
219
|
+
Nos
|
|
220
|
+
Art
|
|
221
|
+
Nr
|
|
222
|
+
pp
|
|
223
|
+
ca
|
|
224
|
+
Ca
|
|
225
|
+
|
|
226
|
+
#Ordinals are done with . in German - "1." = "1st" in English
|
|
227
|
+
1
|
|
228
|
+
2
|
|
229
|
+
3
|
|
230
|
+
4
|
|
231
|
+
5
|
|
232
|
+
6
|
|
233
|
+
7
|
|
234
|
+
8
|
|
235
|
+
9
|
|
236
|
+
10
|
|
237
|
+
11
|
|
238
|
+
12
|
|
239
|
+
13
|
|
240
|
+
14
|
|
241
|
+
15
|
|
242
|
+
16
|
|
243
|
+
17
|
|
244
|
+
18
|
|
245
|
+
19
|
|
246
|
+
20
|
|
247
|
+
21
|
|
248
|
+
22
|
|
249
|
+
23
|
|
250
|
+
24
|
|
251
|
+
25
|
|
252
|
+
26
|
|
253
|
+
27
|
|
254
|
+
28
|
|
255
|
+
29
|
|
256
|
+
30
|
|
257
|
+
31
|
|
258
|
+
32
|
|
259
|
+
33
|
|
260
|
+
34
|
|
261
|
+
35
|
|
262
|
+
36
|
|
263
|
+
37
|
|
264
|
+
38
|
|
265
|
+
39
|
|
266
|
+
40
|
|
267
|
+
41
|
|
268
|
+
42
|
|
269
|
+
43
|
|
270
|
+
44
|
|
271
|
+
45
|
|
272
|
+
46
|
|
273
|
+
47
|
|
274
|
+
48
|
|
275
|
+
49
|
|
276
|
+
50
|
|
277
|
+
51
|
|
278
|
+
52
|
|
279
|
+
53
|
|
280
|
+
54
|
|
281
|
+
55
|
|
282
|
+
56
|
|
283
|
+
57
|
|
284
|
+
58
|
|
285
|
+
59
|
|
286
|
+
60
|
|
287
|
+
61
|
|
288
|
+
62
|
|
289
|
+
63
|
|
290
|
+
64
|
|
291
|
+
65
|
|
292
|
+
66
|
|
293
|
+
67
|
|
294
|
+
68
|
|
295
|
+
69
|
|
296
|
+
70
|
|
297
|
+
71
|
|
298
|
+
72
|
|
299
|
+
73
|
|
300
|
+
74
|
|
301
|
+
75
|
|
302
|
+
76
|
|
303
|
+
77
|
|
304
|
+
78
|
|
305
|
+
79
|
|
306
|
+
80
|
|
307
|
+
81
|
|
308
|
+
82
|
|
309
|
+
83
|
|
310
|
+
84
|
|
311
|
+
85
|
|
312
|
+
86
|
|
313
|
+
87
|
|
314
|
+
88
|
|
315
|
+
89
|
|
316
|
+
90
|
|
317
|
+
91
|
|
318
|
+
92
|
|
319
|
+
93
|
|
320
|
+
94
|
|
321
|
+
95
|
|
322
|
+
96
|
|
323
|
+
97
|
|
324
|
+
98
|
|
325
|
+
99
|