-
Notifications
You must be signed in to change notification settings - Fork 45
Add Ukrainian stemmer vocabulary data #36
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
Open
polaz
wants to merge
14
commits into
snowballstem:main
Choose a base branch
from
polaz:feature/#265-ukrainian-stemmer
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f8096b1
Add Ukrainian stemmer vocabulary data
polaz aabdee1
Ukrainian: add мигтіння and боління to test corpus
polaz 61bdbd6
Ukrainian: add 65 words from stemmer_tests.tsv to corpus
polaz 6faac6e
test(ukrainian): add лошатко for -атко diminutive and refresh output
polaz 399976e
test(ukrainian): add diminutive suffix forms missing from corpus
polaz 9232861
test(ukrainian): add words for diminutive_stem suffix paths
polaz 8e4c923
test(ukrainian): add братунь for diminutive -унь suffix
polaz 98d9489
fix(ukrainian): update expected output after -онн- compound adj fix
polaz d8fd349
feat(ukrainian): add participle neuter test words живуче and зростаюче
polaz b71a27d
fix(ukrainian): update expected output for adj R2-blocking fix and pV…
polaz b402640
test(ukrainian): update expected output for -ості/-остей oblique stems
polaz 8c9b5a7
test(ukrainian): update вартості expected stem (вартост, not варт)
polaz 9576b20
test(ukrainian): update expected output for derivational setlimit fix
polaz 473f82a
test(ukrainian): add product vocabulary and -нти output
polaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| voc.txt and output.txt are licensed as CC BY-SA 3.0. | ||
|
|
||
| voc.txt was generated from a dump of the Ukrainian Wikipedia like so: | ||
|
|
||
| perl -CS scripts/wikipedia-dump-to-freq ukwiki-latest-pages-articles.xml.bz2 10 Cyrillic > voc.freq | ||
| scripts/freq-to-voc 300 < voc.freq | grep -v "^'" > ukrainian/voc.txt | ||
|
|
||
| The dump used was dated 2025-01-02. | ||
|
|
||
| output.txt was generated from voc.txt by running it through the stemmer: | ||
|
|
||
| stemwords -l ukrainian -c UTF_8 -i ukrainian/voc.txt -o ukrainian/output.txt | ||
|
|
||
| Wikipedia is licensed as: https://creativecommons.org/licenses/by-sa/3.0/ | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are they?
Taking a large dataset and extracting the most frequent N words is clearly highly transformative and it's not clear to me that the licence of the original text applies to the wordlist. (It's also not clear to me that it automatically doesn't, but apparently an LLM can ignore licensing of code with impunity despite being capable of regenerating significant verbatim sections of the original, whereas you couldn't recreate even one sentence of a wikipedia article working solely from this word list.)
So that's the reason why for the other languages I've just stated how the source data was licensed. Perhaps I should seek a qualified legal opinion on this.