Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

99 diachronic features #100

Merged
merged 7 commits into from
Jul 22, 2024
Merged

99 diachronic features #100

merged 7 commits into from
Jul 22, 2024

Conversation

nicolasdugue
Copy link
Member

Description

Diachronic features. Let suppose one has at hand a textual corpus with a split in distinct time periods. One may want to analyze how word embeddings change across time.
We suggest an approach as follows :

  • train a SINr model on the whole corpus
  • train several SINr models, one for each of the corpus slices, using the communities detected on the whole corpus

Type of change

  • A notebook to show how this kind of transfert works
  • A function to be able to interpret the models trained on the corpus slices according to the communities detected on the whole corpus

How Has This Been Tested?

Notebook only

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

nicolasdugue and others added 5 commits June 14, 2024 11:56
* factory method to load embeddings at the w2v format (#53)

* Revert "factory method to load embeddings at the w2v format (#53)"

This reverts commit 7da0e99.

* 52 loading vectors such as w2v or spine ones (#57)

* factory method to load embeddings at the w2v format

* Update graph_embeddings.py, small fix

* Adding distRatio (#59)

* moving dist ratio in sinr.text.evaluate, adding unit tests (#61)

* commenting cosine_dist, pick_intruder, dist_ratio, dist_ratio_dim, intra_sim, inter_sim methods

* moving distRatio from graph_embeddings to text/evaluate

* tests unitaires distratio

* cleaning comments

* adding creation and deletion of w2v file for distRatio unit tests

* fix with_value() argument (#65)

Co-authored-by: Simon Guillot <[email protected]>

* load_from_word2vec model s name bug fixed (#70)

* missing word list bug fixed (#68)

* 73 wrong community memberships update when filtering dimensions (#75)

* update of community_membership when filtering dimensions

* sinr filtered: removing dimensions and updating communities_sets

* fixed code to pass tests

* comments

* 76 preprocessing multiple documents (#77)

* preprocessing by documents

* Tests : preprocessing by sentences and by documents

* adding size indicator for spacy model and downloading spacy model in tests workflow'

* downloading spacy

* 78 classification (#80)

* preprocess : minimal length of documents kept + tests

* vectorizer + test

* classification's methods + tests

* xgboost interpretable dimensions

* adding xgboost for test workflow

* classification, fit and score test modification

* get_dimension_stereotypes on removed community fixed (#82)

* Filtering words using a dictionnary (#84)

* Exceptions list, path to save / load SINrVectors (#86)

* not removing words when in exceptions list

* add path to method save

* exceptions list to set + test exceptions list

* path parameter method load

* new exceptions list for similarity

* optionnal parameter path for load and save methods

* 90 notebooks (#91)

* fix save, load, dim_nnz_thresholds + add obj_nnz_count

* add notebook with gutenberg example

* bnc model for notebook

* notebook bnc

* notebook frwac

* remove nb evaluate

* add tqdm to sparsify method

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Files changed:
M	pyproject.toml
M	sinr/__init__.py

Co-authored-by: nicolasdugue <[email protected]>
* doc update

* links update

* remove doc, quality, build

* fix LICENSE link

* Update conf.py

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
@nicolasdugue nicolasdugue merged commit 8611e19 into dev Jul 22, 2024
1 check passed
@nicolasdugue nicolasdugue deleted the 99-diachronic-features branch July 22, 2024 08:31
nicolasdugue added a commit that referenced this pull request Jul 22, 2024
* adding dictionary argument to avoid default initialization

* Update issue templates

* Add plotly as dev dependency.

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch. (#5)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Fix files and add templates (#8)

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Fix PR template not appearing.

* Fix PR template not appearing.

* Fix files and add templates (#8) (#10) (#11)

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Dev (#12)

* Fix files and add templates (#8) (#10)

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Edit PR template.

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Fix PR template not appearing.

* Fix PR template not appearing.

* Edit PR template.

* Fix files and add templates (#8) (#10)

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Fix bug leading to deterministic Louvain as a
result of setting networkit.setNumberOfThreads
to 1.

* Update documentation.

* Fix miswritten string in graph_embeddings

* Fix log string

Fix log string in in for number of threads in graph-embeddings.

* Fix preprocess for lowering words

* fixing the obj_stereotypes/descriptors bug (#19)

Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>

* 17 similarity evaluation of embeddings (#21)

* similarity evaluation from txt file and dataset

* rename evaluation in evaluate

* similarity with MEN and WS353 datasets

* similarity unit tests

* sparsify and binarize SINrVectors

* notebook sim + sparsify + binarize

* add new path to oanc SINrVectors

* remove pk file and add fetch oanc

---------

Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Nico <[email protected]>

* 24 workflow for tests (#25)

* add workflow to run tests on push and pull request

* workflow test on current branch

* workflow test on current branch

* add requirement.txt

* remove tests from sinr folder

* 20 allowing for lexical exceptions in text extraction function (#29)

* similarity evaluation from txt file and dataset

* rename evaluation in evaluate

* similarity with MEN and WS353 datasets

* similarity unit tests

* sparsify and binarize SINrVectors

* notebook sim + sparsify + binarize

* add new path to oanc SINrVectors

* Add oanc model

* allowing for exceptions in preprocess filtering + modifying named entity options to choose between chunking, tagging and deleting

* rename function to match

* Pushing correct refactored function to take into account exception list and lowering

* Deleting deprecated tests

* Deleting oanc model

---------

Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Anna Beranger <[email protected]>
Co-authored-by: [email protected] <[email protected]>

* taking into account lower for similarity dataset and adding SCWS dataset (#30)

* 31 missing exceptions dataset for similarity (#32)

* Adds exceptions.txt which contains the words required for sim datasets: scws, ws, men

* rename exception file

* Adds concept categorization dataset exception file. (#34)

* Adds concept categorization dataset exception file.

* Adds concept categorization dataset exception file.

* Adds single file for exceptions, combination of similarity and categorization datasets. Closes #33

* Adds workflow configuration to automatically build docs html pages. (#36)

* Adds workflow configuration to automatically build docs html pages.

* Update build-doc.yml

* 37 workflow to build and publish sinr (#38)

* Add poetry-bumpversion.

* Workflow for PyPi deployment.

* Workflow for PyPi deployment.

* Update deploy.yml

* Revert "Update deploy.yml"

This reverts commit 6ccfbff.

* Revert "Revert "Update deploy.yml""

This reverts commit 32b14e2.

* 39 similarity simlex and file name depending on time (#40)

* update notebook evaluate + add fetch simlex

* evaluate notebook update + file name depending on the time of creation for fetch methods

* SimLex 999 665 222 111 comments

* correction of SIMLEX to SimLex

* 41 dimensions filtering (#42)

* add remove dimensions with nnz thresholds min and max + unit test

* correction dataset fetch for similarity, name file with current time (milliseconds)

* correction import time

* detection of thresholds to filter dimensions based on nnz

* Add tabulate in requirements.txt

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>

* 43 update pyprojecttoml for documentation (#44)

* Update pyproject.toml

* Update pyproject.toml

* Fix bug leading to deterministic Louvain as a
result of setting networkit.setNumberOfThreads
to 1.

* Update documentation.

* Fix miswritten string in graph_embeddings

* Fix log string

Fix log string in in for number of threads in graph-embeddings.

* Fix preprocess for lowering words

* fixing the obj_stereotypes/descriptors bug (#19)

Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>

* 17 similarity evaluation of embeddings (#21)

* similarity evaluation from txt file and dataset

* rename evaluation in evaluate

* similarity with MEN and WS353 datasets

* similarity unit tests

* sparsify and binarize SINrVectors

* notebook sim + sparsify + binarize

* add new path to oanc SINrVectors

* remove pk file and add fetch oanc

---------

Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Nico <[email protected]>

* 24 workflow for tests (#25)

* add workflow to run tests on push and pull request

* workflow test on current branch

* workflow test on current branch

* add requirement.txt

* remove tests from sinr folder

* 20 allowing for lexical exceptions in text extraction function (#29)

* similarity evaluation from txt file and dataset

* rename evaluation in evaluate

* similarity with MEN and WS353 datasets

* similarity unit tests

* sparsify and binarize SINrVectors

* notebook sim + sparsify + binarize

* add new path to oanc SINrVectors

* Add oanc model

* allowing for exceptions in preprocess filtering + modifying named entity options to choose between chunking, tagging and deleting

* rename function to match

* Pushing correct refactored function to take into account exception list and lowering

* Deleting deprecated tests

* Deleting oanc model

---------

Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Anna Beranger <[email protected]>
Co-authored-by: [email protected] <[email protected]>

* taking into account lower for similarity dataset and adding SCWS dataset (#30)

* 31 missing exceptions dataset for similarity (#32)

* Adds exceptions.txt which contains the words required for sim datasets: scws, ws, men

* rename exception file

* Adds concept categorization dataset exception file. (#34)

* Adds concept categorization dataset exception file.

* Adds concept categorization dataset exception file.

* Adds single file for exceptions, combination of similarity and categorization datasets. Closes #33

* Adds workflow configuration to automatically build docs html pages. (#36)

* Adds workflow configuration to automatically build docs html pages.

* Update build-doc.yml

* 37 workflow to build and publish sinr (#38)

* Add poetry-bumpversion.

* Workflow for PyPi deployment.

* Workflow for PyPi deployment.

* Update deploy.yml

* Revert "Update deploy.yml"

This reverts commit 6ccfbff.

* Revert "Revert "Update deploy.yml""

This reverts commit 32b14e2.

* 39 similarity simlex and file name depending on time (#40)

* update notebook evaluate + add fetch simlex

* evaluate notebook update + file name depending on the time of creation for fetch methods

* SimLex 999 665 222 111 comments

* correction of SIMLEX to SimLex

* 41 dimensions filtering (#42)

* add remove dimensions with nnz thresholds min and max + unit test

* correction dataset fetch for similarity, name file with current time (milliseconds)

* correction import time

* detection of thresholds to filter dimensions based on nnz

* Add tabulate in requirements.txt

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>

* 43 update pyprojecttoml for documentation (#44)

* Update pyproject.toml

* Update pyproject.toml

* [AUTO-COMMIT] Update release version to v1.2.0.

Files changed:
M	pyproject.toml
M	sinr/__init__.py

* Fix #50 by changing categorization and evaluation exception files.

* factory method to load embeddings at the w2v format (#53)

* Revert "factory method to load embeddings at the w2v format (#53)"

This reverts commit 7da0e99.

* 52 loading vectors such as w2v or spine ones (#57)

* factory method to load embeddings at the w2v format

* Update graph_embeddings.py, small fix

* Adding distRatio (#59)

* moving dist ratio in sinr.text.evaluate, adding unit tests (#61)

* commenting cosine_dist, pick_intruder, dist_ratio, dist_ratio_dim, intra_sim, inter_sim methods

* moving distRatio from graph_embeddings to text/evaluate

* tests unitaires distratio

* cleaning comments

* adding creation and deletion of w2v file for distRatio unit tests

* fix with_value() argument (#65)

Co-authored-by: Simon Guillot <[email protected]>

* load_from_word2vec model s name bug fixed (#70)

* missing word list bug fixed (#68)

* 73 wrong community memberships update when filtering dimensions (#75)

* update of community_membership when filtering dimensions

* sinr filtered: removing dimensions and updating communities_sets

* fixed code to pass tests

* comments

* 76 preprocessing multiple documents (#77)

* preprocessing by documents

* Tests : preprocessing by sentences and by documents

* adding size indicator for spacy model and downloading spacy model in tests workflow'

* downloading spacy

* 78 classification (#80)

* preprocess : minimal length of documents kept + tests

* vectorizer + test

* classification's methods + tests

* xgboost interpretable dimensions

* adding xgboost for test workflow

* classification, fit and score test modification

* get_dimension_stereotypes on removed community fixed (#82)

* Filtering words using a dictionnary (#84)

* Update README.rst (#89)

* Update README.rst

Update installation, example and publications

* Update README.rst

* Update README.rst

* Delete notebooks/transfert.ipynb

* Delete notebooks/preproc.ipynb

* Exceptions list, path to save / load SINrVectors (#86)

* not removing words when in exceptions list

* add path to method save

* exceptions list to set + test exceptions list

* path parameter method load

* new exceptions list for similarity

* optionnal parameter path for load and save methods

* 90 notebooks (#91)

* fix save, load, dim_nnz_thresholds + add obj_nnz_count

* add notebook with gutenberg example

* bnc model for notebook

* notebook bnc

* notebook frwac

* remove nb evaluate

* add tqdm to sparsify method

* Update build-doc.yml (#92)

Change checkout@master to checkout@v2

* Update pyproject.toml (#93)

* Update pyproject.toml

Add xgboost to dependencies

* Update pyproject.toml

* 99 diachronic features (#100)

* Dev (#94)

* factory method to load embeddings at the w2v format (#53)

* Revert "factory method to load embeddings at the w2v format (#53)"

This reverts commit 7da0e99.

* 52 loading vectors such as w2v or spine ones (#57)

* factory method to load embeddings at the w2v format

* Update graph_embeddings.py, small fix

* Adding distRatio (#59)

* moving dist ratio in sinr.text.evaluate, adding unit tests (#61)

* commenting cosine_dist, pick_intruder, dist_ratio, dist_ratio_dim, intra_sim, inter_sim methods

* moving distRatio from graph_embeddings to text/evaluate

* tests unitaires distratio

* cleaning comments

* adding creation and deletion of w2v file for distRatio unit tests

* fix with_value() argument (#65)

Co-authored-by: Simon Guillot <[email protected]>

* load_from_word2vec model s name bug fixed (#70)

* missing word list bug fixed (#68)

* 73 wrong community memberships update when filtering dimensions (#75)

* update of community_membership when filtering dimensions

* sinr filtered: removing dimensions and updating communities_sets

* fixed code to pass tests

* comments

* 76 preprocessing multiple documents (#77)

* preprocessing by documents

* Tests : preprocessing by sentences and by documents

* adding size indicator for spacy model and downloading spacy model in tests workflow'

* downloading spacy

* 78 classification (#80)

* preprocess : minimal length of documents kept + tests

* vectorizer + test

* classification's methods + tests

* xgboost interpretable dimensions

* adding xgboost for test workflow

* classification, fit and score test modification

* get_dimension_stereotypes on removed community fixed (#82)

* Filtering words using a dictionnary (#84)

* Exceptions list, path to save / load SINrVectors (#86)

* not removing words when in exceptions list

* add path to method save

* exceptions list to set + test exceptions list

* path parameter method load

* new exceptions list for similarity

* optionnal parameter path for load and save methods

* 90 notebooks (#91)

* fix save, load, dim_nnz_thresholds + add obj_nnz_count

* add notebook with gutenberg example

* bnc model for notebook

* notebook bnc

* notebook frwac

* remove nb evaluate

* add tqdm to sparsify method

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>

* Update deploy.yml

* [AUTO-COMMIT] Update release version to v1.3.1. (#96)

Files changed:
M	pyproject.toml
M	sinr/__init__.py

Co-authored-by: nicolasdugue <[email protected]>

* doc update (#97)

* doc update

* links update

* remove doc, quality, build

* fix LICENSE link

* Update conf.py

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>

* Diachronic features

* Update publications.rst

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicolasdugue <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>

---------

Co-authored-by: anthony <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Thibault Prouteau <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Guillot Simon <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Anna Beranger <[email protected]>
Co-authored-by: nicolasdugue <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@nicolasdugue nicolasdugue linked an issue Jul 22, 2024 that may be closed by this pull request
nicolasdugue added a commit that referenced this pull request Nov 20, 2024
* Joss submission

* Update joss

* Proof read and modify some sentences.

* Update paper.md

* Joss paper updated with edits

* Adding DOIs

* factory method to load embeddings at the w2v format (#53)

* Revert "factory method to load embeddings at the w2v format (#53)"

This reverts commit 7da0e99.

* 52 loading vectors such as w2v or spine ones (#57)

* factory method to load embeddings at the w2v format

* Update graph_embeddings.py, small fix

* Adding distRatio (#59)

* moving dist ratio in sinr.text.evaluate, adding unit tests (#61)

* commenting cosine_dist, pick_intruder, dist_ratio, dist_ratio_dim, intra_sim, inter_sim methods

* moving distRatio from graph_embeddings to text/evaluate

* tests unitaires distratio

* cleaning comments

* adding creation and deletion of w2v file for distRatio unit tests

* fix with_value() argument (#65)

Co-authored-by: Simon Guillot <[email protected]>

* load_from_word2vec model s name bug fixed (#70)

* missing word list bug fixed (#68)

* 73 wrong community memberships update when filtering dimensions (#75)

* update of community_membership when filtering dimensions

* sinr filtered: removing dimensions and updating communities_sets

* fixed code to pass tests

* comments

* 76 preprocessing multiple documents (#77)

* preprocessing by documents

* Tests : preprocessing by sentences and by documents

* adding size indicator for spacy model and downloading spacy model in tests workflow'

* downloading spacy

* 78 classification (#80)

* preprocess : minimal length of documents kept + tests

* vectorizer + test

* classification's methods + tests

* xgboost interpretable dimensions

* adding xgboost for test workflow

* classification, fit and score test modification

* get_dimension_stereotypes on removed community fixed (#82)

* Filtering words using a dictionnary (#84)

* Exceptions list, path to save / load SINrVectors (#86)

* not removing words when in exceptions list

* add path to method save

* exceptions list to set + test exceptions list

* path parameter method load

* new exceptions list for similarity

* optionnal parameter path for load and save methods

* 90 notebooks (#91)

* fix save, load, dim_nnz_thresholds + add obj_nnz_count

* add notebook with gutenberg example

* bnc model for notebook

* notebook bnc

* notebook frwac

* remove nb evaluate

* add tqdm to sparsify method

* Merging new version of SINr to joss branch (#101)

* adding dictionary argument to avoid default initialization

* Update issue templates

* Add plotly as dev dependency.

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch. (#5)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Fix files and add templates (#8)

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Fix PR template not appearing.

* Fix PR template not appearing.

* Fix files and add templates (#8) (#10) (#11)

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Dev (#12)

* Fix files and add templates (#8) (#10)

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Edit PR template.

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Fix PR template not appearing.

* Fix PR template not appearing.

* Edit PR template.

* Fix files and add templates (#8) (#10)

* Remove unwanted graph_text files from main branch.

* Remove unwanted graph_text files from main branch.

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Create pull request templates and fix issue template. (#7)

* Remove unwanted graph_text files from main branch. (#5) (#9)

* Fix bug leading to deterministic Louvain as a
result of setting networkit.setNumberOfThreads
to 1.

* Update documentation.

* Fix miswritten string in graph_embeddings

* Fix log string

Fix log string in in for number of threads in graph-embeddings.

* Fix preprocess for lowering words

* fixing the obj_stereotypes/descriptors bug (#19)

Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>

* 17 similarity evaluation of embeddings (#21)

* similarity evaluation from txt file and dataset

* rename evaluation in evaluate

* similarity with MEN and WS353 datasets

* similarity unit tests

* sparsify and binarize SINrVectors

* notebook sim + sparsify + binarize

* add new path to oanc SINrVectors

* remove pk file and add fetch oanc

---------

Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Nico <[email protected]>

* 24 workflow for tests (#25)

* add workflow to run tests on push and pull request

* workflow test on current branch

* workflow test on current branch

* add requirement.txt

* remove tests from sinr folder

* 20 allowing for lexical exceptions in text extraction function (#29)

* similarity evaluation from txt file and dataset

* rename evaluation in evaluate

* similarity with MEN and WS353 datasets

* similarity unit tests

* sparsify and binarize SINrVectors

* notebook sim + sparsify + binarize

* add new path to oanc SINrVectors

* Add oanc model

* allowing for exceptions in preprocess filtering + modifying named entity options to choose between chunking, tagging and deleting

* rename function to match

* Pushing correct refactored function to take into account exception list and lowering

* Deleting deprecated tests

* Deleting oanc model

---------

Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Anna Beranger <[email protected]>
Co-authored-by: [email protected] <[email protected]>

* taking into account lower for similarity dataset and adding SCWS dataset (#30)

* 31 missing exceptions dataset for similarity (#32)

* Adds exceptions.txt which contains the words required for sim datasets: scws, ws, men

* rename exception file

* Adds concept categorization dataset exception file. (#34)

* Adds concept categorization dataset exception file.

* Adds concept categorization dataset exception file.

* Adds single file for exceptions, combination of similarity and categorization datasets. Closes #33

* Adds workflow configuration to automatically build docs html pages. (#36)

* Adds workflow configuration to automatically build docs html pages.

* Update build-doc.yml

* 37 workflow to build and publish sinr (#38)

* Add poetry-bumpversion.

* Workflow for PyPi deployment.

* Workflow for PyPi deployment.

* Update deploy.yml

* Revert "Update deploy.yml"

This reverts commit 6ccfbff.

* Revert "Revert "Update deploy.yml""

This reverts commit 32b14e2.

* 39 similarity simlex and file name depending on time (#40)

* update notebook evaluate + add fetch simlex

* evaluate notebook update + file name depending on the time of creation for fetch methods

* SimLex 999 665 222 111 comments

* correction of SIMLEX to SimLex

* 41 dimensions filtering (#42)

* add remove dimensions with nnz thresholds min and max + unit test

* correction dataset fetch for similarity, name file with current time (milliseconds)

* correction import time

* detection of thresholds to filter dimensions based on nnz

* Add tabulate in requirements.txt

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>

* 43 update pyprojecttoml for documentation (#44)

* Update pyproject.toml

* Update pyproject.toml

* Fix bug leading to deterministic Louvain as a
result of setting networkit.setNumberOfThreads
to 1.

* Update documentation.

* Fix miswritten string in graph_embeddings

* Fix log string

Fix log string in in for number of threads in graph-embeddings.

* Fix preprocess for lowering words

* fixing the obj_stereotypes/descriptors bug (#19)

Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>

* 17 similarity evaluation of embeddings (#21)

* similarity evaluation from txt file and dataset

* rename evaluation in evaluate

* similarity with MEN and WS353 datasets

* similarity unit tests

* sparsify and binarize SINrVectors

* notebook sim + sparsify + binarize

* add new path to oanc SINrVectors

* remove pk file and add fetch oanc

---------

Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Nico <[email protected]>

* 24 workflow for tests (#25)

* add workflow to run tests on push and pull request

* workflow test on current branch

* workflow test on current branch

* add requirement.txt

* remove tests from sinr folder

* 20 allowing for lexical exceptions in text extraction function (#29)

* similarity evaluation from txt file and dataset

* rename evaluation in evaluate

* similarity with MEN and WS353 datasets

* similarity unit tests

* sparsify and binarize SINrVectors

* notebook sim + sparsify + binarize

* add new path to oanc SINrVectors

* Add oanc model

* allowing for exceptions in preprocess filtering + modifying named entity options to choose between chunking, tagging and deleting

* rename function to match

* Pushing correct refactored function to take into account exception list and lowering

* Deleting deprecated tests

* Deleting oanc model

---------

Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Anna Beranger <[email protected]>
Co-authored-by: [email protected] <[email protected]>

* taking into account lower for similarity dataset and adding SCWS dataset (#30)

* 31 missing exceptions dataset for similarity (#32)

* Adds exceptions.txt which contains the words required for sim datasets: scws, ws, men

* rename exception file

* Adds concept categorization dataset exception file. (#34)

* Adds concept categorization dataset exception file.

* Adds concept categorization dataset exception file.

* Adds single file for exceptions, combination of similarity and categorization datasets. Closes #33

* Adds workflow configuration to automatically build docs html pages. (#36)

* Adds workflow configuration to automatically build docs html pages.

* Update build-doc.yml

* 37 workflow to build and publish sinr (#38)

* Add poetry-bumpversion.

* Workflow for PyPi deployment.

* Workflow for PyPi deployment.

* Update deploy.yml

* Revert "Update deploy.yml"

This reverts commit 6ccfbff.

* Revert "Revert "Update deploy.yml""

This reverts commit 32b14e2.

* 39 similarity simlex and file name depending on time (#40)

* update notebook evaluate + add fetch simlex

* evaluate notebook update + file name depending on the time of creation for fetch methods

* SimLex 999 665 222 111 comments

* correction of SIMLEX to SimLex

* 41 dimensions filtering (#42)

* add remove dimensions with nnz thresholds min and max + unit test

* correction dataset fetch for similarity, name file with current time (milliseconds)

* correction import time

* detection of thresholds to filter dimensions based on nnz

* Add tabulate in requirements.txt

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>

* 43 update pyprojecttoml for documentation (#44)

* Update pyproject.toml

* Update pyproject.toml

* [AUTO-COMMIT] Update release version to v1.2.0.

Files changed:
M	pyproject.toml
M	sinr/__init__.py

* Fix #50 by changing categorization and evaluation exception files.

* Update README.rst (#89)

* Update README.rst

Update installation, example and publications

* Update README.rst

* Update README.rst

* Delete notebooks/transfert.ipynb

* Delete notebooks/preproc.ipynb

* Update build-doc.yml (#92)

Change checkout@master to checkout@v2

* Update pyproject.toml (#93)

* Update pyproject.toml

Add xgboost to dependencies

* Update pyproject.toml

* Dev (#94)

* factory method to load embeddings at the w2v format (#53)

* Revert "factory method to load embeddings at the w2v format (#53)"

This reverts commit 7da0e99.

* 52 loading vectors such as w2v or spine ones (#57)

* factory method to load embeddings at the w2v format

* Update graph_embeddings.py, small fix

* Adding distRatio (#59)

* moving dist ratio in sinr.text.evaluate, adding unit tests (#61)

* commenting cosine_dist, pick_intruder, dist_ratio, dist_ratio_dim, intra_sim, inter_sim methods

* moving distRatio from graph_embeddings to text/evaluate

* tests unitaires distratio

* cleaning comments

* adding creation and deletion of w2v file for distRatio unit tests

* fix with_value() argument (#65)

Co-authored-by: Simon Guillot <[email protected]>

* load_from_word2vec model s name bug fixed (#70)

* missing word list bug fixed (#68)

* 73 wrong community memberships update when filtering dimensions (#75)

* update of community_membership when filtering dimensions

* sinr filtered: removing dimensions and updating communities_sets

* fixed code to pass tests

* comments

* 76 preprocessing multiple documents (#77)

* preprocessing by documents

* Tests : preprocessing by sentences and by documents

* adding size indicator for spacy model and downloading spacy model in tests workflow'

* downloading spacy

* 78 classification (#80)

* preprocess : minimal length of documents kept + tests

* vectorizer + test

* classification's methods + tests

* xgboost interpretable dimensions

* adding xgboost for test workflow

* classification, fit and score test modification

* get_dimension_stereotypes on removed community fixed (#82)

* Filtering words using a dictionnary (#84)

* Exceptions list, path to save / load SINrVectors (#86)

* not removing words when in exceptions list

* add path to method save

* exceptions list to set + test exceptions list

* path parameter method load

* new exceptions list for similarity

* optionnal parameter path for load and save methods

* 90 notebooks (#91)

* fix save, load, dim_nnz_thresholds + add obj_nnz_count

* add notebook with gutenberg example

* bnc model for notebook

* notebook bnc

* notebook frwac

* remove nb evaluate

* add tqdm to sparsify method

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>

* Update deploy.yml

* [AUTO-COMMIT] Update release version to v1.3.1. (#96)

Files changed:
M	pyproject.toml
M	sinr/__init__.py

Co-authored-by: nicolasdugue <[email protected]>

* doc update (#97)

* doc update

* links update

* remove doc, quality, build

* fix LICENSE link

* Update conf.py

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>

---------

Co-authored-by: anthony <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Thibault Prouteau <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Guillot Simon <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Anna Beranger <[email protected]>
Co-authored-by: nicolasdugue <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* 99 diachronic features (#100)

* Dev (#94)

* factory method to load embeddings at the w2v format (#53)

* Revert "factory method to load embeddings at the w2v format (#53)"

This reverts commit 7da0e99.

* 52 loading vectors such as w2v or spine ones (#57)

* factory method to load embeddings at the w2v format

* Update graph_embeddings.py, small fix

* Adding distRatio (#59)

* moving dist ratio in sinr.text.evaluate, adding unit tests (#61)

* commenting cosine_dist, pick_intruder, dist_ratio, dist_ratio_dim, intra_sim, inter_sim methods

* moving distRatio from graph_embeddings to text/evaluate

* tests unitaires distratio

* cleaning comments

* adding creation and deletion of w2v file for distRatio unit tests

* fix with_value() argument (#65)

Co-authored-by: Simon Guillot <[email protected]>

* load_from_word2vec model s name bug fixed (#70)

* missing word list bug fixed (#68)

* 73 wrong community memberships update when filtering dimensions (#75)

* update of community_membership when filtering dimensions

* sinr filtered: removing dimensions and updating communities_sets

* fixed code to pass tests

* comments

* 76 preprocessing multiple documents (#77)

* preprocessing by documents

* Tests : preprocessing by sentences and by documents

* adding size indicator for spacy model and downloading spacy model in tests workflow'

* downloading spacy

* 78 classification (#80)

* preprocess : minimal length of documents kept + tests

* vectorizer + test

* classification's methods + tests

* xgboost interpretable dimensions

* adding xgboost for test workflow

* classification, fit and score test modification

* get_dimension_stereotypes on removed community fixed (#82)

* Filtering words using a dictionnary (#84)

* Exceptions list, path to save / load SINrVectors (#86)

* not removing words when in exceptions list

* add path to method save

* exceptions list to set + test exceptions list

* path parameter method load

* new exceptions list for similarity

* optionnal parameter path for load and save methods

* 90 notebooks (#91)

* fix save, load, dim_nnz_thresholds + add obj_nnz_count

* add notebook with gutenberg example

* bnc model for notebook

* notebook bnc

* notebook frwac

* remove nb evaluate

* add tqdm to sparsify method

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>

* Update deploy.yml

* [AUTO-COMMIT] Update release version to v1.3.1. (#96)

Files changed:
M	pyproject.toml
M	sinr/__init__.py

Co-authored-by: nicolasdugue <[email protected]>

* doc update (#97)

* doc update

* links update

* remove doc, quality, build

* fix LICENSE link

* Update conf.py

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>

* Diachronic features

* Update publications.rst

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicolasdugue <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>

* remove disconnected nodes from the graph (#105)

* remove isolated nodes from the graph

* test update

* 98 multiple edges - temporary fix (#107)

* Dev (#94)

* factory method to load embeddings at the w2v format (#53)

* Revert "factory method to load embeddings at the w2v format (#53)"

This reverts commit 7da0e99.

* 52 loading vectors such as w2v or spine ones (#57)

* factory method to load embeddings at the w2v format

* Update graph_embeddings.py, small fix

* Adding distRatio (#59)

* moving dist ratio in sinr.text.evaluate, adding unit tests (#61)

* commenting cosine_dist, pick_intruder, dist_ratio, dist_ratio_dim, intra_sim, inter_sim methods

* moving distRatio from graph_embeddings to text/evaluate

* tests unitaires distratio

* cleaning comments

* adding creation and deletion of w2v file for distRatio unit tests

* fix with_value() argument (#65)

Co-authored-by: Simon Guillot <[email protected]>

* load_from_word2vec model s name bug fixed (#70)

* missing word list bug fixed (#68)

* 73 wrong community memberships update when filtering dimensions (#75)

* update of community_membership when filtering dimensions

* sinr filtered: removing dimensions and updating communities_sets

* fixed code to pass tests

* comments

* 76 preprocessing multiple documents (#77)

* preprocessing by documents

* Tests : preprocessing by sentences and by documents

* adding size indicator for spacy model and downloading spacy model in tests workflow'

* downloading spacy

* 78 classification (#80)

* preprocess : minimal length of documents kept + tests

* vectorizer + test

* classification's methods + tests

* xgboost interpretable dimensions

* adding xgboost for test workflow

* classification, fit and score test modification

* get_dimension_stereotypes on removed community fixed (#82)

* Filtering words using a dictionnary (#84)

* Exceptions list, path to save / load SINrVectors (#86)

* not removing words when in exceptions list

* add path to method save

* exceptions list to set + test exceptions list

* path parameter method load

* new exceptions list for similarity

* optionnal parameter path for load and save methods

* 90 notebooks (#91)

* fix save, load, dim_nnz_thresholds + add obj_nnz_count

* add notebook with gutenberg example

* bnc model for notebook

* notebook bnc

* notebook frwac

* remove nb evaluate

* add tqdm to sparsify method

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>

* Update deploy.yml

* [AUTO-COMMIT] Update release version to v1.3.1. (#96)

Files changed:
M	pyproject.toml
M	sinr/__init__.py

Co-authored-by: nicolasdugue <[email protected]>

* doc update (#97)

* doc update

* links update

* remove doc, quality, build

* fix LICENSE link

* Update conf.py

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>

* temporary fix multiple (i,j) entries issue in cooccurrence matrix

---------

Co-authored-by: Nico <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicolasdugue <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>

* 108 incompatibility numpy pandas (#109)

* Dev (#94)

* factory method to load embeddings at the w2v format (#53)

* Revert "factory method to load embeddings at the w2v format (#53)"

This reverts commit 7da0e99.

* 52 loading vectors such as w2v or spine ones (#57)

* factory method to load embeddings at the w2v format

* Update graph_embeddings.py, small fix

* Adding distRatio (#59)

* moving dist ratio in sinr.text.evaluate, adding unit tests (#61)

* commenting cosine_dist, pick_intruder, dist_ratio, dist_ratio_dim, intra_sim, inter_sim methods

* moving distRatio from graph_embeddings to text/evaluate

* tests unitaires distratio

* cleaning comments

* adding creation and deletion of w2v file for distRatio unit tests

* fix with_value() argument (#65)

Co-authored-by: Simon Guillot <[email protected]>

* load_from_word2vec model s name bug fixed (#70)

* missing word list bug fixed (#68)

* 73 wrong community memberships update when filtering dimensions (#75)

* update of community_membership when filtering dimensions

* sinr filtered: removing dimensions and updating communities_sets

* fixed code to pass tests

* comments

* 76 preprocessing multiple documents (#77)

* preprocessing by documents

* Tests : preprocessing by sentences and by documents

* adding size indicator for spacy model and downloading spacy model in tests workflow'

* downloading spacy

* 78 classification (#80)

* preprocess : minimal length of documents kept + tests

* vectorizer + test

* classification's methods + tests

* xgboost interpretable dimensions

* adding xgboost for test workflow

* classification, fit and score test modification

* get_dimension_stereotypes on removed community fixed (#82)

* Filtering words using a dictionnary (#84)

* Exceptions list, path to save / load SINrVectors (#86)

* not removing words when in exceptions list

* add path to method save

* exceptions list to set + test exceptions list

* path parameter method load

* new exceptions list for similarity

* optionnal parameter path for load and save methods

* 90 notebooks (#91)

* fix save, load, dim_nnz_thresholds + add obj_nnz_count

* add notebook with gutenberg example

* bnc model for notebook

* notebook bnc

* notebook frwac

* remove nb evaluate

* add tqdm to sparsify method

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>

* Update deploy.yml

* [AUTO-COMMIT] Update release version to v1.3.1. (#96)

Files changed:
M	pyproject.toml
M	sinr/__init__.py

Co-authored-by: nicolasdugue <[email protected]>

* doc update (#97)

* doc update

* links update

* remove doc, quality, build

* fix LICENSE link

* Update conf.py

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>

* Correcting conflict between pandas and numpy

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicolasdugue <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: nicolasdugue <[email protected]>

* Removing conflict between numpy and karateclub, karateclub not being used in sinr

* Solving depency problem with docutils

---------

Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: Thibault PROUTEAU <[email protected]>
Co-authored-by: Anna B <[email protected]>
Co-authored-by: Simon Guillot <[email protected]>
Co-authored-by: anthony <[email protected]>
Co-authored-by: Thibault Prouteau <[email protected]>
Co-authored-by: Guillot Simon <[email protected]>
Co-authored-by: Beranger Anna <[email protected]>
Co-authored-by: Anna Beranger <[email protected]>
Co-authored-by: nicolasdugue <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicolasdugue <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Diachronic features
3 participants