Comments (3)
Hi @cemrifki and thank you for this nice issue.
You're referring to the training code, right ?
Do you prefer "raw" PyTorch or code that use high level wrappers (such as transformers
Trainer) ?
from french-sentiment-analysis-with-bert.
Hi, Théophile. I would like to use high level wrappers. For example, I would like to create the following model, calling a PyTorch wrapper, method, or constructor:
model = TFAutoModelForSequenceClassification.from_pretrained("tblard/tf-allocine")
Thanks again.
from french-sentiment-analysis-with-bert.
For future readers, it seems that someone finally released a PyTorch version of the model! You can use it with the following code:
from transformers import pipeline
analyzer = pipeline(
task='text-classification',
model="philschmid/pt-tblard-tf-allocine",
tokenizer="philschmid/pt-tblard-tf-allocine"
)
result = analyzer("Le munster est bien bien meilleur que le camembert !")
print(result) # [{'label': 'POSITIVE', 'score': 0.876563549041748}]
I tested a few prompts, and the results seem consistent, event tough they are not perfectly identical to the TF version.
from french-sentiment-analysis-with-bert.
Related Issues (15)
- create an api / online demo HOT 15
- Getting word embeddings after training the model
- Length of text passed to nlp pipeline HOT 5
- applied to tweets HOT 3
- Have you compared the results with FaluBERT? HOT 1
- A propos du data set HOT 5
- Original Scraping files HOT 2
- First steps .. HOT 1
- Prediction scores HOT 4
- TensorFlow JS HOT 6
- Multi Class classification
- Can we set the pipfile to use python 3.7 or is it necessary to have python 3.8 install ? HOT 2
- Tester le modèle de Birt entrainé chez moi HOT 4
- 👍
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from french-sentiment-analysis-with-bert.