Feature 1 — link_probability (overlinking)
How often a phrase is a link when it appears at all:
linked_frequency / (anchor_frequency + linked_frequency), where
anchor_frequency = unlinked occurrences.
Common-knowledge terms ("education") appear mostly unlinked → low value → the flag for "should this be a link?".
Already computed in generate_anchor_dictionary.py, but only used as a hard filter (MIN_LINK_PROBABILITY) and then discarded.
Feature 2 — context_w2v (wrong-entity )
Existing w2v compares the whole article to the candidate target. It may be too coarse to
tell a painter from a musician of the same name. context_w2v compares against the
local context instead:
- Find the anchor's offset in the article.
- Take the N=5 nearest existing links (excluding the mention's own).
- Average their article_topics embeddings → local context vector.
- context_w2v = cosine(context vector, candidate-target embedding); 0.0 if no candidate embedding or no usable neighbor.
Experiment with the new features on the training set.
We will measure in the impact on accepted/rejected suggestions and reverted edits in the next tasks.
We use simple wiki during implementation and we run it on enwiki once we are ready.



