Package com.basistech.rosette.dm
Class Embeddings
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Embeddings
- All Implemented Interfaces:
Serializable
Embeddings for a text.
A text can have embedding values for the entire text and/or one of more of the collections of
items inside the text, such as the tokens or entities. The collections are identified by strings.
Constants are provided for some common cases.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
The embedding name. -
Field Summary
Fields inherited from class com.basistech.rosette.dm.BaseAttribute
extendedProperties
-
Constructor Summary
ModifierConstructorDescriptionprotected
Embeddings
(Map<Embeddings.Name, EmbeddingCollection> collections, Map<String, Object> extendedProperties) -
Method Summary
Modifier and TypeMethodDescriptionget
(Embeddings.Name collectionName) Retrieve the embeddings, if any, for a particular collection.Retrieve all of the collections as a map.protected com.google.common.base.MoreObjects.ToStringHelper
Methods inherited from class com.basistech.rosette.dm.BaseAttribute
getExtendedProperties, listOrNull, setExtendedProperty, toString
-
Constructor Details
-
Embeddings
protected Embeddings(Map<Embeddings.Name, EmbeddingCollection> collections, Map<String, Object> extendedProperties)
-
-
Method Details
-
get
Retrieve the embeddings, if any, for a particular collection.- Parameters:
collectionName
- The collection name.- Returns:
- the embeddings.
-
getCollections
Retrieve all of the collections as a map.- Returns:
- the collections.
-
toStringHelper
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()- Overrides:
toStringHelper
in classBaseAttribute
-