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

Implement word-stats package #488

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Implement word-stats package #488

merged 1 commit into from
Dec 30, 2024

Conversation

kitsuyui
Copy link
Owner

  • word-stats package provides a function to calculate the statistics of a given documents.
  • wordCount function calculates the number of words in a given document.
  • computeTermFrequency function calculates the term frequency of a given document. (TF)
  • computeInverseDocumentFrequency function calculates the inverse document frequency of a given document. (IDF)
  • extractUniqueWords function extracts the unique words from a given document.

- `word-stats` package provides a function to calculate the statistics of a given documents.
- `wordCount` function calculates the number of words in a given document.
- `computeTermFrequency` function calculates the term frequency of a given document. (TF)
- `computeInverseDocumentFrequency` function calculates the inverse document frequency of a given document. (IDF)
- `extractUniqueWords` function extracts the unique words from a given document.
Copy link

codecov bot commented Dec 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.49%. Comparing base (090fc13) to head (bb68468).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #488      +/-   ##
==========================================
+ Coverage   98.32%   98.49%   +0.16%     
==========================================
  Files          24       25       +1     
  Lines         359      398      +39     
  Branches       57       59       +2     
==========================================
+ Hits          353      392      +39     
  Misses          6        6              
Flag Coverage Δ
unittests 98.49% <100.00%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@kitsuyui kitsuyui merged commit a7ee6b9 into main Dec 30, 2024
8 checks passed
@kitsuyui kitsuyui deleted the feat-word-stats branch December 30, 2024 17:38
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.

1 participant