Package de.swa.fuh.aws.clarifai
Class ClarifaiResponseHandler
java.lang.Object
de.swa.fuh.aws.clarifai.ClarifaiResponseHandler
public class ClarifaiResponseHandler
extends java.lang.Object
Helper class to handle respondes of the clarifai API
-
Constructor Summary
Constructors Constructor Description ClarifaiResponseHandler(com.clarifai.grpc.api.MultiOutputResponse response) -
Method Summary
Modifier and Type Method Description NodecreateNode(com.clarifai.grpc.api.Region region, float threshold, MMFG fv)com.clarifai.grpc.api.ConceptgetConcept(com.clarifai.grpc.api.Region region)java.util.List<com.clarifai.grpc.api.Region>getRegionListOfResponse()Return List.
-
Constructor Details
-
ClarifaiResponseHandler
public ClarifaiResponseHandler(com.clarifai.grpc.api.MultiOutputResponse response)
-
-
Method Details
-
getRegionListOfResponse
public java.util.List<com.clarifai.grpc.api.Region> getRegionListOfResponse()Return List. - Returns:
-
getConcept
public com.clarifai.grpc.api.Concept getConcept(com.clarifai.grpc.api.Region region) -
createNode
- Parameters:
region-threshold-fv-- Returns:
- Node, which will be added to MMFG.
-