1 | /**
|
2 | * @license
|
3 | * Copyright 2021 Google LLC
|
4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | * you may not use this file except in compliance with the License.
|
6 | * You may obtain a copy of the License at
|
7 | *
|
8 | * https://www.apache.org/licenses/LICENSE-2.0
|
9 | *
|
10 | * Unless required by applicable law or agreed to in writing, software
|
11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 | * See the License for the specific language governing permissions and
|
14 | * limitations under the License.
|
15 | */
|
16 | import { model as jaModel } from './data/models/ja.js';
|
17 | import { model as zhHansModel } from './data/models/zh-hans.js';
|
18 | import { model as zhHantModel } from './data/models/zh-hant.js';
|
19 | import { HTMLProcessingParser } from './html_processor.js';
|
20 | export { Parser } from './parser.js';
|
21 | export { HTMLProcessor, HTMLProcessingParser } from './html_processor.js';
|
22 | export { jaModel, zhHansModel, zhHantModel };
|
23 | /**
|
24 | * Loads a parser equipped with the default Japanese model.
|
25 | * @return A parser with the default Japanese model.
|
26 | */
|
27 | export declare const loadDefaultJapaneseParser: () => HTMLProcessingParser;
|
28 | /**
|
29 | * Loads a parser equipped with the default Simplified Chinese model.
|
30 | * @return A parser with the default Simplified Chinese model.
|
31 | */
|
32 | export declare const loadDefaultSimplifiedChineseParser: () => HTMLProcessingParser;
|
33 | /**
|
34 | * Loads a parser equipped with the default Traditional Chinese model.
|
35 | * @return A parser with the default Traditional Chinese model.
|
36 | */
|
37 | export declare const loadDefaultTraditionalChineseParser: () => HTMLProcessingParser;
|
38 | /**
|
39 | * Loads a parser equipped with the default Thai model.
|
40 | * @returns A parser with the default Thai model.
|
41 | */
|
42 | export declare const loadDefaultThaiParser: () => HTMLProcessingParser;
|
43 | /**
|
44 | * Loads available default parsers.
|
45 | * @return A map between available lang codes and their default parsers.
|
46 | */
|
47 | export declare const loadDefaultParsers: () => Map<string, HTMLProcessingParser>;
|