Instructions to use impira/layoutlm-document-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use impira/layoutlm-document-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="impira/layoutlm-document-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-document-classifier") model = AutoModelForSequenceClassification.from_pretrained("impira/layoutlm-document-classifier") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -157,15 +157,11 @@ Use the code below to get started with the model.
|
|
| 157 |
|
| 158 |
<details>
|
| 159 |
<summary> Click to expand </summary>
|
|
|
|
| 160 |
```python
|
| 161 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 162 |
|
| 163 |
tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-document-classifier")
|
| 164 |
-
|
| 165 |
model = AutoModelForSequenceClassification.from_pretrained("impira/layoutlm-document-classifier")
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
</details>
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
|
|
|
| 157 |
|
| 158 |
<details>
|
| 159 |
<summary> Click to expand </summary>
|
| 160 |
+
|
| 161 |
```python
|
| 162 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 163 |
|
| 164 |
tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-document-classifier")
|
|
|
|
| 165 |
model = AutoModelForSequenceClassification.from_pretrained("impira/layoutlm-document-classifier")
|
| 166 |
+
```
|
| 167 |
+
</details>
|
|
|
|
|
|
|
|
|
|
|
|