3using System.Reflection;
4using System.Threading.Tasks;
34 if (typeInfo.IsAssignableFrom(Type))
37 return Grade.NotAtAll;
40 private static readonly TypeInfo typeInfo = typeof(IEnumerable<HumanReadableText>).GetTypeInfo();
49 if (Value is IEnumerable<HumanReadableText> HumanReadableTexts)
50 await
Tokenize(HumanReadableTexts,
null, Process);
59 public static async Task
Tokenize(IEnumerable<HumanReadableText> HumanReadableTexts,
62 if (!(HumanReadableTexts is
null))
78 return Task.CompletedTask;
86 public async Task<object>
Evaluate(
object Instance)
92 if (Obj.TryGetFieldValue(
"ForHumans", out
object Obj2) &&
100 foreach (
object Item
in A)
108 HumanReadableTexts.Add(HumanReadableText2);
111 return HumanReadableTexts;
116 else if (Instance is IEnumerable<HumanReadableText> HumanReadableTexts)
117 return HumanReadableTexts;
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static Task< object > Specialize(GenericObject Object)
Creates a specialized representation of a generic object.
Contains information about a tokenization process.
uint DocumentIndexOffset
Document Index Offset. Used to identify sequences of tokens in a document.
Generic object. Contains a sequence of properties.
A chunked list is a linked list of chunks of objects of type T .
Contains the definition of a contract
Tokenizes a human readable text.
async Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Tokenizes a set of human readable texts.
Grade Supports(Type Type)
How well the tokenizer can tokenize objects of type Type .
async Task< object > Evaluate(object Instance)
Evaluates the property evaluator, on an object instance.
HumanReadableTextsTokenizer()
Tokenizes a set of human readable texts.
async Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
static async Task Tokenize(IEnumerable< HumanReadableText > HumanReadableTexts, Contract Contract, TokenizationProcess Process)
Tokenizes a set of human readable texts.
Task Prepare(string Definition)
Prepares the evaluator with its definition.
Class representing human-readable text.
Custom external property evaluator.
Interface for full-text-search tokenizers