Class EmotionAnalysisAPIFactory
- java.lang.Object
-
- com.api.sentimentanalysis.externalapi.emotion.EmotionAnalysisAPIFactory
-
public class EmotionAnalysisAPIFactory extends java.lang.ObjectClass to instantiate a machine learning tool class in factory pattern.- Author:
- Ariadna de Arriba
-
-
Constructor Summary
Constructors Constructor Description EmotionAnalysisAPIFactory()
-
Method Summary
Modifier and Type Method Description static EmotionAnalysisAPIgetEmotionAnalysisAPI(java.lang.String tool, java.lang.String apiKey)Factory pattern to instantiate a machine learning tool class.
-
-
-
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.
-
-