Package com.yahoo.language.process
Class Encoder.FailingEncoder
- java.lang.Object
-
- com.yahoo.language.process.Encoder.FailingEncoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.yahoo.language.process.Encoder
Encoder.FailingEncoder
-
-
Field Summary
-
Fields inherited from interface com.yahoo.language.process.Encoder
throwsOnUse
-
-
Constructor Summary
Constructors Constructor Description FailingEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Integer>
encode(java.lang.String text, Language language)
Encodes text into tokens in a list of ids.com.yahoo.tensor.Tensor
encode(java.lang.String text, Language language, com.yahoo.tensor.TensorType tensorType)
Encodes text into tokens in a tensor.
-
-
-
Method Detail
-
encode
public java.util.List<java.lang.Integer> encode(java.lang.String text, Language language)
Description copied from interface:Encoder
Encodes text into tokens in a list of ids.
-
-