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

missing words list bug fixed #68

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

aberanger
Copy link
Collaborator

Description

if dataset.X[i][1] not in missing_words:
missing_words.append(dataset.X[i][0])
Line 198 of evaluate.txt

changed into

if dataset.X[i][1] not in missing_words:
missing_words.append(dataset.X[i][1])
Line 198 of evaluate.txt

Fixes issue Evaluate text method : missing words list #67

Type of change

  • 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 53f325b into dev Jan 5, 2024
1 check passed
@nicolasdugue nicolasdugue deleted the 67-evaluate-text-method-missing-words-list branch January 5, 2024 17:37
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