TextCatalog.ProduceWordBags メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| ProduceWordBags(TransformsCatalog+TextTransforms, String, Char, Char, String, Int32) |
WordBagEstimatorを作成します。 |
| ProduceWordBags(TransformsCatalog+TextTransforms, String, String, Int32, Int32, Boolean, Int32, NgramExtractingEstimator+WeightingCriteria) |
WordBagEstimatorを作成します。 |
| ProduceWordBags(TransformsCatalog+TextTransforms, String, String[], Int32, Int32, Boolean, Int32, NgramExtractingEstimator+WeightingCriteria) |
WordBagEstimatorを作成します。 |
ProduceWordBags(TransformsCatalog+TextTransforms, String, Char, Char, String, Int32)
- ソース:
- TextCatalog.cs
- ソース:
- TextCatalog.cs
- ソース:
- TextCatalog.cs
WordBagEstimatorを作成します。inputColumnNameで指定された列を、outputColumnNameという名前の新しい列の n グラム数のベクターにマップします。
public static Microsoft.ML.Transforms.Text.WordBagEstimator ProduceWordBags(this Microsoft.ML.TransformsCatalog.TextTransforms catalog, string outputColumnName, char termSeparator, char freqSeparator, string inputColumnName = default, int maximumNgramsCount = 10000000);
static member ProduceWordBags : Microsoft.ML.TransformsCatalog.TextTransforms * string * char * char * string * int -> Microsoft.ML.Transforms.Text.WordBagEstimator
<Extension()>
Public Function ProduceWordBags (catalog As TransformsCatalog.TextTransforms, outputColumnName As String, termSeparator As Char, freqSeparator As Char, Optional inputColumnName As String = Nothing, Optional maximumNgramsCount As Integer = 10000000) As WordBagEstimator
パラメーター
- catalog
- TransformsCatalog.TextTransforms
変換のカタログ。
- termSeparator
- Char
- freqSeparator
- Char
- inputColumnName
- String
データを取得する列の名前。 <param name="maximumNgramsCount"> dictionary.< に格納する n-gram の最大数/param><param name="termSeparator">用語/頻度ペアを区切るために使用されるSeparator.</param><param name="freqSeparator">用語を frequency.< から区切るために使用されるSeparator/param> このエスティメーターはテキストのベクトルに対して動作します。
- maximumNgramsCount
- Int32
返品
注釈
WordBagEstimator は、前者が内部的にテキストをトークン化し、後者がトークン化されたテキストを入力として受け取るという点で、 NgramExtractingEstimator とは異なります。
適用対象
ProduceWordBags(TransformsCatalog+TextTransforms, String, String, Int32, Int32, Boolean, Int32, NgramExtractingEstimator+WeightingCriteria)
- ソース:
- TextCatalog.cs
- ソース:
- TextCatalog.cs
- ソース:
- TextCatalog.cs
WordBagEstimatorを作成します。inputColumnNameで指定された列を、outputColumnNameという名前の新しい列の n グラム数のベクターにマップします。
public static Microsoft.ML.Transforms.Text.WordBagEstimator ProduceWordBags(this Microsoft.ML.TransformsCatalog.TextTransforms catalog, string outputColumnName, string inputColumnName = default, int ngramLength = 2, int skipLength = 0, bool useAllLengths = true, int maximumNgramsCount = 10000000, Microsoft.ML.Transforms.Text.NgramExtractingEstimator.WeightingCriteria weighting = Microsoft.ML.Transforms.Text.NgramExtractingEstimator+WeightingCriteria.Tf);
static member ProduceWordBags : Microsoft.ML.TransformsCatalog.TextTransforms * string * string * int * int * bool * int * Microsoft.ML.Transforms.Text.NgramExtractingEstimator.WeightingCriteria -> Microsoft.ML.Transforms.Text.WordBagEstimator
<Extension()>
Public Function ProduceWordBags (catalog As TransformsCatalog.TextTransforms, outputColumnName As String, Optional inputColumnName As String = Nothing, Optional ngramLength As Integer = 2, Optional skipLength As Integer = 0, Optional useAllLengths As Boolean = true, Optional maximumNgramsCount As Integer = 10000000, Optional weighting As NgramExtractingEstimator.WeightingCriteria = Microsoft.ML.Transforms.Text.NgramExtractingEstimator+WeightingCriteria.Tf) As WordBagEstimator
パラメーター
- catalog
- TransformsCatalog.TextTransforms
変換のカタログ。
- inputColumnName
- String
データを取得する列の名前。 この推定器は、テキストのベクトルに対して動作します。
- ngramLength
- Int32
Ngram の長さ。
- skipLength
- Int32
n グラムを構築するときにスキップするトークンの最大数。
- useAllLengths
- Boolean
すべての n グラムの長さを最大 ngramLength 含めるか、 ngramLengthのみを含めるか。
- maximumNgramsCount
- Int32
ディクショナリに格納する n グラムの最大数。
コーパス内のドキュメントに対する単語の重要度を評価するために使用される統計的尺度。
返品
注釈
WordBagEstimator は、前者が内部的にテキストをトークン化し、後者がトークン化されたテキストを入力として受け取るという点で、 NgramExtractingEstimator とは異なります。
適用対象
ProduceWordBags(TransformsCatalog+TextTransforms, String, String[], Int32, Int32, Boolean, Int32, NgramExtractingEstimator+WeightingCriteria)
- ソース:
- TextCatalog.cs
- ソース:
- TextCatalog.cs
- ソース:
- TextCatalog.cs
WordBagEstimatorを作成します。inputColumnNamesで指定された複数の列を、outputColumnNameという名前の新しい列の n-gram カウントのベクトルにマップします。
public static Microsoft.ML.Transforms.Text.WordBagEstimator ProduceWordBags(this Microsoft.ML.TransformsCatalog.TextTransforms catalog, string outputColumnName, string[] inputColumnNames, int ngramLength = 2, int skipLength = 0, bool useAllLengths = true, int maximumNgramsCount = 10000000, Microsoft.ML.Transforms.Text.NgramExtractingEstimator.WeightingCriteria weighting = Microsoft.ML.Transforms.Text.NgramExtractingEstimator+WeightingCriteria.Tf);
static member ProduceWordBags : Microsoft.ML.TransformsCatalog.TextTransforms * string * string[] * int * int * bool * int * Microsoft.ML.Transforms.Text.NgramExtractingEstimator.WeightingCriteria -> Microsoft.ML.Transforms.Text.WordBagEstimator
<Extension()>
Public Function ProduceWordBags (catalog As TransformsCatalog.TextTransforms, outputColumnName As String, inputColumnNames As String(), Optional ngramLength As Integer = 2, Optional skipLength As Integer = 0, Optional useAllLengths As Boolean = true, Optional maximumNgramsCount As Integer = 10000000, Optional weighting As NgramExtractingEstimator.WeightingCriteria = Microsoft.ML.Transforms.Text.NgramExtractingEstimator+WeightingCriteria.Tf) As WordBagEstimator
パラメーター
- catalog
- TransformsCatalog.TextTransforms
変換のカタログ。
- inputColumnNames
- String[]
データを取得する複数の列の名前。 この推定器は、テキストのベクトルに対して動作します。
- ngramLength
- Int32
Ngram の長さ。
- skipLength
- Int32
n グラムを構築するときにスキップするトークンの最大数。
- useAllLengths
- Boolean
すべての n グラムの長さを最大 ngramLength 含めるか、 ngramLengthのみを含めるか。
- maximumNgramsCount
- Int32
ディクショナリに格納する n グラムの最大数。
コーパス内のドキュメントに対する単語の重要度を評価するために使用される統計的尺度。
返品
注釈
WordBagEstimator は、前者が内部的にテキストをトークン化し、後者がトークン化されたテキストを入力として受け取るという点で、 NgramExtractingEstimator とは異なります。