NLP (Natural Language Processing)
- Basic Tasks:
- Sentiment Analysis
- Summarizations
- Question Answering
- NER
Hugging Face
- Account Creation
- Hugging face transformers are based on deep learning and to run deep learning models, we need to install
- torch
- Tensorflow
- Running Python code
- Locally
- Google Colab
- Basic coding approach
- Create a pipeline
- proceed with some nlp task
Simple Setup of a sentiment analysis using hugging face – local
- Create a virtual environment
- install transformers
pip install transformers - Documentation
- Create a hugging face pipeline
- Install torch or tensorflow
pip install tensorflow
Simple Setup of a sentiment analysis using hugging face – Google Colab
- Refer Here
-
Refer Here for google colab notebook.
-
Possible Tasks with NLP
[
'audio-classification', 'automatic-speech-recognition', 'depth-estimation',
'document-question-answering',
'feature-extraction',
'fill-mask',
'image-classification', 'image-feature-extraction', 'image-segmentation', 'image-text-to-text', 'image-to-image', 'image-to-text', 'mask-generation', 'ner', 'object-detection', 'question-answering', 'sentiment-analysis',
'summarization', 'table-question-answering', 'text-classification', 'text-generation', 'text-to-audio', 'text-to-speech', 'text2text-generation', 'token-classification', 'translation', 'video-classification', 'visual-question-answering', 'vqa', 'zero-shot-audio-classification', 'zero-shot-classification', 'zero-shot-image-classification', 'zero-shot-object-detection', 'translation_XX_to_YY'
]
