Skip to content

Add Finnish Wikipedia wordlist generator script#77

Open
Nirmeet-kamble wants to merge 2 commits into
Wikimedia-Suomi:mainfrom
Nirmeet-kamble:list
Open

Add Finnish Wikipedia wordlist generator script#77
Nirmeet-kamble wants to merge 2 commits into
Wikimedia-Suomi:mainfrom
Nirmeet-kamble:list

Conversation

@Nirmeet-kamble

Copy link
Copy Markdown
Contributor

Closes #4

Description:
Adds a Python script to generate a Finnish Wikipedia wordlist (fiwiki_wordlist.txt.gz) from the XML dump.
The script extracts page text, filters valid words (≥3 chars with letters), removes duplicates, sorts them, and compresses the output.
Also updates .gitignore to exclude the generated file.

Purpose:
Used for sanity checking whether words are already known in Finnish Wikipedia.

@Ezi-code Ezi-code left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can the print statements be reduced to show success and error messages only?

Comment thread app/reviews/create_fiwiki_wordlist.py Outdated
@Nirmeet-kamble

Copy link
Copy Markdown
Contributor Author

@zache-fi Can you please review this?

Co-authored-by: Ezra Yendau <125133850+Ezi-code@users.noreply.github.com>
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.

Create Finnish Wikipedia wordlist for sanity checking

2 participants