blog icon indicating copy to clipboard operation
blog copied to clipboard

Got lost in the Twitter Analysis

Open CinderZhang opened this issue 3 years ago • 1 comments

Not sure where to find/define the "Model ID" and "API Token" You will be using Inference API, an easy-to-use API for integrating machine learning models. For using the Inference API, you will need to define your "model id" and your "Hugging Face API Token":

CinderZhang avatar Jul 11 '22 03:07 CinderZhang

The model ID Is any of the >400 sentiment analysis models of the Hub https://huggingface.co/models?pipeline_tag=text-classification&sort=downloads&search=sentiment. You just need the name, such as cardiffnlp/twitter-xlm-roberta-base-sentiment.

The API token can be obtained from https://huggingface.co/settings/tokens. These are in the step 4 in the blog post. cc @feconroses

osanseviero avatar Jul 11 '22 08:07 osanseviero