Instructions to use UmerKhan261/Fine-Tuned_BERT_German_Text_Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UmerKhan261/Fine-Tuned_BERT_German_Text_Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="UmerKhan261/Fine-Tuned_BERT_German_Text_Classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("UmerKhan261/Fine-Tuned_BERT_German_Text_Classification") model = AutoModelForSequenceClassification.from_pretrained("UmerKhan261/Fine-Tuned_BERT_German_Text_Classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload 2 files
25cd439 -
Update README.md
10dd203 -
Update README.md
d13e88c -
Upload 2 files
Imagine you have a BERT model – the superhero of natural language understanding – but this one speaks German! We took the powerful "bert-base-german-cased" model and gave it a special mission: classify German text. After intense training, it's ready to help you tackle tasks like sentiment analysis, content categorization, or even semantic search in the German language. How to Use It: Let's see how you can unleash this German-speaking superhero on your data: Install Hugging Face Transformers: First, make sure you have the Hugging Face Transformers library installed. You can do this with pip: bash: pip install transformers Load the Fine-Tuned Model: To use this fine-tuned BERT model, load it with the Transformers library: python: from transformers import TFBertForSequenceClassification, BertTokenizer # Load the model and tokenizer model = TFBertForSequenceClassification.from_pretrained("path/to/your/model/directory") tokenizer = BertTokenizer.from_pretrained("bert-base-german-cased"…9ea8fbd -
initial commit
df0c3ae