Package com.yahoo.language.process
Class Embedder.FailingEmbedder
java.lang.Object
com.yahoo.language.process.Embedder.FailingEmbedder
- All Implemented Interfaces:
Embedder
- Enclosing interface:
- Embedder
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.language.process.Embedder
Embedder.Context, Embedder.FailingEmbedder, Embedder.Runtime
-
Field Summary
Fields inherited from interface com.yahoo.language.process.Embedder
defaultEmbedderId, throwsOnUse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionembed
(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.
-
Constructor Details
-
FailingEmbedder
public FailingEmbedder() -
FailingEmbedder
-
-
Method Details
-
embed
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.
-