MCPcopy Create free account
hub / github.com/CodingBeard/tfkg / TextVectorization

Function TextVectorization

layer/TextVectorization.go:22–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func TextVectorization() *LTextVectorization {
23 return &LTextVectorization{
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
38func (l *LTextVectorization) SetDtype(dtype DataType) *LTextVectorization {
39 l.dtype = dtype

Callers

nothing calls this directly

Calls 1

UniqueNameFunction · 0.70

Tested by

no test coverage detected