Instructions to use gportillac/Case_03_Natural_Language_Processing_Class with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gportillac/Case_03_Natural_Language_Processing_Class with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gportillac/Case_03_Natural_Language_Processing_Class")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("gportillac/Case_03_Natural_Language_Processing_Class") model = AutoModelForSequenceClassification.from_pretrained("gportillac/Case_03_Natural_Language_Processing_Class", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from gportillac/Case_03_Natural_Language_Processing_Class: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/gportillac/Case_03_Natural_Language_Processing_Class/resolve/56c7f61ba0d41fbd3d38adae85bf168a347d916e/README.md
- Command line
-
hf download hf://gportillac/Case_03_Natural_Language_Processing_Class@56c7f61ba0d41fbd3d38adae85bf168a347d916e/README.md
-
curl -L -o README.md https://huggingface.co/gportillac/Case_03_Natural_Language_Processing_Class/resolve/56c7f61ba0d41fbd3d38adae85bf168a347d916e/README.md
1.53 kB
| # Repositorio: | |
| Este repositorio refin贸 un modelo BERT, en lenguaje Ingles, de acuerdo con el siguiente art铆culo: https://towardsdatascience.com/fine-tuning-bert-for-text-classification-54e7df642894 | |
| Para el refinamiento se utilzia una de sentimientos de peliculas bajado de kaggle: https://www.kaggle.com/code/lakshmi25npathi/sentiment-analysis-of-imdb-movie-reviews | |
| # Limtiaci贸n: | |
| La informaci贸n del data set de entrenamiento se limit贸 a un n煤mero de observaciones reducidas para poder correr el modelo en nuestra m谩quina local. | |
| # Labels: | |
| Los labels que se muestran corresponden a: | |
| Label_0: Negative | |
| Label_1: Positive | |
| # Ejemplos: | |
| *Review: One of the other reviewers has mentioned that after watching just 1 Oz episode you'll be hooked. They are right, as this is exactly what happened with me | |
| *Predici贸n: Positive | |
| *Review: Basically there's a family where a little boy (Jake) thinks there's a zombie in his closet & his parents are fighting all the time. This movie is slower than a soap opera... and suddenly, Jake decides to become Rambo and kill the zombie.OK, first of all when you're going to make a film you must Decide if it's a thriller or a drama! As a drama the movie is watchable. Parents are divorcing & arguing like in real life. And then we have Jake with his closet which totally ruins all the film! I expected to see a BOOGEYMAN similar movie, and instead, I watched a drama with some meaningless thriller spots. Out of 10 just for the well-playing parents & descent dialogs. | |
| *Predici贸n: Negative | |