Class Embedder.Context

  • Enclosing interface:
    Embedder

    public static class Embedder.Context
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Context​(java.lang.String destination)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDestination()
      Returns the name of the recipient of this tensor.
      Language getLanguage()
      Returns the language of the text, or UNKNOWN (default) to use a language independent embedding
      Embedder.Context setDestination​(java.lang.String destination)
      Sets the name of the recipient of this tensor.
      Embedder.Context setLanguage​(Language language)
      Sets the language of the text, or UNKNOWN to use language independent embedding
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Context

        public Context​(java.lang.String destination)
    • Method Detail

      • 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 java.lang.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​(java.lang.String destination)
        Sets the name of the recipient of this tensor. This iseither a query feature name ("query(feature)"), or a schema and field name concatenated by a dot ("schema.field").