()
| 20 | } |
| 21 | |
| 22 | func TextVectorization() *LTextVectorization { |
| 23 | return <extVectorization{ |
| 24 | dtype: String, |
| 25 | maxTokens: nil, |
| 26 | name: UniqueName("text_vectorization"), |
| 27 | ngrams: nil, |
| 28 | outputMode: "int", |
| 29 | outputSequenceLength: nil, |
| 30 | padToMaxTokens: false, |
| 31 | split: "whitespace", |
| 32 | standardize: "lower_and_strip_punctuation", |
| 33 | trainable: true, |
| 34 | vocabulary: nil, |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | func (l *LTextVectorization) SetDtype(dtype DataType) *LTextVectorization { |
| 39 | l.dtype = dtype |
nothing calls this directly
no test coverage detected