Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HumanReadableTextTokenizer.cs
1using System;
2using System.Text;
3using System.Threading.Tasks;
9
11{
16 {
21 {
22 }
23
29 public Grade Supports(Type Type)
30 {
31 if (Type == typeof(HumanReadableText))
32 return Grade.Ok;
33 else
34 return Grade.NotAtAll;
35 }
36
42 public async Task Tokenize(object Value, TokenizationProcess Process)
43 {
45 await Tokenize(HumanReadableText, null, Process);
46 }
47
54 public static async Task Tokenize(HumanReadableText HumanReadableText,
56 {
57 if (!(HumanReadableText is null))
58 {
59 MarkdownOutput Markdown = new MarkdownOutput();
60 HumanReadableText.ToMarkdown(Markdown, Contract, 1, 0);
61
63 string Text = await Doc.GeneratePlainText();
64
65 StringTokenizer.Tokenize(Text, Process);
66 }
67 }
68 }
69}
Contains a markdown document. This markdown document class supports original markdown,...
async Task< string > GeneratePlainText()
Generates Plain Text from the markdown text.
static Task< MarkdownDocument > CreateAsync(string MarkdownText, params Type[] TransparentExceptionTypes)
Contains a markdown document. This markdown document class supports original markdown,...
Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Contains information about a tokenization process.
Interface for full-text-search tokenizers
Definition: ITokenizer.cs:12
Grade
Grade enumeration
Definition: Grade.cs:7