Class SplitDelimiterMergeWithPrevious
Merges each single delimiter split with its next content split.
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization.SplitDelimiterBehaviors
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
public class SplitDelimiterMergeWithPrevious
Properties
Instance
Gets a shared instance of the SplitDelimiterMergeWithNext.
Declaration
public static SplitDelimiterMergeWithPrevious Instance { get; }
Property Value
| Type | Description |
|---|---|
| SplitDelimiterMergeWithPrevious |
Methods
Apply(SubString, IReadOnlyList<(Range offsets, bool isMatch)>, Output<SubString>)
Applies the delimiter behavior to the list of splits and stores the result into the
specified output.
Declaration
public void Apply(SubString source, IReadOnlyList<(Range offsets, bool isMatch)> splits, Output<SubString> output)
Parameters
| Type | Name | Description |
|---|---|---|
| SubString | source | The source string of the splits. |
| IReadOnlyList<(Range offsets, bool isMatch)> | splits | The list of splits, indicating of the split if a content, or a delimiter. |
| Output<SubString> | output | The target list where updated splits are added. |