recogn-parse
Version:
recogn-parse 提供了 识别--解析 的机制,使用者只需要添加识别器 和 解析器,然后就可以对事件进行识别和解析,适合用所有具备 识别--解析 流程的场景中,如:加载并显示各种模型、预览文件等
287 lines (124 loc) • 3.34 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [recogn-parse](./recogn-parse.md) > [RecognParse](./recogn-parse.recognparse.md)
## RecognParse class
识别解析
**Signature:**
```typescript
export declare class RecognParse<TOptions = any>
```
## Remarks
是用户直接操作的主类,提供了完整的 `识别-解析` 机制
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[postJudgers](./recogn-parse.recognparse.postjudgers.md)
</td><td>
</td><td>
[Judger](./recogn-parse.judger.md)<!-- --><TOptions>\[\]
</td><td>
后置鉴定器
</td></tr>
<tr><td>
[postParses](./recogn-parse.recognparse.postparses.md)
</td><td>
</td><td>
import("./Resolver").[Parse](./recogn-parse.parse.md)<!-- --><TOptions>\[\]
</td><td>
后置解析器
</td></tr>
<tr><td>
[preJudgers](./recogn-parse.recognparse.prejudgers.md)
</td><td>
</td><td>
[Judger](./recogn-parse.judger.md)<!-- --><TOptions>\[\]
</td><td>
前置鉴定器
</td></tr>
<tr><td>
[preParses](./recogn-parse.recognparse.preparses.md)
</td><td>
</td><td>
import("./Resolver").[Parse](./recogn-parse.parse.md)<!-- --><TOptions>\[\]
</td><td>
前置解析器
</td></tr>
<tr><td>
[recognizer](./recogn-parse.recognparse.recognizer.md)
</td><td>
</td><td>
[Recognizer](./recogn-parse.recognizer.md)<!-- --><TOptions>
</td><td>
识别器
</td></tr>
<tr><td>
[resolver](./recogn-parse.recognparse.resolver.md)
</td><td>
</td><td>
[Resolver](./recogn-parse.resolver.md)<!-- --><TOptions>
</td><td>
解决者
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[add(type, judgerParser)](./recogn-parse.recognparse.add.md)
</td><td>
</td><td>
给指定类型添加鉴定解析器
</td></tr>
<tr><td>
[addRecognParsers(recognParsers)](./recogn-parse.recognparse.addrecognparsers.md)
</td><td>
</td><td>
批量添加鉴定解析器
</td></tr>
<tr><td>
[parse(judgeResult, target, targetOptions)](./recogn-parse.recognparse.parse.md)
</td><td>
</td><td>
解析识别的结果
</td></tr>
<tr><td>
[recogn(target, targetOptions, name)](./recogn-parse.recognparse.recogn.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[recognAsync(target, targetOptions, name)](./recogn-parse.recognparse.recognasync.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[remove(type)](./recogn-parse.recognparse.remove.md)
</td><td>
</td><td>
移除指定类型的鉴定器和解析器
</td></tr>
<tr><td>
[resolve(target, targetOpts, options)](./recogn-parse.recognparse.resolve.md)
</td><td>
</td><td>
识别并解析 target
</td></tr>
<tr><td>
[resolveAsync(target, targetOpts, options)](./recogn-parse.recognparse.resolveasync.md)
</td><td>
</td><td>
异步识别并解析
</td></tr>
</tbody></table>