GithubHelp home page GithubHelp logo

clarin-pl / embeddings Goto Github PK

View Code? Open in Web Editor NEW
34.0 8.0 3.0 8.76 MB

Embeddings: State-of-the-art Text Representations for Natural Language Processing tasks, an initial version of library focus on the Polish Language

Home Page: https://clarin-pl.github.io/embeddings/

License: MIT License

Python 54.81% Dockerfile 0.22% HTML 12.17% Makefile 0.05% Jupyter Notebook 32.57% CSS 0.10% TeX 0.09%
languagemodel nlp nlp-machine-learning fine-tuning classification sequence-tagging benchmark lm

embeddings's People

Contributors

adrianszymczak avatar asawczyn avatar deepception avatar djaniak avatar gw98-github avatar koconjan avatar ktagowski avatar laugustyniak avatar lruczu2 avatar markowanga avatar mkossakowski19 avatar riomus avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embeddings's Issues

Update README

Update README:

  • Add example with NER/POS
  • Add examples for use with predefined pipelines not only custom one

Create a project roadmap

  • how do we want to load data from local drives
  • do we want to prepare special loaders for data - tensorflow datasets, spacy datasets

Add hyperparameter-search pipeline for task models

TODO List:

Hypersearch Pipeline:

  • Add other pipelines
  • Add tests

Other:

  • #91
  • #95
    • Sequence Labelling
    • Text Classification
    • Pair Text Classification
  • Update README

Done:

  • #97
  • Add suport for custom optuna search space configuration
  • Add retraining task after selection
  • Add optuna to pyproject.toml
  • Add logging of best found parameters configuration
  • @ktagowski Create Pipeline for Hyperameter search
  • @djaniak Decide which library to use (optuna/hyperopt/ray):
  • #90
  • Add option to save optuna dataframe log
  • @djaniak Run libraries examples
  • @ktagowski Prepare proof-of-concept (notebook)
  • Add persister for best found parameters

Abandoned
- [ ] Add support for parsing Pipelines parameters from Yaml

Add NER dataset and task

Part I: KPWr

  • Add NER dataset to HF
  • Add NER dataset to library
  • Adapt appropriate configuration for NER tag evaluation
  • Add NER sequence tagging test to pipeline
  • Add NER example

Part II: Poleval 2018 (Nested ner tags)

  • Add Poleval NER dataset to HF
  • Add Nested NER dataset to library
  • Adapt appropriate configuration for Nested NER tag evaluation
  • Add Nested NER example

Check sequence tagging metrics for POS

  • Check whether metrics are calculated correctly for POS tags
  • Check whether tags names are correctly parsed via seqeval library and add this case for tests
    - [ ] Add NER dataset for sequence tagging

Test kgr10-based LM with domain fine-tuning

==============================herbert-base=================================

2021-08-09 23:57:17,425 loading file herbert-base/best-model.pt
2021-08-09 23:57:31,239     0.728
2021-08-09 23:57:31,239 
Results:
- F-score (micro) 0.728
- F-score (macro) 0.6648
- Accuracy 0.728

By class:
              precision    recall  f1-score   support

       minus     0.7716    0.8171    0.7937       339
        plus     0.6137    0.8678    0.7190       227
        zero     0.9813    0.8898    0.9333       118
         amb     0.5455    0.1324    0.2130       136

   micro avg     0.7280    0.7280    0.7280       820
   macro avg     0.7280    0.6768    0.6648       820
weighted avg     0.7206    0.7280    0.6968       820
 samples avg     0.7280    0.7280    0.7280       820


==============================herbert-kgr10=================================

2021-08-10 00:03:07,082 loading file herbert-kgr10/best-model.pt
2021-08-10 00:03:34,942         0.7671
2021-08-10 00:03:34,943
Results:
- F-score (micro) 0.7671
- F-score (macro) 0.6484
- Accuracy 0.7671

By class:
              precision    recall  f1-score   support

       minus     0.7429    0.9292    0.8257       339
        plus     0.7143    0.9031    0.7977       227
        zero     1.0000    0.9153    0.9558       118
         amb     1.0000    0.0074    0.0146       136

   micro avg     0.7671    0.7671    0.7671       820
   macro avg     0.8643    0.6887    0.6484       820
weighted avg     0.8146    0.7671    0.7021       820
 samples avg     0.7671    0.7671    0.7671       820

tested based on clarin-pl/polemo2-official

Sequence Labeling spelling

Labeling is the American spelling, labelling is the British spelling.

In our code and filenames, we use both spellings interchangeably.
Sequence labeling is more common in the literature so we could use this one.

image
image

Add WSD dataset

HuggingFace

  • Add versioning, plWordNet may have different version, add metadata
    - [ ] How to add graph-data to HF (seperate dataset, or merged with WSD dataset)

TODO (only Text-based pipeline):

  • Add WSD dataset to HF
  • Add WSD dataset to library
  • Add WSD to pipeline
  • Add WSD example

Graph (HF)

  • Test HF proof of concept.:
    • Feeded texts with ID and TEXT
    • Graph data as a HF dataset attribute

ColumnCorpusTransformation saving to conll

Data in conll format is saved to a file with .csv extension while it probably should be saved to .tsv file as it is tab separated data.
image

column_format = self._save_to_conll( hf_datadict[subset_name], output_path.joinpath(f"{subset_name}.csv") )

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.