Class GoogleAutoMLTranslationConnector

    • Constructor Detail

      • GoogleAutoMLTranslationConnector

        public GoogleAutoMLTranslationConnector()
    • Method Detail

      • setParameters

        public void setParameters​(IParameters params)
        Description copied from interface: IQuery
        Sets the parameters for opening and querying this connector.
        Specified by:
        setParameters in interface IQuery
        Overrides:
        setParameters in class BaseConnector
        Parameters:
        params - the parameters to set.
      • getName

        public String getName()
        Description copied from interface: IQuery
        Gets the name of the connector.
        Returns:
        the name of the connector.
      • getSettingsDisplay

        public String getSettingsDisplay()
        Description copied from interface: IQuery
        Gets a display representation of the current settings for this connector. This can be a display of some of the parameters for example, or some explanations about default non-modifiable settings.
        Returns:
        a display representation of the current settings.
      • open

        public void open()
        Description copied from interface: IQuery
        Opens this query engine.
      • close

        public void close()
        Description copied from interface: IQuery
        Closes this connector.
      • query

        public int query​(String plainText)
        Description copied from interface: IQuery
        Starts a query for a give plain text.
        Parameters:
        plainText - text to query.
        Returns:
        The number of hits for the given query.
      • query

        public int query​(TextFragment sourceFragment)
        Description copied from interface: IQuery
        Starts a query for a given text.
        Parameters:
        sourceFragment - The text to query.
        Returns:
        The number of hits for the given query.