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

Filtering words using a dictionnary #84

Merged
merged 1 commit into from
May 21, 2024

Conversation

aberanger
Copy link
Collaborator

@aberanger aberanger commented May 21, 2024

Description

When preprocessing with the extract_text method, an optional parameter, a vocabulary list, can be entered to remove all words not belonging to this list from the corpus.

Fixes #83

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

@nicolasdugue nicolasdugue merged commit 2e538dc into dev May 21, 2024
1 check passed
@nicolasdugue nicolasdugue deleted the 83-filter-words-using-a-dictionary branch May 21, 2024 15:39
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