注: 以下の翻訳の正確性は検証されていません。AIPを利用して英語版の原文から機械的に翻訳されたものです。
サポート対象: バッチ、ストリーミング
スライディングウィンドウセグメンテーションを使用して一連のテキストセグメントを抽出します。
式カテゴリ: 文字列
出力タイプ: Array<String>
説明: このテストは、小さなテキストセットを適切にセグメント化するトランスフォームの能力を示しています。最後は独自のセグメントになります。 引数値:
string
string | 出力 |
---|---|
hello world this is a test string | [ hello world this, this is a, a test string, string ] |
説明: 負のオーバーフローを持つテスト。 引数値:
string
length
overflow
string | length | overflow | 出力 |
---|---|---|---|
She sells sea shells by | 2 | -1 | [ She sells, shells by ] |
説明: オーバーフローと最後に小さなセグメントがある大きなテスト。 引数値:
string
length
overflow
string | length | overflow | 出力 |
---|---|---|---|
hello world this is a larger test with overlap, the nature of the human spirit is strange as such i ... | 10 | 3 | [ hello world this is a larger test with overlap, the, with overlap, the nature of the human spirit ... |
説明: オーバーフローが 0 に設定されており、最後のセグメントが完全な長さよりも小さい文字列をテストします。 引数値:
string
string | 出力 |
---|---|
hello world this is a test string | [ hello world this, is a test, string ] |
説明: セグメントが長さによって完全に分割されるオーバーフローなしのテスト。 引数値:
string
length
overflow
string | length | overflow | 出力 |
---|---|---|---|
hello world this is a test string without overlap | 3 | 0 | [ hello world this, is a test, string without overlap ] |
説明: セグメントが長さによって完全に分割されるオーバーフローなしのテスト。 引数値:
string
length
overflow
string | length | overflow | 出力 |
---|---|---|---|
null | null | null | null |
説明: セグメントが長さによって完全に分割されるオーバーフローなしのテスト。 引数値:
string
length
overflow
string | length | overflow | 出力 |
---|---|---|---|
null | 1 | null | null |
説明: セグメントが長さによって完全に分割されるオーバーフローなしのテスト。 引数値:
string
length
overflow
string | length | overflow | 出力 |
---|---|---|---|
Hello world | null | null | null |