Package com.yahoo.language.process
Class Embedder.FailingEmbedder
- java.lang.Object
-
- com.yahoo.language.process.Embedder.FailingEmbedder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.yahoo.language.process.Embedder
Embedder.Context, Embedder.FailingEmbedder
-
-
Field Summary
-
Fields inherited from interface com.yahoo.language.process.Embedder
throwsOnUse
-
-
Constructor Summary
Constructors Constructor Description FailingEmbedder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Integer>
embed(String text, Embedder.Context context)
Converts text into a list of token id's (a vector embedding)com.yahoo.tensor.Tensor
embed(String text, Embedder.Context context, com.yahoo.tensor.TensorType tensorType)
Converts text into tokens in a tensor.
-
-
-
Method Detail
-
embed
public List<Integer> embed(String text, Embedder.Context context)
Description copied from interface:Embedder
Converts text into a list of token id's (a vector embedding)
-
embed
public com.yahoo.tensor.Tensor embed(String text, Embedder.Context context, com.yahoo.tensor.TensorType tensorType)
Description copied from interface:Embedder
Converts text into tokens in a tensor. The information contained in the embedding may depend on the tensor type.
-
-