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

chore(nlp): Dutch added to contenful #1249

Merged
merged 3 commits into from
Jan 18, 2021
Merged

chore(nlp): Dutch added to contenful #1249

merged 3 commits into from
Jan 18, 2021

Conversation

elozano98
Copy link
Contributor

@elozano98 elozano98 commented Jan 14, 2021

Depends on #1248. Please, review it first. ⚠️

Description

Dutch tokenizer, stemmer, and stopwords have been added to contentful nlp.

Context

Adding them will make it possible to process Dutch text.

Approach taken / Explain the design

The tokenizer, stemmer and stopwords used are from the nlpjs library.

Testing

The pull request...

  • has unit tests

@elozano98 elozano98 marked this pull request as draft January 15, 2021 07:59
@codecov
Copy link

codecov bot commented Jan 15, 2021

Codecov Report

Merging #1249 (a269138) into contentful/hu (faa1fb3) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                Coverage Diff                @@
##           contentful/hu    #1249      +/-   ##
=================================================
+ Coverage          64.58%   64.62%   +0.03%     
=================================================
  Files                231      232       +1     
  Lines               6436     6443       +7     
  Branches            1115     1115              
=================================================
+ Hits                4157     4164       +7     
  Misses              1966     1966              
  Partials             313      313              
Flag Coverage Δ
botonic-plugin-contentful 71.18% <100.00%> (+0.05%) ⬆️

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

Impacted Files Coverage Δ
...kages/botonic-plugin-contentful/src/nlp/locales.ts 100.00% <100.00%> (ø)
...kages/botonic-plugin-contentful/src/nlp/stemmer.ts 95.74% <100.00%> (+0.18%) ⬆️
...lugin-contentful/src/nlp/stopwords/stopwords-nl.ts 100.00% <100.00%> (ø)
...ckages/botonic-plugin-contentful/src/nlp/tokens.ts 95.95% <100.00%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update faa1fb3...a269138. Read the comment docs.

@elozano98 elozano98 marked this pull request as ready for review January 15, 2021 11:39
@elozano98 elozano98 requested review from asastre, dpinol, vanbasten17 and ericmarcos and removed request for asastre and dpinol January 15, 2021 11:40
@elozano98 elozano98 changed the title wip(nlp): Dutch added to contenful chore(nlp): Dutch added to contenful Jan 15, 2021
@dpinol dpinol changed the base branch from master to contentful/hu January 15, 2021 12:50
Copy link
Contributor

@asastre asastre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at @dpinol comments and then you're good to go!

@@ -76,7 +76,6 @@ export const nlDefaultStopWords = [
'toch',
'toen',
'tot',
'u',
'uit',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't mean to remove all 1 letters, only the full alphabet below

Base automatically changed from contentful/hu to master January 18, 2021 08:41
@elozano98 elozano98 merged commit b4e0312 into master Jan 18, 2021
@elozano98 elozano98 deleted the contentful/nl branch January 18, 2021 08:42
@elozano98 elozano98 added the documentation Documentation changes label Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants