Class ModelsOrchestrerImpl

    • Method Detail

      • getCategories

        public List<CategorizerImpl.CategoryResult> getCategories​(String[] input)
        Description copied from interface: ModelsOrchestrer
        this method will get all the categories from the user inputs.
        Specified by:
        getCategories in interface ModelsOrchestrer
        Parameters:
        input - an array of Strings representing the sentences entered by the user
        Returns:
        array of Category Result representing the list of unique categories.
      • toSentences

        public String[] toSentences​(String input)
        Description copied from interface: ModelsOrchestrer
        this method will prepare the list of sentences based on the user's input
        Specified by:
        toSentences in interface ModelsOrchestrer
        Parameters:
        input - String representing user's input
        Returns:
        String[] representing an array of sentences.