clarifai (version 0.4.2)

feedback: Provide Feedback on Tags of an Image

Description

Suggest tags, suggest removal of tags, suggest (dis)similar documents, or let clarifai know which tag was clicked on

Usage

feedback(file_path = "", feedback_type = "add_tags", feedback_value = "",
  ...)

Arguments

file_path
image on which the feedback is being provided
feedback_type
must be one of the following types: add_tags vector of suggested tags; default remove_tags vector of tags you suggest be removed search_click which tag(s) where clicked on similar_docids similar documents dissimilar_docids dissimilar documents
feedback_value
what tags to add, remove etc.
Additional arguments passed to clarifai_POST.

References

https://developer.clarifai.com/guide/

Examples

Run this code
## Not run: ------------------------------------
# 
# # Before calling the function, set API secret and id via secret_id(c("client_id", "secret")) 
# # and get token via get_token()
# 
# feedback(file_path="path_to_image", feedback_type="add_tags", feedback_value="suggested_tag")
## ---------------------------------------------

Run the code above in your browser using DataCamp Workspace