Git Product home page Git Product logo

els-rd / anonymisation Goto Github PK

View Code? Open in Web Editor NEW
86.0 14.0 16.0 1.49 MB

Anonymization of legal cases (Fr) based on Flair embeddings

Home Page: https://towardsdatascience.com/why-we-switched-from-spacy-to-flair-to-anonymize-french-legal-cases-e7588566825f?source=friends_link&sk=de15a2550de1141865329fd37ef793b3

License: Apache License 2.0

Python 93.39% Makefile 6.61%
legal ner spacy anonymization dataset-augmentation legal-cases flair transformers camembert bert

anonymisation's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anonymisation's Issues

Annotation tool

Hello,

is it possible to know which annotation tool have you used for labelling dataset in BIO format for flair ?

Thank you.

fix Travis unit test

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.

Platform to label the dataset.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.