Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TextFileTokenizer.cs
1using System.Threading.Tasks;
4
6{
11 {
16 {
17 }
18
24 public Grade Supports(string Extension)
25 {
26 if (Extension == "txt")
27 return Grade.Ok;
28 else
29 return Grade.NotAtAll;
30 }
31
37 public async Task Tokenize(FileReference Reference, TokenizationProcess Process)
38 {
39 string Text = await Runtime.IO.Files.ReadAllTextAsync(Reference.FileName);
40 StringTokenizer.Tokenize(Text, Process);
41 }
42 }
43}
Contains a reference to an indexed file.
CaseInsensitiveString FileName
Name of collection hosting object.
async Task Tokenize(FileReference Reference, TokenizationProcess Process)
Tokenizes an object.
Grade Supports(string Extension)
How well the file tokenizer supports files of a given extension.
Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Contains information about a tokenization process.
Interface for file tokenizers. Best tokenizer is selected
Grade
Grade enumeration
Definition: Grade.cs:7