Views
No views yet
distilbert-base-uncased token-classification model fine-tuned on
ramiz0/ner-stage4-diagnose-relabel-retrain
(773 train / 194 test records, no validation split), retrained after
diagnosing the 10 concrete problem patterns found in
Stage 3's out-of-dataset wild QA.distilbert-base-uncased (~66.4M parameters, 253.9 MB on
disk) — unchanged from Stage 3.O + B-/I- per
entity type).| Split | Precision | Recall | F1 |
|---|---|---|---|
| Train | 0.86 | 0.82 | 0.84 |
| Test | 0.59 | 0.60 | 0.59 |
stage4_diagnose_relabel_retrain/report.md in the
project repo.PERSON: a named person, including given names and surnames.
Example: <PERSON>Barack Obama</PERSON> / <PERSON>Sarah Chen</PERSON>.ORGANIZATION: a named company or institution.
Example: <ORGANIZATION>Google</ORGANIZATION> / <ORGANIZATION>Mayo Clinic</ORGANIZATION>.LOCATION: a named place such as a city, country, region, street, landmark, or geographic area.
Example: <LOCATION>Berlin</LOCATION> / <LOCATION>New York City</LOCATION>.TIMEDATE: an expression that places something on a timeline, including dates, clock times, and durations used as time.
Example: <TIMEDATE>March 15, 2024</TIMEDATE> / <TIMEDATE>50 minutes</TIMEDATE>.PRODUCT: a named commercial product, device, or branded good.
Example: <PRODUCT>iPhone 15</PRODUCT> / <PRODUCT>MacBook Pro</PRODUCT>.WORKOFART: a named creative or published work such as a book, film, song, or titled publication.
Example: <WORKOFART>Oppenheimer</WORKOFART> / <WORKOFART>Spider-Man: Brand New Day</WORKOFART>.JOB: an occupational title or formal work role when it functions as such in the sentence.
Example: <JOB>software engineer</JOB> / <JOB>CEO</JOB>.AMOUNT: a measurable or countable quantity, not a time or date expression.
Example: <AMOUNT>50</AMOUNT> tickets / <AMOUNT>120,000</AMOUNT>.She visited <LOCATION>Paris</LOCATION> yesterday. Incorrect: labeling visited Paris yesterday as one span.He works at <ORGANIZATION>Google</ORGANIZATION>. Incorrect: <ORGANIZATION>at Google</ORGANIZATION>.
<ORGANIZATION>The New York Times</ORGANIZATION> should keep The when it belongs to the established name.The company hired 200 people. should leave company unlabeled.
She joined <ORGANIZATION>Acme Corp</ORGANIZATION>. should still label the named organization.
The person who called did not leave a name. should leave person unlabeled.<PERSON>Barack Obama</PERSON> should be one span. <PERSON>Barack</PERSON> and <PERSON>Michelle</PERSON> should be two spans.<ORGANIZATION>Google</ORGANIZATION> and <ORGANIZATION>Microsoft</ORGANIZATION> should be two spans.
<ORGANIZATION>Johnson & Johnson</ORGANIZATION> should stay one span because & belongs to the name.He moved to <LOCATION>Berlin</LOCATION>. should leave the final period outside the span.
<ORGANIZATION>AT&T</ORGANIZATION> should keep & inside the span.<PERSON>Maria</PERSON>'s laptop should leave 's outside the span.She works at <ORGANIZATION>Cambridge University</ORGANIZATION>. / The conference was held in <LOCATION>Cambridge</LOCATION>.TIMEDATE, not AMOUNT.
She bought <AMOUNT>50</AMOUNT> tickets. / The train arrives in <TIMEDATE>50 minutes</TIMEDATE>.ramiz0/ner-stage1-rulecraft-cleanup
dataset card.1from transformers import pipeline
2
3ner = pipeline("token-classification", model="ramiz0/ner-stage4-diagnose-relabel-retrain-model", aggregation_strategy="simple")
4ner("Barack Obama visited Berlin on March 15, 2024.")postprocess.py in the project repo) that
the raw pipeline() output above does not apply automatically.