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
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support