lindera-wasm-ipadic-web 2.2.0 → 2.3.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/lindera_wasm.d.ts CHANGED
@@ -18,15 +18,18 @@ export class Dictionary {
18
18
  private constructor();
19
19
  free(): void;
20
20
  [Symbol.dispose](): void;
21
+ readonly encoding: string;
22
+ readonly metadata: Metadata;
23
+ readonly name: string;
21
24
  }
22
25
 
23
26
  /**
24
27
  * Field definition in dictionary schema.
25
28
  */
26
29
  export class FieldDefinition {
27
- private constructor();
28
30
  free(): void;
29
31
  [Symbol.dispose](): void;
32
+ constructor(index: number, name: string, field_type: FieldType, description?: string | null);
30
33
  get description(): string | undefined;
31
34
  set description(value: string | null | undefined);
32
35
  field_type: FieldType;
@@ -64,9 +67,10 @@ export enum FieldType {
64
67
  * Error type for Lindera operations.
65
68
  */
66
69
  export class LinderaError {
67
- private constructor();
68
70
  free(): void;
69
71
  [Symbol.dispose](): void;
72
+ constructor(message: string);
73
+ toString(): string;
70
74
  message: string;
71
75
  }
72
76
 
@@ -74,9 +78,15 @@ export class LinderaError {
74
78
  * Dictionary metadata configuration.
75
79
  */
76
80
  export class Metadata {
77
- private constructor();
78
81
  free(): void;
79
82
  [Symbol.dispose](): void;
83
+ static createDefault(): Metadata;
84
+ constructor(name?: string | null, encoding?: string | null, compress_algorithm?: CompressionAlgorithm | null);
85
+ compress_algorithm: CompressionAlgorithm;
86
+ dictionary_schema: Schema;
87
+ encoding: string;
88
+ name: string;
89
+ user_dictionary_schema: Schema;
80
90
  }
81
91
 
82
92
  /**
@@ -102,9 +112,9 @@ export enum Mode {
102
112
  * character type and length thresholds.
103
113
  */
104
114
  export class Penalty {
105
- private constructor();
106
115
  free(): void;
107
116
  [Symbol.dispose](): void;
117
+ constructor(kanji_penalty_length_threshold?: number | null, kanji_penalty_length_penalty?: number | null, other_penalty_length_threshold?: number | null, other_penalty_length_penalty?: number | null);
108
118
  kanji_penalty_length_penalty: number;
109
119
  kanji_penalty_length_threshold: number;
110
120
  other_penalty_length_penalty: number;
@@ -115,9 +125,16 @@ export class Penalty {
115
125
  * Dictionary schema definition.
116
126
  */
117
127
  export class Schema {
118
- private constructor();
119
128
  free(): void;
120
129
  [Symbol.dispose](): void;
130
+ static create_default(): Schema;
131
+ field_count(): number;
132
+ get_all_fields(): string[];
133
+ get_custom_fields(): string[];
134
+ get_field_by_name(name: string): FieldDefinition | undefined;
135
+ get_field_index(field_name: string): number | undefined;
136
+ get_field_name(index: number): string | undefined;
137
+ constructor(fields: string[]);
121
138
  }
122
139
 
123
140
  /**
@@ -306,6 +323,34 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
306
323
 
307
324
  export interface InitOutput {
308
325
  readonly memory: WebAssembly.Memory;
326
+ readonly __wbg_dictionary_free: (a: number, b: number) => void;
327
+ readonly __wbg_fielddefinition_free: (a: number, b: number) => void;
328
+ readonly __wbg_get_fielddefinition_description: (a: number) => [number, number];
329
+ readonly __wbg_get_fielddefinition_field_type: (a: number) => number;
330
+ readonly __wbg_get_fielddefinition_index: (a: number) => number;
331
+ readonly __wbg_get_fielddefinition_name: (a: number) => [number, number];
332
+ readonly __wbg_schema_free: (a: number, b: number) => void;
333
+ readonly __wbg_set_fielddefinition_description: (a: number, b: number, c: number) => void;
334
+ readonly __wbg_set_fielddefinition_field_type: (a: number, b: number) => void;
335
+ readonly __wbg_set_fielddefinition_index: (a: number, b: number) => void;
336
+ readonly __wbg_set_fielddefinition_name: (a: number, b: number, c: number) => void;
337
+ readonly __wbg_userdictionary_free: (a: number, b: number) => void;
338
+ readonly buildDictionary: (a: number, b: number, c: number, d: number, e: number) => [number, number];
339
+ readonly buildUserDictionary: (a: number, b: number, c: number, d: number, e: number) => [number, number];
340
+ readonly jsdictionary_encoding: (a: number) => [number, number];
341
+ readonly jsdictionary_metadata: (a: number) => number;
342
+ readonly jsdictionary_name: (a: number) => [number, number];
343
+ readonly jsfielddefinition_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
344
+ readonly jsschema_create_default: () => number;
345
+ readonly jsschema_field_count: (a: number) => number;
346
+ readonly jsschema_get_all_fields: (a: number) => [number, number];
347
+ readonly jsschema_get_custom_fields: (a: number) => [number, number];
348
+ readonly jsschema_get_field_by_name: (a: number, b: number, c: number) => number;
349
+ readonly jsschema_get_field_index: (a: number, b: number, c: number) => number;
350
+ readonly jsschema_get_field_name: (a: number, b: number) => [number, number];
351
+ readonly jsschema_new: (a: number, b: number) => number;
352
+ readonly loadDictionary: (a: number, b: number) => [number, number, number];
353
+ readonly loadUserDictionary: (a: number, b: number, c: number) => [number, number, number];
309
354
  readonly __wbg_tokenizer_free: (a: number, b: number) => void;
310
355
  readonly __wbg_tokenizerbuilder_free: (a: number, b: number) => void;
311
356
  readonly tokenizer_new: (a: number, b: number, c: number, d: number) => [number, number, number];
@@ -326,6 +371,20 @@ export interface InitOutput {
326
371
  readonly tokenizerbuilder_set_keep_whitespace: (a: number, b: number) => [number, number];
327
372
  readonly tokenizerbuilder_set_mode: (a: number, b: number, c: number) => [number, number];
328
373
  readonly tokenizerbuilder_set_user_dictionary: (a: number, b: number, c: number) => [number, number];
374
+ readonly __wbg_metadata_free: (a: number, b: number) => void;
375
+ readonly __wbg_segmenter_free: (a: number, b: number) => void;
376
+ readonly jsmetadata_compress_algorithm: (a: number) => number;
377
+ readonly jsmetadata_createDefault: () => number;
378
+ readonly jsmetadata_dictionary_schema: (a: number) => number;
379
+ readonly jsmetadata_encoding: (a: number) => [number, number];
380
+ readonly jsmetadata_name: (a: number) => [number, number];
381
+ readonly jsmetadata_new: (a: number, b: number, c: number, d: number, e: number) => number;
382
+ readonly jsmetadata_set_compress_algorithm: (a: number, b: number) => void;
383
+ readonly jsmetadata_set_dictionary_schema: (a: number, b: number) => void;
384
+ readonly jsmetadata_set_encoding: (a: number, b: number, c: number) => void;
385
+ readonly jsmetadata_set_name: (a: number, b: number, c: number) => void;
386
+ readonly jsmetadata_set_user_dictionary_schema: (a: number, b: number) => void;
387
+ readonly jsmetadata_user_dictionary_schema: (a: number) => number;
329
388
  readonly __wbg_get_token_byte_end: (a: number) => number;
330
389
  readonly __wbg_get_token_details: (a: number) => [number, number];
331
390
  readonly __wbg_get_token_is_unknown: (a: number) => number;
@@ -338,24 +397,15 @@ export interface InitOutput {
338
397
  readonly __wbg_set_token_position: (a: number, b: number) => void;
339
398
  readonly __wbg_set_token_word_id: (a: number, b: number) => void;
340
399
  readonly __wbg_token_free: (a: number, b: number) => void;
400
+ readonly build_dictionary: (a: number, b: number, c: number, d: number, e: number) => [number, number];
401
+ readonly build_user_dictionary: (a: number, b: number, c: number, d: number, e: number) => [number, number];
402
+ readonly getVersion: () => [number, number];
341
403
  readonly jslinderaerror_new: (a: number, b: number) => number;
342
404
  readonly jslinderaerror_toString: (a: number) => [number, number];
405
+ readonly load_dictionary: (a: number, b: number) => [number, number, number];
406
+ readonly load_user_dictionary: (a: number, b: number, c: number) => [number, number, number];
343
407
  readonly token_getDetail: (a: number, b: number) => [number, number];
344
408
  readonly token_toJSON: (a: number) => any;
345
- readonly __wbg_metadata_free: (a: number, b: number) => void;
346
- readonly __wbg_segmenter_free: (a: number, b: number) => void;
347
- readonly jsmetadata_compress_algorithm: (a: number) => number;
348
- readonly jsmetadata_createDefault: () => number;
349
- readonly jsmetadata_dictionary_schema: (a: number) => number;
350
- readonly jsmetadata_encoding: (a: number) => [number, number];
351
- readonly jsmetadata_name: (a: number) => [number, number];
352
- readonly jsmetadata_new: (a: number, b: number, c: number, d: number, e: number) => number;
353
- readonly jsmetadata_set_compress_algorithm: (a: number, b: number) => void;
354
- readonly jsmetadata_set_dictionary_schema: (a: number, b: number) => void;
355
- readonly jsmetadata_set_encoding: (a: number, b: number, c: number) => void;
356
- readonly jsmetadata_set_name: (a: number, b: number, c: number) => void;
357
- readonly jsmetadata_set_user_dictionary_schema: (a: number, b: number) => void;
358
- readonly jsmetadata_user_dictionary_schema: (a: number) => number;
359
409
  readonly __wbg_get_penalty_kanji_penalty_length_penalty: (a: number) => number;
360
410
  readonly __wbg_get_penalty_kanji_penalty_length_threshold: (a: number) => number;
361
411
  readonly __wbg_get_penalty_other_penalty_length_penalty: (a: number) => number;
@@ -365,47 +415,14 @@ export interface InitOutput {
365
415
  readonly __wbg_set_penalty_kanji_penalty_length_threshold: (a: number, b: number) => void;
366
416
  readonly __wbg_set_penalty_other_penalty_length_penalty: (a: number, b: number) => void;
367
417
  readonly __wbg_set_penalty_other_penalty_length_threshold: (a: number, b: number) => void;
368
- readonly build_dictionary: (a: number, b: number, c: number, d: number, e: number) => [number, number];
369
- readonly build_user_dictionary: (a: number, b: number, c: number, d: number, e: number) => [number, number];
370
- readonly getVersion: () => [number, number];
371
418
  readonly jspenalty_new: (a: number, b: number, c: number, d: number) => number;
372
- readonly load_dictionary: (a: number, b: number) => [number, number, number];
373
- readonly load_user_dictionary: (a: number, b: number, c: number) => [number, number, number];
374
- readonly __wbg_fielddefinition_free: (a: number, b: number) => void;
375
- readonly __wbg_get_fielddefinition_description: (a: number) => [number, number];
376
- readonly __wbg_get_fielddefinition_field_type: (a: number) => number;
377
- readonly __wbg_get_fielddefinition_index: (a: number) => number;
378
- readonly __wbg_get_fielddefinition_name: (a: number) => [number, number];
379
- readonly __wbg_schema_free: (a: number, b: number) => void;
380
- readonly __wbg_set_fielddefinition_description: (a: number, b: number, c: number) => void;
381
- readonly __wbg_set_fielddefinition_field_type: (a: number, b: number) => void;
382
- readonly __wbg_set_fielddefinition_index: (a: number, b: number) => void;
383
- readonly __wbg_set_fielddefinition_name: (a: number, b: number, c: number) => void;
384
- readonly jsfielddefinition_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
385
- readonly jsschema_create_default: () => number;
386
- readonly jsschema_field_count: (a: number) => number;
387
- readonly jsschema_get_all_fields: (a: number) => [number, number];
388
- readonly jsschema_get_custom_fields: (a: number) => [number, number];
389
- readonly jsschema_get_field_by_name: (a: number, b: number, c: number) => number;
390
- readonly jsschema_get_field_index: (a: number, b: number, c: number) => number;
391
- readonly jsschema_get_field_name: (a: number, b: number) => [number, number];
392
- readonly jsschema_new: (a: number, b: number) => number;
393
- readonly __wbg_dictionary_free: (a: number, b: number) => void;
394
- readonly __wbg_userdictionary_free: (a: number, b: number) => void;
395
- readonly buildDictionary: (a: number, b: number, c: number, d: number, e: number) => [number, number];
396
- readonly buildUserDictionary: (a: number, b: number, c: number, d: number, e: number) => [number, number];
397
- readonly jsdictionary_encoding: (a: number) => [number, number];
398
- readonly jsdictionary_metadata: (a: number) => number;
399
- readonly jsdictionary_name: (a: number) => [number, number];
400
- readonly loadDictionary: (a: number, b: number) => [number, number, number];
401
- readonly loadUserDictionary: (a: number, b: number, c: number) => [number, number, number];
402
- readonly version: () => [number, number];
403
419
  readonly __wbg_set_token_byte_start: (a: number, b: number) => void;
404
- readonly __wbg_set_token_surface: (a: number, b: number, c: number) => void;
405
- readonly __wbg_set_linderaerror_message: (a: number, b: number, c: number) => void;
406
- readonly __wbg_get_token_byte_start: (a: number) => number;
407
- readonly __wbg_get_token_surface: (a: number) => [number, number];
408
420
  readonly __wbg_get_linderaerror_message: (a: number) => [number, number];
421
+ readonly __wbg_get_token_surface: (a: number) => [number, number];
422
+ readonly __wbg_get_token_byte_start: (a: number) => number;
423
+ readonly version: () => [number, number];
424
+ readonly __wbg_set_linderaerror_message: (a: number, b: number, c: number) => void;
425
+ readonly __wbg_set_token_surface: (a: number, b: number, c: number) => void;
409
426
  readonly __wbindgen_malloc: (a: number, b: number) => number;
410
427
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
411
428
  readonly __wbindgen_exn_store: (a: number) => void;
package/lindera_wasm.js CHANGED
@@ -32,6 +32,43 @@ export class Dictionary {
32
32
  const ptr = this.__destroy_into_raw();
33
33
  wasm.__wbg_dictionary_free(ptr, 0);
34
34
  }
35
+ /**
36
+ * @returns {string}
37
+ */
38
+ get encoding() {
39
+ let deferred1_0;
40
+ let deferred1_1;
41
+ try {
42
+ const ret = wasm.jsdictionary_encoding(this.__wbg_ptr);
43
+ deferred1_0 = ret[0];
44
+ deferred1_1 = ret[1];
45
+ return getStringFromWasm0(ret[0], ret[1]);
46
+ } finally {
47
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
48
+ }
49
+ }
50
+ /**
51
+ * @returns {Metadata}
52
+ */
53
+ get metadata() {
54
+ const ret = wasm.jsdictionary_metadata(this.__wbg_ptr);
55
+ return Metadata.__wrap(ret);
56
+ }
57
+ /**
58
+ * @returns {string}
59
+ */
60
+ get name() {
61
+ let deferred1_0;
62
+ let deferred1_1;
63
+ try {
64
+ const ret = wasm.jsdictionary_name(this.__wbg_ptr);
65
+ deferred1_0 = ret[0];
66
+ deferred1_1 = ret[1];
67
+ return getStringFromWasm0(ret[0], ret[1]);
68
+ } finally {
69
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
70
+ }
71
+ }
35
72
  }
36
73
  if (Symbol.dispose) Dictionary.prototype[Symbol.dispose] = Dictionary.prototype.free;
37
74
 
@@ -97,6 +134,22 @@ export class FieldDefinition {
97
134
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
98
135
  }
99
136
  }
137
+ /**
138
+ * @param {number} index
139
+ * @param {string} name
140
+ * @param {FieldType} field_type
141
+ * @param {string | null} [description]
142
+ */
143
+ constructor(index, name, field_type, description) {
144
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
145
+ const len0 = WASM_VECTOR_LEN;
146
+ var ptr1 = isLikeNone(description) ? 0 : passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
147
+ var len1 = WASM_VECTOR_LEN;
148
+ const ret = wasm.jsfielddefinition_new(index, ptr0, len0, field_type, ptr1, len1);
149
+ this.__wbg_ptr = ret >>> 0;
150
+ FieldDefinitionFinalization.register(this, this.__wbg_ptr, this);
151
+ return this;
152
+ }
100
153
  /**
101
154
  * @param {string | null} [arg0]
102
155
  */
@@ -155,47 +208,28 @@ export const FieldType = Object.freeze({
155
208
  Custom: 4, "4": "Custom",
156
209
  });
157
210
 
158
- export class JsDictionary {
211
+ /**
212
+ * Error type for Lindera operations.
213
+ */
214
+ export class LinderaError {
159
215
  __destroy_into_raw() {
160
216
  const ptr = this.__wbg_ptr;
161
217
  this.__wbg_ptr = 0;
162
- JsDictionaryFinalization.unregister(this);
218
+ LinderaErrorFinalization.unregister(this);
163
219
  return ptr;
164
220
  }
165
221
  free() {
166
222
  const ptr = this.__destroy_into_raw();
167
- wasm.__wbg_jsdictionary_free(ptr, 0);
168
- }
169
- /**
170
- * @returns {string}
171
- */
172
- get encoding() {
173
- let deferred1_0;
174
- let deferred1_1;
175
- try {
176
- const ret = wasm.jsdictionary_encoding(this.__wbg_ptr);
177
- deferred1_0 = ret[0];
178
- deferred1_1 = ret[1];
179
- return getStringFromWasm0(ret[0], ret[1]);
180
- } finally {
181
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
182
- }
183
- }
184
- /**
185
- * @returns {Metadata}
186
- */
187
- get metadata() {
188
- const ret = wasm.jsdictionary_metadata(this.__wbg_ptr);
189
- return Metadata.__wrap(ret);
223
+ wasm.__wbg_linderaerror_free(ptr, 0);
190
224
  }
191
225
  /**
192
226
  * @returns {string}
193
227
  */
194
- get name() {
228
+ get message() {
195
229
  let deferred1_0;
196
230
  let deferred1_1;
197
231
  try {
198
- const ret = wasm.jsdictionary_name(this.__wbg_ptr);
232
+ const ret = wasm.__wbg_get_linderaerror_message(this.__wbg_ptr);
199
233
  deferred1_0 = ret[0];
200
234
  deferred1_1 = ret[1];
201
235
  return getStringFromWasm0(ret[0], ret[1]);
@@ -203,48 +237,6 @@ export class JsDictionary {
203
237
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
204
238
  }
205
239
  }
206
- }
207
- if (Symbol.dispose) JsDictionary.prototype[Symbol.dispose] = JsDictionary.prototype.free;
208
-
209
- export class JsFieldDefinition {
210
- __destroy_into_raw() {
211
- const ptr = this.__wbg_ptr;
212
- this.__wbg_ptr = 0;
213
- JsFieldDefinitionFinalization.unregister(this);
214
- return ptr;
215
- }
216
- free() {
217
- const ptr = this.__destroy_into_raw();
218
- wasm.__wbg_jsfielddefinition_free(ptr, 0);
219
- }
220
- /**
221
- * @param {number} index
222
- * @param {string} name
223
- * @param {FieldType} field_type
224
- * @param {string | null} [description]
225
- */
226
- constructor(index, name, field_type, description) {
227
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
228
- const len0 = WASM_VECTOR_LEN;
229
- var ptr1 = isLikeNone(description) ? 0 : passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
230
- var len1 = WASM_VECTOR_LEN;
231
- const ret = wasm.jsfielddefinition_new(index, ptr0, len0, field_type, ptr1, len1);
232
- return FieldDefinition.__wrap(ret);
233
- }
234
- }
235
- if (Symbol.dispose) JsFieldDefinition.prototype[Symbol.dispose] = JsFieldDefinition.prototype.free;
236
-
237
- export class JsLinderaError {
238
- __destroy_into_raw() {
239
- const ptr = this.__wbg_ptr;
240
- this.__wbg_ptr = 0;
241
- JsLinderaErrorFinalization.unregister(this);
242
- return ptr;
243
- }
244
- free() {
245
- const ptr = this.__destroy_into_raw();
246
- wasm.__wbg_jslinderaerror_free(ptr, 0);
247
- }
248
240
  /**
249
241
  * @param {string} message
250
242
  */
@@ -252,7 +244,9 @@ export class JsLinderaError {
252
244
  const ptr0 = passStringToWasm0(message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
253
245
  const len0 = WASM_VECTOR_LEN;
254
246
  const ret = wasm.jslinderaerror_new(ptr0, len0);
255
- return LinderaError.__wrap(ret);
247
+ this.__wbg_ptr = ret >>> 0;
248
+ LinderaErrorFinalization.register(this, this.__wbg_ptr, this);
249
+ return this;
256
250
  }
257
251
  /**
258
252
  * @returns {string}
@@ -269,19 +263,37 @@ export class JsLinderaError {
269
263
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
270
264
  }
271
265
  }
266
+ /**
267
+ * @param {string} arg0
268
+ */
269
+ set message(arg0) {
270
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
271
+ const len0 = WASM_VECTOR_LEN;
272
+ wasm.__wbg_set_linderaerror_message(this.__wbg_ptr, ptr0, len0);
273
+ }
272
274
  }
273
- if (Symbol.dispose) JsLinderaError.prototype[Symbol.dispose] = JsLinderaError.prototype.free;
275
+ if (Symbol.dispose) LinderaError.prototype[Symbol.dispose] = LinderaError.prototype.free;
274
276
 
275
- export class JsMetadata {
277
+ /**
278
+ * Dictionary metadata configuration.
279
+ */
280
+ export class Metadata {
281
+ static __wrap(ptr) {
282
+ ptr = ptr >>> 0;
283
+ const obj = Object.create(Metadata.prototype);
284
+ obj.__wbg_ptr = ptr;
285
+ MetadataFinalization.register(obj, obj.__wbg_ptr, obj);
286
+ return obj;
287
+ }
276
288
  __destroy_into_raw() {
277
289
  const ptr = this.__wbg_ptr;
278
290
  this.__wbg_ptr = 0;
279
- JsMetadataFinalization.unregister(this);
291
+ MetadataFinalization.unregister(this);
280
292
  return ptr;
281
293
  }
282
294
  free() {
283
295
  const ptr = this.__destroy_into_raw();
284
- wasm.__wbg_jsmetadata_free(ptr, 0);
296
+ wasm.__wbg_metadata_free(ptr, 0);
285
297
  }
286
298
  /**
287
299
  * @returns {CompressionAlgorithm}
@@ -345,7 +357,9 @@ export class JsMetadata {
345
357
  var ptr1 = isLikeNone(encoding) ? 0 : passStringToWasm0(encoding, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
346
358
  var len1 = WASM_VECTOR_LEN;
347
359
  const ret = wasm.jsmetadata_new(ptr0, len0, ptr1, len1, isLikeNone(compress_algorithm) ? 4 : compress_algorithm);
348
- return Metadata.__wrap(ret);
360
+ this.__wbg_ptr = ret >>> 0;
361
+ MetadataFinalization.register(this, this.__wbg_ptr, this);
362
+ return this;
349
363
  }
350
364
  /**
351
365
  * @param {CompressionAlgorithm} algorithm
@@ -393,189 +407,6 @@ export class JsMetadata {
393
407
  return Schema.__wrap(ret);
394
408
  }
395
409
  }
396
- if (Symbol.dispose) JsMetadata.prototype[Symbol.dispose] = JsMetadata.prototype.free;
397
-
398
- export class JsPenalty {
399
- __destroy_into_raw() {
400
- const ptr = this.__wbg_ptr;
401
- this.__wbg_ptr = 0;
402
- JsPenaltyFinalization.unregister(this);
403
- return ptr;
404
- }
405
- free() {
406
- const ptr = this.__destroy_into_raw();
407
- wasm.__wbg_jspenalty_free(ptr, 0);
408
- }
409
- /**
410
- * @param {number | null} [kanji_penalty_length_threshold]
411
- * @param {number | null} [kanji_penalty_length_penalty]
412
- * @param {number | null} [other_penalty_length_threshold]
413
- * @param {number | null} [other_penalty_length_penalty]
414
- */
415
- constructor(kanji_penalty_length_threshold, kanji_penalty_length_penalty, other_penalty_length_threshold, other_penalty_length_penalty) {
416
- const ret = wasm.jspenalty_new(isLikeNone(kanji_penalty_length_threshold) ? 0x100000001 : (kanji_penalty_length_threshold) >>> 0, isLikeNone(kanji_penalty_length_penalty) ? 0x100000001 : (kanji_penalty_length_penalty) >> 0, isLikeNone(other_penalty_length_threshold) ? 0x100000001 : (other_penalty_length_threshold) >>> 0, isLikeNone(other_penalty_length_penalty) ? 0x100000001 : (other_penalty_length_penalty) >> 0);
417
- return Penalty.__wrap(ret);
418
- }
419
- }
420
- if (Symbol.dispose) JsPenalty.prototype[Symbol.dispose] = JsPenalty.prototype.free;
421
-
422
- export class JsSchema {
423
- __destroy_into_raw() {
424
- const ptr = this.__wbg_ptr;
425
- this.__wbg_ptr = 0;
426
- JsSchemaFinalization.unregister(this);
427
- return ptr;
428
- }
429
- free() {
430
- const ptr = this.__destroy_into_raw();
431
- wasm.__wbg_jsschema_free(ptr, 0);
432
- }
433
- /**
434
- * @returns {Schema}
435
- */
436
- static create_default() {
437
- const ret = wasm.jsschema_create_default();
438
- return Schema.__wrap(ret);
439
- }
440
- /**
441
- * @returns {number}
442
- */
443
- field_count() {
444
- const ret = wasm.jsschema_field_count(this.__wbg_ptr);
445
- return ret >>> 0;
446
- }
447
- /**
448
- * @returns {string[]}
449
- */
450
- get_all_fields() {
451
- const ret = wasm.jsschema_get_all_fields(this.__wbg_ptr);
452
- var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
453
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
454
- return v1;
455
- }
456
- /**
457
- * @returns {string[]}
458
- */
459
- get_custom_fields() {
460
- const ret = wasm.jsschema_get_custom_fields(this.__wbg_ptr);
461
- var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
462
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
463
- return v1;
464
- }
465
- /**
466
- * @param {string} name
467
- * @returns {FieldDefinition | undefined}
468
- */
469
- get_field_by_name(name) {
470
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
471
- const len0 = WASM_VECTOR_LEN;
472
- const ret = wasm.jsschema_get_field_by_name(this.__wbg_ptr, ptr0, len0);
473
- return ret === 0 ? undefined : FieldDefinition.__wrap(ret);
474
- }
475
- /**
476
- * @param {string} field_name
477
- * @returns {number | undefined}
478
- */
479
- get_field_index(field_name) {
480
- const ptr0 = passStringToWasm0(field_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
481
- const len0 = WASM_VECTOR_LEN;
482
- const ret = wasm.jsschema_get_field_index(this.__wbg_ptr, ptr0, len0);
483
- return ret === 0x100000001 ? undefined : ret;
484
- }
485
- /**
486
- * @param {number} index
487
- * @returns {string | undefined}
488
- */
489
- get_field_name(index) {
490
- const ret = wasm.jsschema_get_field_name(this.__wbg_ptr, index);
491
- let v1;
492
- if (ret[0] !== 0) {
493
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
494
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
495
- }
496
- return v1;
497
- }
498
- /**
499
- * @param {string[]} fields
500
- */
501
- constructor(fields) {
502
- const ptr0 = passArrayJsValueToWasm0(fields, wasm.__wbindgen_malloc);
503
- const len0 = WASM_VECTOR_LEN;
504
- const ret = wasm.jsschema_new(ptr0, len0);
505
- return Schema.__wrap(ret);
506
- }
507
- }
508
- if (Symbol.dispose) JsSchema.prototype[Symbol.dispose] = JsSchema.prototype.free;
509
-
510
- /**
511
- * Error type for Lindera operations.
512
- */
513
- export class LinderaError {
514
- static __wrap(ptr) {
515
- ptr = ptr >>> 0;
516
- const obj = Object.create(LinderaError.prototype);
517
- obj.__wbg_ptr = ptr;
518
- LinderaErrorFinalization.register(obj, obj.__wbg_ptr, obj);
519
- return obj;
520
- }
521
- __destroy_into_raw() {
522
- const ptr = this.__wbg_ptr;
523
- this.__wbg_ptr = 0;
524
- LinderaErrorFinalization.unregister(this);
525
- return ptr;
526
- }
527
- free() {
528
- const ptr = this.__destroy_into_raw();
529
- wasm.__wbg_linderaerror_free(ptr, 0);
530
- }
531
- /**
532
- * @returns {string}
533
- */
534
- get message() {
535
- let deferred1_0;
536
- let deferred1_1;
537
- try {
538
- const ret = wasm.__wbg_get_linderaerror_message(this.__wbg_ptr);
539
- deferred1_0 = ret[0];
540
- deferred1_1 = ret[1];
541
- return getStringFromWasm0(ret[0], ret[1]);
542
- } finally {
543
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
544
- }
545
- }
546
- /**
547
- * @param {string} arg0
548
- */
549
- set message(arg0) {
550
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
551
- const len0 = WASM_VECTOR_LEN;
552
- wasm.__wbg_set_fielddefinition_name(this.__wbg_ptr, ptr0, len0);
553
- }
554
- }
555
- if (Symbol.dispose) LinderaError.prototype[Symbol.dispose] = LinderaError.prototype.free;
556
-
557
- /**
558
- * Dictionary metadata configuration.
559
- */
560
- export class Metadata {
561
- static __wrap(ptr) {
562
- ptr = ptr >>> 0;
563
- const obj = Object.create(Metadata.prototype);
564
- obj.__wbg_ptr = ptr;
565
- MetadataFinalization.register(obj, obj.__wbg_ptr, obj);
566
- return obj;
567
- }
568
- __destroy_into_raw() {
569
- const ptr = this.__wbg_ptr;
570
- this.__wbg_ptr = 0;
571
- MetadataFinalization.unregister(this);
572
- return ptr;
573
- }
574
- free() {
575
- const ptr = this.__destroy_into_raw();
576
- wasm.__wbg_metadata_free(ptr, 0);
577
- }
578
- }
579
410
  if (Symbol.dispose) Metadata.prototype[Symbol.dispose] = Metadata.prototype.free;
580
411
 
581
412
  /**
@@ -602,13 +433,6 @@ export const Mode = Object.freeze({
602
433
  * character type and length thresholds.
603
434
  */
604
435
  export class Penalty {
605
- static __wrap(ptr) {
606
- ptr = ptr >>> 0;
607
- const obj = Object.create(Penalty.prototype);
608
- obj.__wbg_ptr = ptr;
609
- PenaltyFinalization.register(obj, obj.__wbg_ptr, obj);
610
- return obj;
611
- }
612
436
  __destroy_into_raw() {
613
437
  const ptr = this.__wbg_ptr;
614
438
  this.__wbg_ptr = 0;
@@ -647,6 +471,18 @@ export class Penalty {
647
471
  const ret = wasm.__wbg_get_penalty_other_penalty_length_threshold(this.__wbg_ptr);
648
472
  return ret >>> 0;
649
473
  }
474
+ /**
475
+ * @param {number | null} [kanji_penalty_length_threshold]
476
+ * @param {number | null} [kanji_penalty_length_penalty]
477
+ * @param {number | null} [other_penalty_length_threshold]
478
+ * @param {number | null} [other_penalty_length_penalty]
479
+ */
480
+ constructor(kanji_penalty_length_threshold, kanji_penalty_length_penalty, other_penalty_length_threshold, other_penalty_length_penalty) {
481
+ const ret = wasm.jspenalty_new(isLikeNone(kanji_penalty_length_threshold) ? 0x100000001 : (kanji_penalty_length_threshold) >>> 0, isLikeNone(kanji_penalty_length_penalty) ? 0x100000001 : (kanji_penalty_length_penalty) >> 0, isLikeNone(other_penalty_length_threshold) ? 0x100000001 : (other_penalty_length_threshold) >>> 0, isLikeNone(other_penalty_length_penalty) ? 0x100000001 : (other_penalty_length_penalty) >> 0);
482
+ this.__wbg_ptr = ret >>> 0;
483
+ PenaltyFinalization.register(this, this.__wbg_ptr, this);
484
+ return this;
485
+ }
650
486
  /**
651
487
  * @param {number} arg0
652
488
  */
@@ -695,6 +531,82 @@ export class Schema {
695
531
  const ptr = this.__destroy_into_raw();
696
532
  wasm.__wbg_schema_free(ptr, 0);
697
533
  }
534
+ /**
535
+ * @returns {Schema}
536
+ */
537
+ static create_default() {
538
+ const ret = wasm.jsschema_create_default();
539
+ return Schema.__wrap(ret);
540
+ }
541
+ /**
542
+ * @returns {number}
543
+ */
544
+ field_count() {
545
+ const ret = wasm.jsschema_field_count(this.__wbg_ptr);
546
+ return ret >>> 0;
547
+ }
548
+ /**
549
+ * @returns {string[]}
550
+ */
551
+ get_all_fields() {
552
+ const ret = wasm.jsschema_get_all_fields(this.__wbg_ptr);
553
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
554
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
555
+ return v1;
556
+ }
557
+ /**
558
+ * @returns {string[]}
559
+ */
560
+ get_custom_fields() {
561
+ const ret = wasm.jsschema_get_custom_fields(this.__wbg_ptr);
562
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
563
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
564
+ return v1;
565
+ }
566
+ /**
567
+ * @param {string} name
568
+ * @returns {FieldDefinition | undefined}
569
+ */
570
+ get_field_by_name(name) {
571
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
572
+ const len0 = WASM_VECTOR_LEN;
573
+ const ret = wasm.jsschema_get_field_by_name(this.__wbg_ptr, ptr0, len0);
574
+ return ret === 0 ? undefined : FieldDefinition.__wrap(ret);
575
+ }
576
+ /**
577
+ * @param {string} field_name
578
+ * @returns {number | undefined}
579
+ */
580
+ get_field_index(field_name) {
581
+ const ptr0 = passStringToWasm0(field_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
582
+ const len0 = WASM_VECTOR_LEN;
583
+ const ret = wasm.jsschema_get_field_index(this.__wbg_ptr, ptr0, len0);
584
+ return ret === 0x100000001 ? undefined : ret;
585
+ }
586
+ /**
587
+ * @param {number} index
588
+ * @returns {string | undefined}
589
+ */
590
+ get_field_name(index) {
591
+ const ret = wasm.jsschema_get_field_name(this.__wbg_ptr, index);
592
+ let v1;
593
+ if (ret[0] !== 0) {
594
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
595
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
596
+ }
597
+ return v1;
598
+ }
599
+ /**
600
+ * @param {string[]} fields
601
+ */
602
+ constructor(fields) {
603
+ const ptr0 = passArrayJsValueToWasm0(fields, wasm.__wbindgen_malloc);
604
+ const len0 = WASM_VECTOR_LEN;
605
+ const ret = wasm.jsschema_new(ptr0, len0);
606
+ this.__wbg_ptr = ret >>> 0;
607
+ SchemaFinalization.register(this, this.__wbg_ptr, this);
608
+ return this;
609
+ }
698
610
  }
699
611
  if (Symbol.dispose) Schema.prototype[Symbol.dispose] = Schema.prototype.free;
700
612
 
@@ -751,7 +663,7 @@ export class Token {
751
663
  * @returns {number}
752
664
  */
753
665
  get byte_start() {
754
- const ret = wasm.__wbg_get_fielddefinition_index(this.__wbg_ptr);
666
+ const ret = wasm.__wbg_get_token_byte_start(this.__wbg_ptr);
755
667
  return ret >>> 0;
756
668
  }
757
669
  /**
@@ -816,7 +728,7 @@ export class Token {
816
728
  * @param {number} arg0
817
729
  */
818
730
  set byte_start(arg0) {
819
- wasm.__wbg_set_fielddefinition_index(this.__wbg_ptr, arg0);
731
+ wasm.__wbg_set_token_byte_start(this.__wbg_ptr, arg0);
820
732
  }
821
733
  /**
822
734
  * Morphological details of the token.
@@ -848,7 +760,7 @@ export class Token {
848
760
  set surface(arg0) {
849
761
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
850
762
  const len0 = WASM_VECTOR_LEN;
851
- wasm.__wbg_set_fielddefinition_name(this.__wbg_ptr, ptr0, len0);
763
+ wasm.__wbg_set_token_surface(this.__wbg_ptr, ptr0, len0);
852
764
  }
853
765
  /**
854
766
  * Word ID in the dictionary.
@@ -1377,75 +1289,75 @@ export function version() {
1377
1289
  function __wbg_get_imports() {
1378
1290
  const import0 = {
1379
1291
  __proto__: null,
1380
- __wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
1292
+ __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
1381
1293
  const ret = Error(getStringFromWasm0(arg0, arg1));
1382
1294
  return ret;
1383
1295
  },
1384
- __wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
1296
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
1385
1297
  const ret = String(arg1);
1386
1298
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1387
1299
  const len1 = WASM_VECTOR_LEN;
1388
1300
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1389
1301
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1390
1302
  },
1391
- __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
1303
+ __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
1392
1304
  const v = arg1;
1393
1305
  const ret = typeof(v) === 'bigint' ? v : undefined;
1394
1306
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1395
1307
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1396
1308
  },
1397
- __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
1309
+ __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
1398
1310
  const v = arg0;
1399
1311
  const ret = typeof(v) === 'boolean' ? v : undefined;
1400
1312
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1401
1313
  },
1402
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
1314
+ __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
1403
1315
  const ret = debugString(arg1);
1404
1316
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1405
1317
  const len1 = WASM_VECTOR_LEN;
1406
1318
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1407
1319
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1408
1320
  },
1409
- __wbg___wbindgen_in_47fa6863be6f2f25: function(arg0, arg1) {
1321
+ __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
1410
1322
  const ret = arg0 in arg1;
1411
1323
  return ret;
1412
1324
  },
1413
- __wbg___wbindgen_is_bigint_31b12575b56f32fc: function(arg0) {
1325
+ __wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
1414
1326
  const ret = typeof(arg0) === 'bigint';
1415
1327
  return ret;
1416
1328
  },
1417
- __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
1329
+ __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
1418
1330
  const ret = typeof(arg0) === 'function';
1419
1331
  return ret;
1420
1332
  },
1421
- __wbg___wbindgen_is_null_ac34f5003991759a: function(arg0) {
1333
+ __wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
1422
1334
  const ret = arg0 === null;
1423
1335
  return ret;
1424
1336
  },
1425
- __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
1337
+ __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
1426
1338
  const val = arg0;
1427
1339
  const ret = typeof(val) === 'object' && val !== null;
1428
1340
  return ret;
1429
1341
  },
1430
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
1342
+ __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
1431
1343
  const ret = arg0 === undefined;
1432
1344
  return ret;
1433
1345
  },
1434
- __wbg___wbindgen_jsval_eq_11888390b0186270: function(arg0, arg1) {
1346
+ __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
1435
1347
  const ret = arg0 === arg1;
1436
1348
  return ret;
1437
1349
  },
1438
- __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
1350
+ __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
1439
1351
  const ret = arg0 == arg1;
1440
1352
  return ret;
1441
1353
  },
1442
- __wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
1354
+ __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
1443
1355
  const obj = arg1;
1444
1356
  const ret = typeof(obj) === 'number' ? obj : undefined;
1445
1357
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1446
1358
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1447
1359
  },
1448
- __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
1360
+ __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
1449
1361
  const obj = arg1;
1450
1362
  const ret = typeof(obj) === 'string' ? obj : undefined;
1451
1363
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1453,30 +1365,34 @@ function __wbg_get_imports() {
1453
1365
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1454
1366
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1455
1367
  },
1456
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
1368
+ __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
1457
1369
  throw new Error(getStringFromWasm0(arg0, arg1));
1458
1370
  },
1459
- __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
1371
+ __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
1460
1372
  const ret = arg0.call(arg1);
1461
1373
  return ret;
1462
1374
  }, arguments); },
1463
- __wbg_done_57b39ecd9addfe81: function(arg0) {
1375
+ __wbg_done_08ce71ee07e3bd17: function(arg0) {
1464
1376
  const ret = arg0.done;
1465
1377
  return ret;
1466
1378
  },
1467
- __wbg_entries_58c7934c745daac7: function(arg0) {
1379
+ __wbg_entries_e8a20ff8c9757101: function(arg0) {
1468
1380
  const ret = Object.entries(arg0);
1469
1381
  return ret;
1470
1382
  },
1471
- __wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
1383
+ __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
1384
+ const ret = Reflect.get(arg0, arg1);
1385
+ return ret;
1386
+ }, arguments); },
1387
+ __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
1472
1388
  const ret = arg0[arg1 >>> 0];
1473
1389
  return ret;
1474
1390
  },
1475
- __wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
1476
- const ret = Reflect.get(arg0, arg1);
1391
+ __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
1392
+ const ret = arg0[arg1 >>> 0];
1477
1393
  return ret;
1478
- }, arguments); },
1479
- __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
1394
+ },
1395
+ __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
1480
1396
  let result;
1481
1397
  try {
1482
1398
  result = arg0 instanceof ArrayBuffer;
@@ -1486,7 +1402,7 @@ function __wbg_get_imports() {
1486
1402
  const ret = result;
1487
1403
  return ret;
1488
1404
  },
1489
- __wbg_instanceof_Map_53af74335dec57f4: function(arg0) {
1405
+ __wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
1490
1406
  let result;
1491
1407
  try {
1492
1408
  result = arg0 instanceof Map;
@@ -1496,7 +1412,7 @@ function __wbg_get_imports() {
1496
1412
  const ret = result;
1497
1413
  return ret;
1498
1414
  },
1499
- __wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
1415
+ __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
1500
1416
  let result;
1501
1417
  try {
1502
1418
  result = arg0 instanceof Uint8Array;
@@ -1506,54 +1422,54 @@ function __wbg_get_imports() {
1506
1422
  const ret = result;
1507
1423
  return ret;
1508
1424
  },
1509
- __wbg_isArray_d314bb98fcf08331: function(arg0) {
1425
+ __wbg_isArray_33b91feb269ff46e: function(arg0) {
1510
1426
  const ret = Array.isArray(arg0);
1511
1427
  return ret;
1512
1428
  },
1513
- __wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
1429
+ __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
1514
1430
  const ret = Number.isSafeInteger(arg0);
1515
1431
  return ret;
1516
1432
  },
1517
- __wbg_iterator_6ff6560ca1568e55: function() {
1433
+ __wbg_iterator_d8f549ec8fb061b1: function() {
1518
1434
  const ret = Symbol.iterator;
1519
1435
  return ret;
1520
1436
  },
1521
- __wbg_length_32ed9a279acd054c: function(arg0) {
1437
+ __wbg_length_b3416cf66a5452c8: function(arg0) {
1522
1438
  const ret = arg0.length;
1523
1439
  return ret;
1524
1440
  },
1525
- __wbg_length_35a7bace40f36eac: function(arg0) {
1441
+ __wbg_length_ea16607d7b61445b: function(arg0) {
1526
1442
  const ret = arg0.length;
1527
1443
  return ret;
1528
1444
  },
1529
- __wbg_new_361308b2356cecd0: function() {
1530
- const ret = new Object();
1445
+ __wbg_new_5f486cdf45a04d78: function(arg0) {
1446
+ const ret = new Uint8Array(arg0);
1531
1447
  return ret;
1532
1448
  },
1533
- __wbg_new_3eb36ae241fe6f44: function() {
1449
+ __wbg_new_a70fbab9066b301f: function() {
1534
1450
  const ret = new Array();
1535
1451
  return ret;
1536
1452
  },
1537
- __wbg_new_dd2b680c8bf6ae29: function(arg0) {
1538
- const ret = new Uint8Array(arg0);
1453
+ __wbg_new_ab79df5bd7c26067: function() {
1454
+ const ret = new Object();
1539
1455
  return ret;
1540
1456
  },
1541
- __wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
1457
+ __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
1542
1458
  const ret = arg0.next();
1543
1459
  return ret;
1544
1460
  }, arguments); },
1545
- __wbg_next_418f80d8f5303233: function(arg0) {
1461
+ __wbg_next_e01a967809d1aa68: function(arg0) {
1546
1462
  const ret = arg0.next;
1547
1463
  return ret;
1548
1464
  },
1549
- __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
1465
+ __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
1550
1466
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1551
1467
  },
1552
- __wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
1468
+ __wbg_push_e87b0e732085a946: function(arg0, arg1) {
1553
1469
  const ret = arg0.push(arg1);
1554
1470
  return ret;
1555
1471
  },
1556
- __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
1472
+ __wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
1557
1473
  const ret = Reflect.set(arg0, arg1, arg2);
1558
1474
  return ret;
1559
1475
  }, arguments); },
@@ -1561,7 +1477,7 @@ function __wbg_get_imports() {
1561
1477
  const ret = Token.__wrap(arg0);
1562
1478
  return ret;
1563
1479
  },
1564
- __wbg_value_0546255b415e96c1: function(arg0) {
1480
+ __wbg_value_21fc78aab0322612: function(arg0) {
1565
1481
  const ret = arg0.value;
1566
1482
  return ret;
1567
1483
  },
@@ -1607,24 +1523,6 @@ const DictionaryFinalization = (typeof FinalizationRegistry === 'undefined')
1607
1523
  const FieldDefinitionFinalization = (typeof FinalizationRegistry === 'undefined')
1608
1524
  ? { register: () => {}, unregister: () => {} }
1609
1525
  : new FinalizationRegistry(ptr => wasm.__wbg_fielddefinition_free(ptr >>> 0, 1));
1610
- const JsDictionaryFinalization = (typeof FinalizationRegistry === 'undefined')
1611
- ? { register: () => {}, unregister: () => {} }
1612
- : new FinalizationRegistry(ptr => wasm.__wbg_jsdictionary_free(ptr >>> 0, 1));
1613
- const JsFieldDefinitionFinalization = (typeof FinalizationRegistry === 'undefined')
1614
- ? { register: () => {}, unregister: () => {} }
1615
- : new FinalizationRegistry(ptr => wasm.__wbg_jsfielddefinition_free(ptr >>> 0, 1));
1616
- const JsLinderaErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1617
- ? { register: () => {}, unregister: () => {} }
1618
- : new FinalizationRegistry(ptr => wasm.__wbg_jslinderaerror_free(ptr >>> 0, 1));
1619
- const JsMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
1620
- ? { register: () => {}, unregister: () => {} }
1621
- : new FinalizationRegistry(ptr => wasm.__wbg_jsmetadata_free(ptr >>> 0, 1));
1622
- const JsPenaltyFinalization = (typeof FinalizationRegistry === 'undefined')
1623
- ? { register: () => {}, unregister: () => {} }
1624
- : new FinalizationRegistry(ptr => wasm.__wbg_jspenalty_free(ptr >>> 0, 1));
1625
- const JsSchemaFinalization = (typeof FinalizationRegistry === 'undefined')
1626
- ? { register: () => {}, unregister: () => {} }
1627
- : new FinalizationRegistry(ptr => wasm.__wbg_jsschema_free(ptr >>> 0, 1));
1628
1526
  const LinderaErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1629
1527
  ? { register: () => {}, unregister: () => {} }
1630
1528
  : new FinalizationRegistry(ptr => wasm.__wbg_linderaerror_free(ptr >>> 0, 1));
@@ -1643,15 +1541,15 @@ const SegmenterFinalization = (typeof FinalizationRegistry === 'undefined')
1643
1541
  const TokenFinalization = (typeof FinalizationRegistry === 'undefined')
1644
1542
  ? { register: () => {}, unregister: () => {} }
1645
1543
  : new FinalizationRegistry(ptr => wasm.__wbg_token_free(ptr >>> 0, 1));
1544
+ const UserDictionaryFinalization = (typeof FinalizationRegistry === 'undefined')
1545
+ ? { register: () => {}, unregister: () => {} }
1546
+ : new FinalizationRegistry(ptr => wasm.__wbg_userdictionary_free(ptr >>> 0, 1));
1646
1547
  const TokenizerFinalization = (typeof FinalizationRegistry === 'undefined')
1647
1548
  ? { register: () => {}, unregister: () => {} }
1648
1549
  : new FinalizationRegistry(ptr => wasm.__wbg_tokenizer_free(ptr >>> 0, 1));
1649
1550
  const TokenizerBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
1650
1551
  ? { register: () => {}, unregister: () => {} }
1651
1552
  : new FinalizationRegistry(ptr => wasm.__wbg_tokenizerbuilder_free(ptr >>> 0, 1));
1652
- const UserDictionaryFinalization = (typeof FinalizationRegistry === 'undefined')
1653
- ? { register: () => {}, unregister: () => {} }
1654
- : new FinalizationRegistry(ptr => wasm.__wbg_userdictionary_free(ptr >>> 0, 1));
1655
1553
 
1656
1554
  function addToExternrefTable0(obj) {
1657
1555
  const idx = wasm.__externref_table_alloc();
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "lindera-wasm-ipadic-web",
3
3
  "type": "module",
4
4
  "description": "Lindera WASM with Japanese dictionary (IPADIC) (web target)",
5
- "version": "2.2.0",
5
+ "version": "2.3.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",