Instructions to use iryska/bert_on_airbnb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iryska/bert_on_airbnb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="iryska/bert_on_airbnb")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("iryska/bert_on_airbnb") model = AutoModelForSequenceClassification.from_pretrained("iryska/bert_on_airbnb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Tokenizer
|
| 2 |
+
|
| 3 |
+
This model uses the `bert-base-uncased` tokenizer.
|
| 4 |
+
To use this model, make sure you have the tokenizer installed and initialized with the following code:
|
| 5 |
+
|
| 6 |
+
```python
|
| 7 |
+
from transformers import BertTokenizer
|
| 8 |
+
|
| 9 |
+
tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
|