Instructions to use BernardJoshua/text-to-sql-spacy-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- spaCy
How to use BernardJoshua/text-to-sql-spacy-ner with spaCy:
!pip install https://huggingface.co/BernardJoshua/text-to-sql-spacy-ner/resolve/main/text-to-sql-spacy-ner-any-py3-none-any.whl # Using spacy.load(). import spacy nlp = spacy.load("text-to-sql-spacy-ner") # Importing as module. import text-to-sql-spacy-ner nlp = text-to-sql-spacy-ner.load() - Notebooks
- Google Colab
- Kaggle
Text-to-SQL spaCy NER Model
This is a custom spaCy NER model for Text-to-SQL query understanding.
It detects:
- AGGREGATION
- METRIC
- FILTER_LOCATION
- FILTER_YEAR
- FILTER_DATE
- FILTER_CATEGORY
- FILTER_VALUE
- GROUP_BY
- ORDER_BY
- LIMIT
- COMPARISON
Example:
Input:
In 2015, how many complaints about Billing disputes were sent by clients in Portland?
Expected entities:
- 2015 -> FILTER_YEAR
- how many -> AGGREGATION
- complaints -> METRIC
- Billing disputes -> FILTER_CATEGORY
- Portland -> FILTER_LOCATION
Current baseline:
- Overall NER F1: 0.77
- Downloads last month
- -