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

Exceptions list, path to save / load SINrVectors #86

Merged
merged 6 commits into from
Jun 12, 2024

Conversation

aberanger
Copy link
Collaborator

@aberanger aberanger commented May 28, 2024

Description

Extract_text method doesn't remove words from the exceptions list.
Path of the file needed to save and load SINrVectors (no more .pk extension predefined in SINrVectors load method).

Fixes #85 #72 #71

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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
Copy link
Member

nicolasdugue commented Jun 3, 2024

@aberanger : Ça serait pas mal, je pense, de caster exceptions en set pour gagner en efficacité. La recherche dans exceptions est linéaire, et faite beaucoup de fois.

@aberanger aberanger changed the title Keeping words when in exceptions list Exceptions list, path to save / load SINrVectors Jun 12, 2024
@nicolasdugue nicolasdugue merged commit 0def03e into dev Jun 12, 2024
1 check passed
@nicolasdugue nicolasdugue deleted the 85-exceptions-list branch June 12, 2024 13:50
nicolasdugue added a commit that referenced this pull request Jun 14, 2024
* 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 <simon.guillot@univ-lemans.fr>

* 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 <thibault.prouteau@gmail.com>
Co-authored-by: Anna B <72624798+aberanger@users.noreply.github.com>
Co-authored-by: Simon Guillot <47661058+SimonGuillot@users.noreply.github.com>
Co-authored-by: Simon Guillot <simon.guillot@univ-lemans.fr>
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.

None yet

2 participants