Class EmotionAnalysisAPIFactory


  • public class EmotionAnalysisAPIFactory
    extends java.lang.Object
    Class to instantiate a machine learning tool class in factory pattern.
    Author:
    Ariadna de Arriba
    • Method Summary

      Modifier and Type Method Description
      static EmotionAnalysisAPI getEmotionAnalysisAPI​(java.lang.String tool, java.lang.String apiKey)
      Factory pattern to instantiate a machine learning tool class.
      • Methods inherited from class java.lang.Object

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

      • EmotionAnalysisAPIFactory

        public EmotionAnalysisAPIFactory()
    • Method Detail

      • getEmotionAnalysisAPI

        public static EmotionAnalysisAPI getEmotionAnalysisAPI​(java.lang.String tool,
                                                               java.lang.String apiKey)
        Factory pattern to instantiate a machine learning tool class.
        Parameters:
        tool - Machine learning tool.
        apiKey - Api-key to authorize the method.
        Returns:
        Returns an instance of the ML tool class.