mix f1000.import.frequency — rank the top N words per language #17
Labels
No labels
area
auth
area
data
area
domain
area
infra
area
stats
area
study
area
tooling
area
ui
duplicate
future
kind
bug
kind
chore
kind
decision
kind
docs
kind
feature
kind
spike
kind
test
prio
blocker
risk
high
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nickkeers/first-thousand-words#17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective: Populate
Wordrows with real frequency ranks.Source:
hermitdave/FrequencyWords(MIT licence, ~1.5k stars). Layout:content/2018/<lang>/<lang>_50k.txt, oneword countpair per line, already sorted bydescending frequency. Example head:
you 28787591,i 27086011,the 22761659.Files:
lib/mix/tasks/f1000.import.frequency.exSteps:
<lang>_50k.txtwith Req (AGENTS.md forbids:httpoison/:tesla/:httpc).word count; drop noise — punctuation-only tokens, possessives like's, digits.Wordkeyed on(language_id, text)— idempotent: re-running must notduplicate. Use
Ash.bulk_createwithupsert? true.--language es --limit 1000flags; cache the raw download underpriv/data/cache/so re-imports do not re-download.Verify: