els-rd / anonymisation Goto Github PK
View Code? Open in Web Editor NEWAnonymization of legal cases (Fr) based on Flair embeddings
License: Apache License 2.0
Anonymization of legal cases (Fr) based on Flair embeddings
License: Apache License 2.0
paste randomly the first word of a NER with the previous word to simulate recurrent typo errors
Good morning.
First of all thank you so much for uploading your code, it is great for anyone who is starting to use Flair.
I would like to ask you what type of software/platform did you use to tag tokens.
close to word "rapport" ?
Hello,
is it possible to know which annotation tool have you used for labelling dataset in BIO format for flair ?
Thank you.
https://travis-ci.com/github/ELS-RD/anonymisation/builds/172991801
=================================== FAILURES ===================================
______________________________ test_new_tokenizer ______________________________
def test_new_tokenizer():
assert len(pytest.nlp.make_doc("ceci est un test")) == 4
assert len(pytest.nlp.make_doc("ceci est un -test")) == 5
assert len(pytest.nlp.make_doc("ceci est un te-st")) == 6
> assert len(pytest.nlp.make_doc("ceci est un l'test")) == 6
E assert 5 == 6
E + where 5 = len(ceci est un l'test)
E + where ceci est un l'test = <bound method Language.make_doc of <spacy.lang.fr.French object at 0x7f6a565f34e0>>("ceci est un l'test")
E + where <bound method Language.make_doc of <spacy.lang.fr.French object at 0x7f6a565f34e0>> = <spacy.lang.fr.French object at 0x7f6a565f34e0>.make_doc
E + where <spacy.lang.fr.French object at 0x7f6a565f34e0> = pytest.nlp
test/spacy_annotations_test.py:60: AssertionError
=============================== warnings summary ===============================
test/spacy_annotations_test.py::test_tokenizer
/home/travis/build/ELS-RD/anonymisation/test/spacy_annotations_test.py:50: UserWarning: [W030] Some entities could not be aligned in the text "Ceci est un test." with entities "[(0, 4, 'PERS'), (9, 12, 'PERS')]". Use `spacy.gold.biluo_tags_from_offsets(nlp.make_doc(text), entities)` to check the alignment. Misaligned entities ('-') will be ignored during training.
gold: GoldParse = GoldParse(doc, entities=offsets)
-- Docs: https://docs.pytest.org/en/latest/warnings.html
=============== 1 failed, 7 passed, 1 warnings in 32.06 seconds ================
The command "pytest" exited with 1.
test if dubious entity match another one (A in B), even after splitting in words
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.