Sign inSign up

cvillanue/idiomatic-bert-api

By cvillanue

•Updated 8 months ago

Containerized BERT-based NLP inference API for token-level idiom span detection (FastAPI + Docker).

Image
0

1.2K

cvillanue/idiomatic-bert-api repository overview

⁠Idiomatic Expression Detection API (BERT + FastAPI + Docker)

A containerized FastAPI service that serves a fine-tuned BERT model for idiomatic expression span detection (sequence labeling / BIO tagging).
Run it locally in one command and hit the API via curl or the interactive Swagger UI.


⁠What this does

Given an input sentence, the API returns:

  • detected idiomatic phrase span(s)
  • character offsets (start/end) for each span

Use-cases:

  • NLP preprocessing / annotation assistance
  • idiom-aware text analysis
  • demos of deployed NLP inference services

⁠Quickstart

⁠Pull

⁠docker pull cvillanue/idiomatic-bert-api Then add an Example Request section:

⁠Example Request

curl -X POST "http://localhost:8000/predict" \
  -H "Content-Type: application/json" \
  -d '{"text":"She kicked the bucket yesterday."}'

Tag summary

Content type

Image

Digest

sha256:b8dc88c54…

Size

3.2 GB

Last updated

8 months ago

docker pull cvillanue/idiomatic-bert-api