This paper introduces the use of Wikipedia as a resource for automatic keyword extraction and word sense disambiguation, and shows how this online encyclopedia can be used to achieve state-of-the-art results on both these tasks. The paper also shows how the two methods can be combined into a system able to automatically enrich a text with links to encyclopedic knowledge. Given an input document, the system identifies the important concepts in the text and automatically links these concepts to the corresponding Wikipedia pages. Evaluations of the system show that the automatic annotations are reliable and hardly distinguishable from manual annotations. Categories and Subject Descriptors I.2.7 [Natural Language Processing]: Text analysis; I.7 [Document and Text Processing]: Document and Text Editing General Terms Algorithms,Experimentation Keywords keyword extraction, word sense disambiguation, Wikipedia, semantic annotation