3 instantiations of WordTokenizingEstimator
Microsoft.ML.Transforms (3)
Text\TextFeaturizingEstimator.cs (1)
487
chain = AddToChainAndTransform(chain, new
WordTokenizingEstimator
(h, xfCols).Fit(view), ref view);
Text\WordBagTransform.cs (1)
168
estimator = estimator.Append(new
WordTokenizingEstimator
(h, tokenizeColumns));
Text\WordHashBagProducingTransform.cs (1)
135
ITransformer t1 = new
WordTokenizingEstimator
(env, tokenizeColumns.ToArray()).Fit(view);
34 references to WordTokenizingEstimator
Microsoft.ML.Samples (1)
Dynamic\Transforms\Text\TokenizeIntoWords.cs (1)
29
var
textPipeline = mlContext.Transforms.Text.TokenizeIntoWords("Words",
Microsoft.ML.Tests (11)
OnnxConversionTest.cs (1)
1448
var
pipeline = mlContext.Transforms.Text.TokenizeIntoWords("Tokens", "Text", new[] { ' ' });
Transformers\TextFeaturizerTests.cs (2)
494
var
est = new WordTokenizingEstimator(Env, "words", "text", separators: new[] { ' ', '?', '!', '.', ',' });
568
new
WordTokenizingEstimator
.ColumnOptions("Text", "Text")
Transformers\ValueMappingTests.cs (2)
106
new
WordTokenizingEstimator
.ColumnOptions("TokenizeA", "A")
145
var estimator = new WordTokenizingEstimator(Env, new[] { new
WordTokenizingEstimator
.ColumnOptions("TokenizeA", "A") }).
Transformers\WordTokenizeTests.cs (6)
58
var
pipe = new WordTokenizingEstimator(Env, new[]{
59
new
WordTokenizingEstimator
.ColumnOptions("TokenizeA", "A"),
60
new
WordTokenizingEstimator
.ColumnOptions("TokenizeB", "B"),
100
var
pipe = new WordTokenizingEstimator(Env, new[]{
101
new
WordTokenizingEstimator
.ColumnOptions("TokenizeA", "A"),
102
new
WordTokenizingEstimator
.ColumnOptions("TokenizeB", "B"),
Microsoft.ML.Transforms (22)
Text\TextCatalog.cs (4)
214
/// Create a <see cref="
WordTokenizingEstimator
"/>, which tokenizes input text using <paramref name="separators"/> as separators.
229
public static
WordTokenizingEstimator
TokenizeIntoWords(this TransformsCatalog.TextTransforms catalog,
241
internal static
WordTokenizingEstimator
TokenizeIntoWords(this TransformsCatalog.TextTransforms catalog,
242
params
WordTokenizingEstimator
.ColumnOptions[] columns)
Text\TextFeaturizingEstimator.cs (2)
477
var xfCols = new
WordTokenizingEstimator
.ColumnOptions[textCols.Length];
481
var col = new
WordTokenizingEstimator
.ColumnOptions(GenerateColumnName(view.Schema, textCols[i], "WordTokenizer"), textCols[i]);
Text\WordBagTransform.cs (2)
128
var tokenizeColumns = new
WordTokenizingEstimator
.ColumnOptions[options.Columns.Length];
148
tokenizeColumns[iinfo] = new
WordTokenizingEstimator
.ColumnOptions(column.Name, column.Source.Length > 1 ? column.Name : column.Source[0]);
Text\WordHashBagProducingTransform.cs (2)
105
var tokenizeColumns = new List<
WordTokenizingEstimator
.ColumnOptions>();
116
tokenizeColumns.Add(new
WordTokenizingEstimator
.ColumnOptions(curTmpNames[isrc] = uniqueSourceNames[iinfo][isrc], options.Columns[iinfo].Source[isrc]));
Text\WordTokenizing.cs (12)
36
/// <see cref="ITransformer"/> resulting from fitting an <see cref="
WordTokenizingEstimator
"/>.
107
internal IReadOnlyCollection<
WordTokenizingEstimator
.ColumnOptions> Columns => _columns.AsReadOnly();
108
private readonly
WordTokenizingEstimator
.ColumnOptions[] _columns;
110
private static (string name, string inputColumnName)[] GetColumnPairs(
WordTokenizingEstimator
.ColumnOptions[] columns)
116
internal WordTokenizingTransformer(IHostEnvironment env, params
WordTokenizingEstimator
.ColumnOptions[] columns) :
125
if (!
WordTokenizingEstimator
.IsColumnTypeValid(type))
126
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", ColumnPairs[col].inputColumnName,
WordTokenizingEstimator
.ExpectedColumnType, type.ToString());
133
_columns = new
WordTokenizingEstimator
.ColumnOptions[columnsLength];
142
_columns[i] = new
WordTokenizingEstimator
.ColumnOptions(ColumnPairs[i].outputColumnName, ColumnPairs[i].inputColumnName, separators);
183
var cols = new
WordTokenizingEstimator
.ColumnOptions[options.Columns.Length];
188
cols[i] = new
WordTokenizingEstimator
.ColumnOptions(item.Name, item.Source ?? item.Name, separators);
489
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(
WordTokenizingEstimator
)), new WordTokenizingTransformer(env, columns))