Class Embedder.Context

java.lang.Object
com.yahoo.language.process.Embedder.Context
Enclosing interface:
Embedder

public static class Embedder.Context extends Object
  • Constructor Details

    • Context

      public Context(String destination)
  • Method Details

    • getLanguage

      public Language getLanguage()
      Returns the language of the text, or UNKNOWN (default) to use a language independent embedding
    • setLanguage

      public Embedder.Context setLanguage(Language language)
      Sets the language of the text, or UNKNOWN to use language independent embedding
    • getDestination

      public String getDestination()
      Returns the name of the recipient of this tensor. This is either a query feature name ("query(feature)"), or a schema and field name concatenated by a dot ("schema.field"). This cannot be null.
    • setDestination

      public Embedder.Context setDestination(String destination)
      Sets the name of the recipient of this tensor. This is either a query feature name ("query(feature)"), or a schema and field name concatenated by a dot ("schema.field").