Class CustomVocabulary


  • public class CustomVocabulary
    extends Object
    A CustomVocabulary object provides all the custom phrases that are submitted along with a job.
    • Constructor Detail

      • CustomVocabulary

        public CustomVocabulary​(List<String> phrases)
        Creates a new custom vocabulary with a list of phrases limited to alphabetic characters and spaces. List size cannot exceed 20000 items.
        Parameters:
        phrases - A list of strings limited to alphabetic characters and spaces.
    • Method Detail

      • getPhrases

        public List<String> getPhrases()
        Returns a list of phrases
        Returns:
        A list of phrases
      • setPhrases

        public void setPhrases​(List<String> phrases)
        Sets the list of phrases to be used in the custom vocabulary. Phrases are limited to alphabetic characters and spaces. List size cannot exceed 20000 items.
        Parameters:
        phrases - The list of strings to set as the custom vocabulary phrases.