Text Classification
Transformers
Safetensors
English
deberta-v2
deberta-v3
spatial-language
spatial-reasoning
text-embeddings-inference
Instructions to use SamAgnoli/deberta-v3-base-spatial-language-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SamAgnoli/deberta-v3-base-spatial-language-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SamAgnoli/deberta-v3-base-spatial-language-detection")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SamAgnoli/deberta-v3-base-spatial-language-detection") model = AutoModelForSequenceClassification.from_pretrained("SamAgnoli/deberta-v3-base-spatial-language-detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,16 +15,15 @@ library_name: transformers
|
|
| 15 |
# DeBERTa-v3-base — Spatial Language Detection
|
| 16 |
|
| 17 |
A fine-tuned [`microsoft/deberta-v3-base`](https://huggingface.co/microsoft/deberta-v3-base)
|
| 18 |
-
for **binary spatial language detection**: deciding whether
|
| 19 |
-
|
| 20 |
-
relationships) or not within the context of a verbal utterance.
|
| 21 |
|
| 22 |
## Labels
|
| 23 |
|
| 24 |
| id | label | meaning |
|
| 25 |
|----|-------------|------------------------------------------|
|
| 26 |
-
| 0 | not_spatial |
|
| 27 |
-
| 1 | spatial |
|
| 28 |
|
| 29 |
## Usage
|
| 30 |
|
|
@@ -62,6 +61,7 @@ print(clf("The cat is sitting on top of the bookshelf."))
|
|
| 62 |
- **Task:** binary sequence classification (spatial vs. not spatial)
|
| 63 |
- **Framework:** 🤗 Transformers
|
| 64 |
|
|
|
|
| 65 |
<!-- TODO: add dataset description, training hyperparameters, and evaluation
|
| 66 |
metrics (accuracy / F1 on your held-out set). -->
|
| 67 |
|
|
|
|
| 15 |
# DeBERTa-v3-base — Spatial Language Detection
|
| 16 |
|
| 17 |
A fine-tuned [`microsoft/deberta-v3-base`](https://huggingface.co/microsoft/deberta-v3-base)
|
| 18 |
+
for **binary spatial language detection**: deciding whether words are spatial language (descriptions of location, direction, or spatial
|
| 19 |
+
relationships) within the context of a verbal utterance. see github for more information <address: https://github.com/SamAgnoli/spatial-language-classifier/blob/main/README.md>
|
|
|
|
| 20 |
|
| 21 |
## Labels
|
| 22 |
|
| 23 |
| id | label | meaning |
|
| 24 |
|----|-------------|------------------------------------------|
|
| 25 |
+
| 0 | not_spatial | word is not spatial language |
|
| 26 |
+
| 1 | spatial | word is spatial language |
|
| 27 |
|
| 28 |
## Usage
|
| 29 |
|
|
|
|
| 61 |
- **Task:** binary sequence classification (spatial vs. not spatial)
|
| 62 |
- **Framework:** 🤗 Transformers
|
| 63 |
|
| 64 |
+
## T
|
| 65 |
<!-- TODO: add dataset description, training hyperparameters, and evaluation
|
| 66 |
metrics (accuracy / F1 on your held-out set). -->
|
| 67 |
|