Tarnkappe v0.8.2: English organisations and German recovered
Browse filesFiles changed (4)
- README.md+19-16
- metrics.json+175-175
- tagger.int8.onnx+2-2
- tagger.onnx+2-2
52 unmodified lines5354555657585928 unmodified lines8889909192939495969798991001011021031046 unmodified lines11111211311411511611711811912012112212312412512612712812952 unmodified linesphone numbers, IBANs, card numbers, IP addresses and national ID numbers (Spanish DNI/NIE, French NIR, Belgiannational register number, Swiss AHV, each checksum-verified).- **Small:** a 2.6M-parameter BiGRU tagger, 5 MB as int8 ONNX, plus 52 MB of word vectors for four languages, about 200 MB of memory in all. No GPU, no PyTorch at runtime.- **Hybrid:** the tagger handles names, organisations and places. Patterns, checksums and Google's libphonenumber handle structured data.- **Built for scanned web pages:** a second check filters company detections, and names are shared across all pages of one person's scan.- **Open:** code Apache 2.0, weights CC BY-SA 4.0, trained only on openly licensed data.28 unmodified lines## Results**v0.8, 60 real French, Swiss, Belgian and Spanish pages** (legal notices, team pages, directory profiles, press andnews; 888 items; never used for training):| | Found | Release bar || --- | --- | --- || All items | **96.8%** (v0.7: 89.6%) | || Persons | **100%** | 95% || Organisations | **91.9%** | 80% || Places / streets / postcodes | 98.9% / 96.7% / 94.9% | 85% / 90% / 90% || Phones / e-mail | 98.4% / 100% | 95% / 99% || Detections that are real PII | **87.1%** (v0.7: 68.7%) | 85% |These labels were made with AI assistance and a rule-by-rule check; some French/Spanish rules were written afterreading the same pages. Treat it as a first real test.6 unmodified lines| Persons | **100%** | **92.1%** | 95% found, 85% correct || Organisations | **87.9%** | **89.9%** | 80% found, 85% correct |**Public benchmarks, v0.8** (share of items found, any overlap counts):| Test | Found || --- | --- || Persons in English web text (UNER EWT test) | 96.4% || Persons in German Wikipedia/news (GermEval 2014 test) | 96.2% || Persons in tweets (Broad Twitter Corpus test) | 83.5% || Persons in social-media text (WNUT 2017 test) | 85.1% || All PII in Microsoft Presidio sentences (templates unseen in training) | 95.4% (94.7% of detections real; v0.7: 97.4%) || Persons in WikiNER French / Spanish test (strict F1) | 0.86 / 0.88 |English organisations are slightly weaker than in v0.7 (Presidio organisations 92.6% against 97.0%). The English/Germanv0.7 model stays available as revision `v0.7.2` of this repository.**Speed:** about 1.2 ms median per short text, about 700 texts per second on one CPU core, about 200 MB of memory with package v0.8.1 or later: less than the two-language v0.7 needed (310 MB), although it nowknows four languages.52 unmodified lines5354555657585928 unmodified lines8889909192939495969798991001011021031046 unmodified lines11111211311411511611711811912012112212312412512612712812913013113252 unmodified linesphone numbers, IBANs, card numbers, IP addresses and national ID numbers (Spanish DNI/NIE, French NIR, Belgiannational register number, Swiss AHV, each checksum-verified).- **Small:** a 2.8M-parameter BiGRU tagger, 6 MB as int8 ONNX, plus 52 MB of word vectors for four languages, about 200 MB of memory in all. No GPU, no PyTorch at runtime.- **Hybrid:** the tagger handles names, organisations and places. Patterns, checksums and Google's libphonenumber handle structured data.- **Built for scanned web pages:** a second check filters company detections, and names are shared across all pages of one person's scan.- **Open:** code Apache 2.0, weights CC BY-SA 4.0, trained only on openly licensed data.28 unmodified lines## Results**v0.8.2, 60 real French, Swiss, Belgian and Spanish pages** (legal notices, team pages, directory profiles, press andnews; 888 items; never used for training):| | Found | Release bar || --- | --- | --- || All items | **97.2%** (v0.7: 89.6%) | || Persons | **100%** | 95% || Organisations | **93.1%** | 80% || Places / streets / postcodes | 98.3% / 98.4% / 94.9% | 85% / 90% / 90% || Phones / e-mail | 98.4% / 100% | 95% / 99% || Detections that are real PII | **86.0%** (v0.7: 68.7%) | 85% |These labels were made with AI assistance and a rule-by-rule check; some French/Spanish rules were written afterreading the same pages. Treat it as a first real test.6 unmodified lines| Persons | **100%** | **92.1%** | 95% found, 85% correct || Organisations | **87.9%** | **89.9%** | 80% found, 85% correct |**Public benchmarks, v0.8.2** (share of items found, any overlap counts):| Test | Found || --- | --- || Persons in English web text (UNER EWT test) | 96.2% || Persons in German Wikipedia/news (GermEval 2014 test) | 96.0% || Persons in tweets (Broad Twitter Corpus test) | 86.3% || Persons in social-media text (WNUT 2017 test) | 88.6% || All PII in Microsoft Presidio sentences (templates unseen in training) | 96.8% (95.1% of detections real; v0.7: 97.4%) || Organisations in the same Presidio sentences | 98.5% (v0.7: 97.0%) || Persons in WikiNER French / Spanish test (strict F1) | 0.86 / 0.86 |v0.8.0 and v0.8.1 were weaker than v0.7 on English organisations (Presidio 92.6%) and German news. v0.8.2 is retrainedand beats v0.7 on both: strict F1 0.668 on English web text (v0.7: 0.646), 0.715 on GermEval (0.687) and 0.733 onGerman PUD (0.694). The English/German v0.7 model stays available as revision `v0.7.2` of this repository, and v0.8.1as revision `v0.8.1`.**Speed:** about 1.2 ms median per short text, about 700 texts per second on one CPU core, about 200 MB of memory with package v0.8.1 or later: less than the two-language v0.7 needed (310 MB), although it nowknows four languages.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673 unmodified lines371372373374375376377378379380381382383384385{"ewt_test (English web text)": {"PERSON": {"precision": 0.8112,"recall": 0.804,"f1": 0.8076,"support": 449},"ORG": {"precision": 0.5347,"recall": 0.4068,"f1": 0.4621,"support": 322},"LOCATION": {"precision": 0.7219,"recall": 0.7287,"f1": 0.7253,"support": 317},"micro": {"precision": 0.7158,"recall": 0.6645,"f1": 0.6892,"support": 1088}},"germeval_test (German Wikipedia/news)": {"PERSON": {"precision": 0.822,"recall": 0.7858,"f1": 0.8035,"support": 1639},"ORG": {"precision": 0.6691,"recall": 0.5574,"f1": 0.6082,"support": 1150},"LOCATION": {"precision": 0.7863,"recall": 0.7397,"f1": 0.7623,"support": 1706},"micro": {"precision": 0.7726,"recall": 0.7099,"f1": 0.7399,"support": 4495}},"pud_de (German news/Wikipedia)": {"PERSON": {"precision": 0.8,"recall": 0.7656,"f1": 0.7824,"support": 418},"ORG": {"precision": 0.6288,"recall": 0.4323,"f1": 0.5123,"support": 192},"LOCATION": {"precision": 0.7722,"recall": 0.7506,"f1": 0.7612,"support": 429},"micro": {"precision": 0.764,"recall": 0.6978,"f1": 0.7294,"support": 1039}},"wnut17_test (social media)": {"PERSON": {"precision": 0.6592,"recall": 0.4825,"f1": 0.5572,"support": 429},"ORG": {"precision": 0.4454,"recall": 0.2294,"f1": 0.3029,"support": 231},"LOCATION": {"precision": 0.6066,"recall": 0.4933,"f1": 0.5441,"support": 150},"micro": {"precision": 0.6018,"recall": 0.4123,"f1": 0.4894,"support": 810}},"btc_test (tweets)": {"PERSON": {"precision": 0.7831,"recall": 0.3358,"f1": 0.4701,"support": 1602},"ORG": {"precision": 0.5063,"recall": 0.2538,"f1": 0.3381,"support": 792},"LOCATION": {"precision": 0.6876,"recall": 0.5083,"f1": 0.5845,"support": 602},"micro": {"precision": 0.6835,"recall": 0.3488,"f1": 0.4619,"support": 2996}},"synthetic_new_phrasing (PII templates)": {"PERSON": {"precision": 0.944,"recall": 0.9263,"f1": 0.9351,"support": 1602},"ORG": {"precision": 0.9077,"recall": 0.8983,"f1": 0.903,"support": 1937},"LOCATION": {"precision": 0.8939,"recall": 0.9308,"f1": 0.912,"support": 824},"STREET": {"precision": 0.943,"recall": 0.9463,"f1": 0.9446,"support": 559},"ZIP": {"precision": 0.9926,"recall": 0.9963,"f1": 0.9945,"support": 270},"EMAIL": {"precision": 0.9767,"recall": 0.9844,"f1": 0.9805,"support": 256},"PHONE": {"precision": 0.9442,"recall": 0.8721,"f1": 0.9067,"support": 563},"micro": {"precision": 0.9287,"recall": 0.9203,"f1": 0.9245,"support": 6011}},"wikiner_fr_test (silver, Wikipedia)": {"PERSON": {"precision": 0.8468,"recall": 0.8829,"f1": 0.8645,"support": 1597},"ORG": {"precision": 0.6623,"recall": 0.659,"f1": 0.6606,"support": 610},"LOCATION": {"precision": 0.7331,"recall": 0.7478,"f1": 0.7404,"support": 2645},"micro": {"precision": 0.7626,"recall": 0.7811,"f1": 0.7717,"support": 4852}},"multiconer_fr_dev (gold, lower-case)": {"PERSON": {"precision": 0.7952,"recall": 0.8282,"f1": 0.8114,"support": 483},"ORG": {"precision": 0.4667,"recall": 0.3949,"f1": 0.4278,"support": 195},"LOCATION": {"precision": 0.5088,"recall": 0.6845,"f1": 0.5838,"support": 168},"micro": {"precision": 0.6622,"recall": 0.6998,"f1": 0.6805,"support": 846}},"synthetic_fr (PII templates)": {"PERSON": {"precision": 0.9677,"recall": 0.9785,"f1": 0.9731,"support": 1349},"ORG": {"precision": 0.9037,"recall": 0.9418,"f1": 0.9223,"support": 498},"LOCATION": {"precision": 0.9556,"recall": 0.9543,"f1": 0.955,"support": 722},"STREET": {"precision": 0.9444,"recall": 0.9629,"f1": 0.9536,"support": 512},"ZIP": {"precision": 0.9937,"recall": 0.9906,"f1": 0.9922,"support": 320},"EMAIL": {"precision": 0.9468,"recall": 0.95,"f1": 0.9484,"support": 300},"PHONE": {"precision": 0.8629,"recall": 0.935,"f1": 0.8975,"support": 323},"micro": {"precision": 0.946,"recall": 0.963,"f1": 0.9544,"support": 4024}},"wikiner_es_test (silver, Wikipedia)": {"PERSON": {"precision": 0.8749,"recall": 0.8786,"f1": 0.8767,"support": 1688},"ORG": {"precision": 0.5957,"recall": 0.613,"f1": 0.6042,"support": 584},"LOCATION": {"precision": 0.7736,"recall": 0.8006,"f1": 0.7869,"support": 2809},"micro": {"precision": 0.7861,"recall": 0.805,"f1": 0.7954,"support": 5081}},"multiconer_es_dev (gold, lower-case)": {"PERSON": {"precision": 0.7808,"recall": 0.8462,"f1": 0.8122,"support": 442},"ORG": {"precision": 0.5827,"recall": 0.3795,"f1": 0.4596,"support": 195},"LOCATION": {"precision": 0.545,"recall": 0.6264,"f1": 0.5829,"support": 174},"micro": {"precision": 0.6911,"recall": 0.6868,"f1": 0.6889,"support": 811}},"synthetic_es (PII templates)": {"PERSON": {"precision": 0.9461,"recall": 0.9368,"f1": 0.9414,"support": 1629},"ORG": {"precision": 0.7034,"recall": 0.8628,"f1": 0.775,"support": 1006},"LOCATION": {"precision": 0.952,"recall": 0.8152,"f1": 0.8783,"support": 633},"STREET": {"precision": 0.9898,"recall": 0.9979,"f1": 0.9939,"support": 487},"ZIP": {"precision": 0.9898,"recall": 0.9766,"f1": 0.9832,"support": 599},"EMAIL": {3 unmodified lines"support": 217},"PHONE": {"precision": 0.981,"recall": 0.9961,"f1": 0.9885,"support": 259},"micro": {"precision": 0.9,"recall": 0.9226,"f1": 0.9112,"support": 4830}}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673 unmodified lines371372373374375376377378379380381382383384385{"ewt_test (English web text)": {"PERSON": {"precision": 0.8444,"recall": 0.8218,"f1": 0.833,"support": 449},"ORG": {"precision": 0.5662,"recall": 0.3851,"f1": 0.4584,"support": 322},"LOCATION": {"precision": 0.7461,"recall": 0.7508,"f1": 0.7484,"support": 317},"micro": {"precision": 0.7497,"recall": 0.6719,"f1": 0.7087,"support": 1088}},"germeval_test (German Wikipedia/news)": {"PERSON": {"precision": 0.8502,"recall": 0.8066,"f1": 0.8278,"support": 1639},"ORG": {"precision": 0.7137,"recall": 0.5678,"f1": 0.6324,"support": 1150},"LOCATION": {"precision": 0.8019,"recall": 0.7737,"f1": 0.7876,"support": 1706},"micro": {"precision": 0.8005,"recall": 0.733,"f1": 0.7653,"support": 4495}},"pud_de (German news/Wikipedia)": {"PERSON": {"precision": 0.8074,"recall": 0.7823,"f1": 0.7947,"support": 418},"ORG": {"precision": 0.6829,"recall": 0.4375,"f1": 0.5333,"support": 192},"LOCATION": {"precision": 0.7882,"recall": 0.7809,"f1": 0.7845,"support": 429},"micro": {"precision": 0.7828,"recall": 0.718,"f1": 0.749,"support": 1039}},"wnut17_test (social media)": {"PERSON": {"precision": 0.686,"recall": 0.4685,"f1": 0.5568,"support": 429},"ORG": {"precision": 0.3984,"recall": 0.2121,"f1": 0.2768,"support": 231},"LOCATION": {"precision": 0.5703,"recall": 0.4867,"f1": 0.5252,"support": 150},"micro": {"precision": 0.5938,"recall": 0.3988,"f1": 0.4771,"support": 810}},"btc_test (tweets)": {"PERSON": {"precision": 0.7754,"recall": 0.3427,"f1": 0.4753,"support": 1602},"ORG": {"precision": 0.5209,"recall": 0.2513,"f1": 0.339,"support": 792},"LOCATION": {"precision": 0.6792,"recall": 0.51,"f1": 0.5825,"support": 602},"micro": {"precision": 0.6842,"recall": 0.3521,"f1": 0.465,"support": 2996}},"synthetic_new_phrasing (PII templates)": {"PERSON": {"precision": 0.9443,"recall": 0.9625,"f1": 0.9533,"support": 1602},"ORG": {"precision": 0.8986,"recall": 0.842,"f1": 0.8694,"support": 1937},"LOCATION": {"precision": 0.8418,"recall": 0.8847,"f1": 0.8627,"support": 824},"STREET": {"precision": 0.9451,"recall": 0.9553,"f1": 0.9502,"support": 559},"ZIP": {"precision": 0.9926,"recall": 1.0,"f1": 0.9963,"support": 270},"EMAIL": {"precision": 0.9725,"recall": 0.9688,"f1": 0.9706,"support": 256},"PHONE": {"precision": 0.9418,"recall": 0.8917,"f1": 0.9161,"support": 563},"micro": {"precision": 0.9187,"recall": 0.9077,"f1": 0.9131,"support": 6011}},"wikiner_fr_test (silver, Wikipedia)": {"PERSON": {"precision": 0.8447,"recall": 0.8716,"f1": 0.8579,"support": 1597},"ORG": {"precision": 0.6296,"recall": 0.6131,"f1": 0.6213,"support": 610},"LOCATION": {"precision": 0.7283,"recall": 0.7478,"f1": 0.7379,"support": 2645},"micro": {"precision": 0.7551,"recall": 0.7716,"f1": 0.7633,"support": 4852}},"multiconer_fr_dev (gold, lower-case)": {"PERSON": {"precision": 0.7726,"recall": 0.8302,"f1": 0.8004,"support": 483},"ORG": {"precision": 0.5105,"recall": 0.3744,"f1": 0.432,"support": 195},"LOCATION": {"precision": 0.4859,"recall": 0.7202,"f1": 0.5803,"support": 168},"micro": {"precision": 0.6531,"recall": 0.7033,"f1": 0.6773,"support": 846}},"synthetic_fr (PII templates)": {"PERSON": {"precision": 0.9814,"recall": 0.977,"f1": 0.9792,"support": 1349},"ORG": {"precision": 0.9163,"recall": 0.9237,"f1": 0.92,"support": 498},"LOCATION": {"precision": 0.9454,"recall": 0.9584,"f1": 0.9519,"support": 722},"STREET": {"precision": 0.9341,"recall": 0.9414,"f1": 0.9377,"support": 512},"ZIP": {"precision": 0.9907,"recall": 0.9969,"f1": 0.9938,"support": 320},"EMAIL": {"precision": 0.9763,"recall": 0.96,"f1": 0.9681,"support": 300},"PHONE": {"precision": 0.8527,"recall": 0.8421,"f1": 0.8474,"support": 323},"micro": {"precision": 0.9509,"recall": 0.952,"f1": 0.9514,"support": 4024}},"wikiner_es_test (silver, Wikipedia)": {"PERSON": {"precision": 0.8592,"recall": 0.8637,"f1": 0.8614,"support": 1688},"ORG": {"precision": 0.5953,"recall": 0.5668,"f1": 0.5807,"support": 584},"LOCATION": {"precision": 0.7636,"recall": 0.7971,"f1": 0.78,"support": 2809},"micro": {"precision": 0.7769,"recall": 0.7928,"f1": 0.7847,"support": 5081}},"multiconer_es_dev (gold, lower-case)": {"PERSON": {"precision": 0.7869,"recall": 0.8439,"f1": 0.8144,"support": 442},"ORG": {"precision": 0.5755,"recall": 0.4103,"f1": 0.479,"support": 195},"LOCATION": {"precision": 0.5502,"recall": 0.6609,"f1": 0.6005,"support": 174},"micro": {"precision": 0.691,"recall": 0.7004,"f1": 0.6957,"support": 811}},"synthetic_es (PII templates)": {"PERSON": {"precision": 0.9727,"recall": 0.9392,"f1": 0.9557,"support": 1629},"ORG": {"precision": 0.7492,"recall": 0.8787,"f1": 0.8088,"support": 1006},"LOCATION": {"precision": 0.935,"recall": 0.7725,"f1": 0.846,"support": 633},"STREET": {"precision": 0.9438,"recall": 1.0,"f1": 0.9711,"support": 487},"ZIP": {"precision": 0.9983,"recall": 0.9967,"f1": 0.9975,"support": 599},"EMAIL": {3 unmodified lines"support": 217},"PHONE": {"precision": 0.878,"recall": 1.0,"f1": 0.935,"support": 259},"micro": {"precision": 0.9104,"recall": 0.924,"f1": 0.9172,"support": 4830}}
123version https://git-lfs.github.com/spec/v1oid sha256:9ca924a9fff408091ced45f367e842278e1855d75610cfd4eb3d5bd762fea1c5size 5309394123version https://git-lfs.github.com/spec/v1oid sha256:bc9d144d1a0993d6e712e7d91a2c59f893b84b1d5248c7377992553075ec0930size 5793619
123version https://git-lfs.github.com/spec/v1oid sha256:75dc0f3c18c333abf1ff9c41ca52f7f9e827eca8550f5fd727483cc856832b18size 10272734123version https://git-lfs.github.com/spec/v1oid sha256:0b5c097b79a9ae94f3d67aa78e66734c2d1f011e0a459e3eecb3ac5cd5f075b1size 11102558
README.md+19-16
metrics.json+175-175
tagger.int8.onnx+2-2
tagger.onnx+2-2