<jupyter_start><jupyter_text>Annotation task BHO Topographical Dictionaries to WikidataAnnotation task: linking entries from the [BHO Topographical Dictionaries](https://www.british-history.ac.uk/search/series/topographical-dict) to their corresponding [Wikidata](https://www.wikidata.org/wiki/Wikidata:Main_Page) entries.You don't need to do complete all the annotations at once.When you encounter challenging entries, please document your thought process here: https://hackmd.io/nWy1x4uKRtmyq4GgYabKKA***     Instructions    The annotations interface looks like this:The first block contains information on your progress annotating.The second block is where you annotate.* There is a text box in which you can type text, in particular a Wikidata ID (e.g. "Q111111").* There are four different buttons:    * `submit`: Submit the content you have typed on the text box. The text **must match** the Wikidata ID format (e.g. "Q111111").    * `not in wikidata`: Click this if you have not been able to find the corresponding Wikidata entry.    * `back`: Go to the previous entry.    * `skip`: Skip the current entry.The third block is the BHO entry that we want to link to Wikidata. In this case, `Curbridge` (BHO ID 4451). We provide the first paragraph of the BHO entry, to help disambiguate.The fourth block is the Wikidata entries that we have identified as potential candidates with DeezyMatch. In the example you can see two different wikidata candidates: "Curbridge, Oxfordshire" with ID Q2222338 and "Curbridge, Hampshire" with ID Q5194654. For each wikidata candidate we provide some info extracted from either Wikipedia or Wikidata on this entry, to help the annotation process. For each entry, we provide (if the information exists):* Historic county: traditional geographical division of Great Britain and Ireland, extracted from Wikidata.* Description: first lines of the corresponding Wikipedia page, or Wikidata description.* Wikidata link: link to Wikidata, in case you want to explore this candidate further.* Wikipedia link: link to Wikipedia, in case you want to explore this candidate further.**Note:** It is possible that the correct Wikidata entry is not among the potential candidates (because we have failed to identify it as a potential candidate). Please double-check that it really does not exist in [Wikidata](https://www.wikidata.org/wiki/Wikidata:Main_Page) before clicking on the "not in wikidata" button.*** AnnotationRun the cell below to annotate some entries.<jupyter_code>import utils

utils.annotate()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06510721247563353, 'fraction_numerical': 0.012865497076023392, 'mean_word_length': 5.15347721822542, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '265966', 'license': 'MIT', 'n_tokens_mistral': 690, 'n_tokens_neox': 653, 'n_words': 338, 'path': 'annotations.ipynb', 'repo_name': 'fedenanni/TestAnnotations', 'size': '2565'}