mix f1000.import.concepts — build concepts and link words #70
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#70
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: Create
Conceptrows andWordConceptlinks from the translation source chosenby the spike, so a source-language word shares a concept with its target-language counterpart.
Files:
lib/mix/tasks/f1000.import.concepts.exlib/first_thousand_words/import/translation_source.ex(behaviour)lib/first_thousand_words/import/wikdict_source.ex(implementation)Steps:
TranslationSourcebehaviour (candidates(word, from, to) -> [{word, confidence}])so the concrete source can be swapped without touching the importer.
each to a concept; create the concept on first sight using the English gloss as the anchor.
sense_rankandconfidenceon eachWordConcept.Verify:
Pitfall: do not create a concept per translation pair — that produces thousands of
one-to-one concepts and defeats the pivot. A concept is a meaning, and both words point at it.
Duplicate of #18 — created by a re-run whose pagination helper only saw the first page of issues. Closing to keep the backlog clean. Repo owner can delete this outright.