feedback: Provide Feedback on Tags of an Image

Description Usage Arguments References Examples

View source: R/feedback.R

Description

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

Usage

1
2
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

1
2
3
4
5
6
7
8
## 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")

## End(Not run)

clarifai documentation built on May 29, 2017, 3:59 p.m.