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

[SYSTEMDS-3179] Add Co-occurrence matrix for GloVe word embedding #2200

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

saminbassiri
Copy link

This PR adds the implementation for the co-occurrence matrix in DML.
The co-occurrence matrix can be used in word embedding like GloVe and word2vec.

The implementation is based on this repository:
GloVe: Global Vectors for Word Representation

@cmcuza
Copy link
Contributor

cmcuza commented Feb 1, 2025

I suggest editing the PR's title to indicate that it is related to the issue [SYSTEMDS-3179], for example, #2206. Moreover, I suggest giving more details regarding the code in this PR the proposed scripts/builtin/cooccur.dml has many small functionalities. Finally, I suggest adding the proper testing of the proposed co-occurrence matrix calculation.

@saminbassiri saminbassiri changed the title Add Co-occurrence matrix for GloVe word embedding [SYSTEMDS-3179] Add Co-occurrence matrix for GloVe word embedding Feb 2, 2025
@saminbassiri saminbassiri force-pushed the SYSTEMDS-3179_Implementing_Cooccurrence_matrix_for_GloVe_word_embedding branch from c7dc94a to 0293dbc Compare February 3, 2025 16:03
Clean cooc matrix code and add more accurate descriptions in comments.
rename cooccur.dml to cooccurrenceMatrix.dml for more clear naming in tests
add cooccurrenceMatrix dml script in Builtins.java
Add a small test data containing diffrent charactors to check proper text preprocessing in cooccurrenceMatrix.dml.
The test checks the result of the cooccurrenceMatrix.dml for a small dataset.
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.37%. Comparing base (615cd9a) to head (aa24ec5).
Report is 21 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2200      +/-   ##
============================================
+ Coverage     72.27%   72.37%   +0.10%     
- Complexity    44978    45307     +329     
============================================
  Files          1452     1467      +15     
  Lines        169309   170607    +1298     
  Branches      33037    33257     +220     
============================================
+ Hits         122364   123477    +1113     
- Misses        37630    37736     +106     
- Partials       9315     9394      +79     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

add licenses to BuiltinCooccurrenceMatrixTest.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants