Multi-Modular Domain-Tailored OCR Post-Correction

Total Page:16

File Type:pdf, Size:1020Kb

Multi-Modular Domain-Tailored OCR Post-Correction Multi-modular domain-tailored OCR post-correction Sarah Schulz and Jonas Kuhn Institute for Natural Language Processing (IMS) University of Stuttgart [email protected] Abstract block: large digital corpora comprising the textual material of interest are rare. Archives and individ- One of the main obstacles for many Dig- ual scholars are in the process of improving this ital Humanities projects is the low data situation by applying Optical Character Recog- availability. Texts have to be digitized nition (OCR) to the physical resources. In the in an expensive and time consuming pro- Google Books1 project books are being digitized cess whereas Optical Character Recogni- on a large scale. But even though collections of tion (OCR) post-correction is one of the literary texts like Project Gutenberg2 exist, these time-critical factors. At the example of collections often lack the texts of interest to a spe- OCR post-correction, we show the adap- cific question. As an example, we describe the tation of a generic system to solve a spe- compilation of a corpus of adaptations of Goethe’s cific problem with little data. The system Sorrows of the young Werther which allows for the accounts for a diversity of errors encoun- analysis of character networks throughout the pub- tered in OCRed texts coming from differ- lishing history of this work. ent time periods in the domain of litera- The success of OCR is highly dependent on the ture. We show that the combination of dif- quality of the printed source text. Recognition er- ferent approaches, such as e.g. Statisti- rors, in turn, impact results of computer-aided re- cal Machine Translation and spell check- search (Strange et al., 2014). Especially for older ing, with the help of a ranking mecha- books set in hard-to-read fonts and with stained nism tremendously improves over single- paper the output of OCR systems is not good handed approaches. Since we consider enough to serve as a basis for Digital Humanities the accessibility of the resulting tool as (DH) research. It needs to be post-corrected in a a crucial part of Digital Humanities col- time-consuming and cost-intensive process. laborations, we describe the workflow we We describe how we support and facilitate the suggest for efficient text recognition and manual post-correction process with the help of subsequent automatic and manual post- informed automatic post-correction. To account correction. for the problem of relative data sparsity, we illus- trate how a generic architecture agnostic to a spe- 1 Introduction cific domain can be adjusted to text specificities Humanities are no longer just the realm of schol- such as genre and font characteristics by including ars turning pages of thick books. As the worlds just small amounts of domain specific data. We of humanists and computer scientists begin to in- suggest a system architecture (cf. Figure 1) with tertwine, new methods to revisit known ground trainable modules which joins general and specific emerge and options to widen the scope of research problem solving as required in many applications. questions are available. Moreover, the nature of We show that the combination of modules via a language encountered in such research attracts the ranking algorithm yields results far above the per- attention of the NLP community (Kao and Juraf- formance of single approaches. sky (2015), Milli and Bamman (2016)). Yet, the basic requirement for the successful implemen- 1https://books.google.de/, 02.04.2017. tation of such projects often poses a stumbling 2http://www.gutenberg.org, 14.04.2017. 2716 Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2716–2726 Copenhagen, Denmark, September 7–11, 2017. c 2017 Association for Computational Linguistics OCR text preprocessing preprocessed text specific vocab general statistical specific statistical original compound split spell check machine translation machine translation correction suggestions decision module corrected text Figure 1: Multi-modular OCR post-correction system. We discuss the point of departure for our research search relating to the data could be found. in Section 2 and introduce the data we base our OCR post-correction is applied in a diversity of system on in Section 4. In Section 5, we illustrate fields in order to compile high-quality datasets. the most common errors and motivate our multi- This is not merely reflected in the homogeneity of modular, partly customized architecture. Section 6 techniques but in the metric of evaluation as well. gives an overview of techniques included in our While accuracy has been widely used as evalu- system and the ranking algorithm. In Section 7, ation measure in OCR post-correction research, we discuss results, the limitations of automatic Reynaert (2008a) advocates the use of precision post-correction and the influence the amount of and recall in order to improve transparency in eval- training data takes on the performance of such a uations. Dependent on the paradigm of the applied system. Finally, Section 8 describes a way to effi- technique even evaluation measures like BLEU ciently integrate the results of our research into a score can be found (cf. Afli et al. (2016)). digitization work-flow as we see the easy accessi- Since shared tasks are a good opportunity to estab- bility of computer aid as a central point in Digital lish certain standards and facilitate the compara- Humanities collaborations. bility of techniques, the Competition on Post-OCR Text Correction3 organized in the context of IC- 2 Related work DAR 2017 could mark a milestone for more uni- There are two obvious ways to automatically im- fied OCR post-correction research efforts. prove quality of digitized text: optimization of Regarding techniques used for OCR post- OCR systems or automatic post-correction. Com- correction, there are two main trends to be monly, OCR utilizes just basic linguistic knowl- mentioned: statistical approaches utilizing error edge like character set of a language or reading distributions inferred from training data and lex- direction. The focus lies on the image recognition ical approaches oriented towards the comparison aspect which is often done with artificial neural of source words to a canonical form. Combina- networks (cf. Graves et al. (2009), Desai (2010)). tions of the two approaches are also available. Post-correction is focused on the correction of er- Techniques residing in this statistical domain rors in the linguistic context. It thus allows for the have the advantage that they can model specific purposeful inclusion of knowledge about the text distributions of the target domain if training data at hand, e.g. genre-specific vocabulary. Neverthe- is available. Tong and Evans (1996) approach less, post-correction has predominantly been tack- post-correction as a statistical language modeling led OCR system agnostic as outlined below. As problem, taking context into account. Perez-´ an advantage, post-correction can also be applied Cortes et al. (2000) employ stochastic finite-state when no scan or physical resource is available. automaton along with a modified version of There have been attempts towards shared datasets the Viterbi Algorithm to perform a stochastic for evaluation. Mihov et al. (2005) released a cor- error correcting parsing. Extending the simpler pus covering four different kinds of OCRed text stochastic context-sensitive models, Kolak and comprising German and Bulgarian. However, in 3https://sites.google.com/view/ 2017 the corpus was untraceable and no recent re- icdar2017-postcorrectionocr/home, 3.07.2017. 2717 Resnik (2002) apply the first noisy channel model, based on contents gathered from all over the web. using edit distance from noisy to corrected text The human component as final authority has on character level. In order to train such a model, been mentioned in some of these projects. Visual manually generated training data is required. Rey- support of the post-correction process has been naert (2008b) suggests a corpus-based correction emphasized by e.g. Vobl et al. (2014) who method, taking spelling variation (especially in describe a system of iterative post-correction historical text) into account. Abdulkader and of OCRed historical text which is evaluated in Casey (2009) introduce an error estimator neural an application-oriented way. They present the network that learns to assess error probabilities human corrector with an alignment of image from ground truth data which in turn is then and OCRed text and make batch correction of suggested for manual correction. This decreases the same error in the entire document possible. the time needed for manual post-correction since They can show that the time needed by human correct words do not have to be considered as correctors considerably decreases. candidates for correction by the human corrector. Llobet et al. (2010) combine information from the OCR system output, the error distribution and 3 Evaluation metrics the language as weighted finite-state transducers. We describe and evaluate our data by means of Reffle and Ringlstetter (2013) use global as word error rate (WER) and character error rate well as local error information to be able to (CER). The error rates are a commonly used met- fine-tune post-correction systems to historical ric in speech recognition and machine translation documents. Related to the approach introduced by evaluation and can also be referred to as length Perez-Cortes´ et al. (2000), Afli et al. (2016) use normalized edit distance. They quantify the num- statistical machine translation for error correction ber of operations, namely the number of inser- using the Moses toolkit on character level. Volk tions, deletions and substitutions, that are needed et al. (2010) merge the output of two OCR systems to transform the suggested string into the manually with the help of a language model to increase the corrected string and are computed as follows: quality of OCR text.
Recommended publications
  • Automatic Correction of Real-Word Errors in Spanish Clinical Texts
    sensors Article Automatic Correction of Real-Word Errors in Spanish Clinical Texts Daniel Bravo-Candel 1,Jésica López-Hernández 1, José Antonio García-Díaz 1 , Fernando Molina-Molina 2 and Francisco García-Sánchez 1,* 1 Department of Informatics and Systems, Faculty of Computer Science, Campus de Espinardo, University of Murcia, 30100 Murcia, Spain; [email protected] (D.B.-C.); [email protected] (J.L.-H.); [email protected] (J.A.G.-D.) 2 VÓCALI Sistemas Inteligentes S.L., 30100 Murcia, Spain; [email protected] * Correspondence: [email protected]; Tel.: +34-86888-8107 Abstract: Real-word errors are characterized by being actual terms in the dictionary. By providing context, real-word errors are detected. Traditional methods to detect and correct such errors are mostly based on counting the frequency of short word sequences in a corpus. Then, the probability of a word being a real-word error is computed. On the other hand, state-of-the-art approaches make use of deep learning models to learn context by extracting semantic features from text. In this work, a deep learning model were implemented for correcting real-word errors in clinical text. Specifically, a Seq2seq Neural Machine Translation Model mapped erroneous sentences to correct them. For that, different types of error were generated in correct sentences by using rules. Different Seq2seq models were trained and evaluated on two corpora: the Wikicorpus and a collection of three clinical datasets. The medicine corpus was much smaller than the Wikicorpus due to privacy issues when dealing Citation: Bravo-Candel, D.; López-Hernández, J.; García-Díaz, with patient information.
    [Show full text]
  • Welsh Language Technology Action Plan Progress Report 2020 Welsh Language Technology Action Plan: Progress Report 2020
    Welsh language technology action plan Progress report 2020 Welsh language technology action plan: Progress report 2020 Audience All those interested in ensuring that the Welsh language thrives digitally. Overview This report reviews progress with work packages of the Welsh Government’s Welsh language technology action plan between its October 2018 publication and the end of 2020. The Welsh language technology action plan derives from the Welsh Government’s strategy Cymraeg 2050: A million Welsh speakers (2017). Its aim is to plan technological developments to ensure that the Welsh language can be used in a wide variety of contexts, be that by using voice, keyboard or other means of human-computer interaction. Action required For information. Further information Enquiries about this document should be directed to: Welsh Language Division Welsh Government Cathays Park Cardiff CF10 3NQ e-mail: [email protected] @cymraeg Facebook/Cymraeg Additional copies This document can be accessed from gov.wales Related documents Prosperity for All: the national strategy (2017); Education in Wales: Our national mission, Action plan 2017–21 (2017); Cymraeg 2050: A million Welsh speakers (2017); Cymraeg 2050: A million Welsh speakers, Work programme 2017–21 (2017); Welsh language technology action plan (2018); Welsh-language Technology and Digital Media Action Plan (2013); Technology, Websites and Software: Welsh Language Considerations (Welsh Language Commissioner, 2016) Mae’r ddogfen yma hefyd ar gael yn Gymraeg. This document is also available in Welsh.
    [Show full text]
  • Learning to Read by Spelling Towards Unsupervised Text Recognition
    Learning to Read by Spelling Towards Unsupervised Text Recognition Ankush Gupta Andrea Vedaldi Andrew Zisserman Visual Geometry Group Visual Geometry Group Visual Geometry Group University of Oxford University of Oxford University of Oxford [email protected] [email protected] [email protected] tttttttttttttttttttttttttttttttttttttttttttrssssss ttttttt ny nytt nr nrttttttt ny ntt nrttttttt zzzz iterations iterations bcorote to whol th ticunthss tidio tiostolonzzzz trougfht to ferr oy disectins it has dicomered Training brought to view by dissection it was discovered Figure 1: Text recognition from unaligned data. We present a method for recognising text in images without using any labelled data. This is achieved by learning to align the statistics of the predicted text strings, against the statistics of valid text strings sampled from a corpus. The figure above visualises the transcriptions as various characters are learnt through the training iterations. The model firstlearns the concept of {space}, and hence, learns to segment the string into words; followed by common words like {to, it}, and only later learns to correctly map the less frequent characters like {v, w}. The last transcription also corresponds to the ground-truth (punctuations are not modelled). The colour bar on the right indicates the accuracy (darker means higher accuracy). ABSTRACT 1 INTRODUCTION This work presents a method for visual text recognition without read (ri:d) verb • Look at and comprehend the meaning of using any paired supervisory data. We formulate the text recogni- (written or printed matter) by interpreting the characters or tion task as one of aligning the conditional distribution of strings symbols of which it is composed.
    [Show full text]
  • Detecting Personal Life Events from Social Media
    Open Research Online The Open University’s repository of research publications and other research outputs Detecting Personal Life Events from Social Media Thesis How to cite: Dickinson, Thomas Kier (2019). Detecting Personal Life Events from Social Media. PhD thesis The Open University. For guidance on citations see FAQs. c 2018 The Author https://creativecommons.org/licenses/by-nc-nd/4.0/ Version: Version of Record Link(s) to article on publisher’s website: http://dx.doi.org/doi:10.21954/ou.ro.00010aa9 Copyright and Moral Rights for the articles on this site are retained by the individual authors and/or other copyright owners. For more information on Open Research Online’s data policy on reuse of materials please consult the policies page. oro.open.ac.uk Detecting Personal Life Events from Social Media a thesis presented by Thomas K. Dickinson to The Department of Science, Technology, Engineering and Mathematics in partial fulfilment of the requirements for the degree of Doctor of Philosophy in the subject of Computer Science The Open University Milton Keynes, England May 2019 Thesis advisor: Professor Harith Alani & Dr Paul Mulholland Thomas K. Dickinson Detecting Personal Life Events from Social Media Abstract Social media has become a dominating force over the past 15 years, with the rise of sites such as Facebook, Instagram, and Twitter. Some of us have been with these sites since the start, posting all about our personal lives and building up a digital identify of ourselves. But within this myriad of posts, what actually matters to us, and what do our digital identities tell people about ourselves? One way that we can start to filter through this data, is to build classifiers that can identify posts about our personal life events, allowing us to start to self reflect on what we share online.
    [Show full text]
  • Spelling Correction: from Two-Level Morphology to Open Source
    Spelling Correction: from two-level morphology to open source Iñaki Alegria, Klara Ceberio, Nerea Ezeiza, Aitor Soroa, Gregorio Hernandez Ixa group. University of the Basque Country / Eleka S.L. 649 P.K. 20080 Donostia. Basque Country. [email protected] Abstract Basque is a highly inflected and agglutinative language (Alegria et al., 1996). Two-level morphology has been applied successfully to this kind of languages and there are two-level based descriptions for very different languages. After doing the morphological description for a language, it is easy to develop a spelling checker/corrector for this language. However, what happens if we want to use the speller in the "free world" (OpenOffice, Mozilla, emacs, LaTeX, ...)? Ispell and similar tools (aspell, hunspell, myspell) are the usual mechanisms for these purposes, but they do not fit the two-level model. In the absence of two-level morphology based mechanisms, an automatic conversion from two-level description to hunspell is described in this paper. previous work and reuse the morphological information. 1. Introduction Two-level morphology (Koskenniemi, 1983; Beesley & Karttunen, 2003) has been applied successfully to the 2. Free software for spelling correction morphological description of highly inflected languages. Unfortunately there are not open source tools for spelling There are two-level based descriptions for very different correction with these features: languages (English, German, Swedish, French, Spanish, • It is standardized in the most of the applications Danish, Norwegian, Finnish, Basque, Russian, Turkish, (OpenOffice, Mozilla, emacs, LaTeX, ...). Arab, Aymara, Swahili, etc.). • It is based on the two-level morphology. After doing the morphological description, it is easy to The spell family of spell checkers (ispell, aspell, myspell) develop a spelling checker/corrector for the language fits the first condition but not the second.
    [Show full text]
  • Easychair Preprint Feedback Learning: Automating the Process
    EasyChair Preprint № 992 Feedback Learning: Automating the Process of Correcting and Completing the Extracted Information Rakshith Bymana Ponnappa, Khurram Azeem Hashmi, Syed Saqib Bukhari and Andreas Dengel EasyChair preprints are intended for rapid dissemination of research results and are integrated with the rest of EasyChair. May 12, 2019 Feedback Learning: Automating the Process of Correcting and Completing the Extracted Information Abstract—In recent years, with the increasing usage of digital handwritten or typed information in the digital mailroom media and advancements in deep learning architectures, most systems. The problem arises when these information extraction of the paper-based documents have been revolutionized into systems cannot extract the exact information due to many digital versions. These advancements have helped the state-of-the- art Optical Character Recognition (OCR) and digital mailroom reasons like the source graphical document itself is not readable, technologies become progressively efficient. Commercially, there scanner has a poor result, characters in the document are too already exists end to end systems which use OCR and digital close to each other resulting in problems like reading “Ouery” mailroom technologies for extracting relevant information from instead of “Query”, “8” instead of ”3”, to name a few. It financial documents such as invoices. However, there is plenty of is even more challenging to correct errors in proper nouns room for improvement in terms of automating and correcting post information extracted errors. This paper describes the like names, addresses and also in numerical values such as user-involved, self-correction concept based on the sequence to telephone number, insurance number and so on.
    [Show full text]
  • Hunspell – the Free Spelling Checker
    Hunspell – The free spelling checker About Hunspell Hunspell is a spell checker and morphological analyzer library and program designed for languages with rich morphology and complex word compounding or character encoding. Hunspell interfaces: Ispell-like terminal interface using Curses library, Ispell pipe interface, OpenOffice.org UNO module. Main features of Hunspell spell checker and morphological analyzer: - Unicode support (affix rules work only with the first 65535 Unicode characters) - Morphological analysis (in custom item and arrangement style) and stemming - Max. 65535 affix classes and twofold affix stripping (for agglutinative languages, like Azeri, Basque, Estonian, Finnish, Hungarian, Turkish, etc.) - Support complex compoundings (for example, Hungarian and German) - Support language specific features (for example, special casing of Azeri and Turkish dotted i, or German sharp s) - Handle conditional affixes, circumfixes, fogemorphemes, forbidden words, pseudoroots and homonyms. - Free software (LGPL, GPL, MPL tri-license) Usage The src/tools dictionary contains ten executables after compiling (or some of them are in the src/win_api): affixcompress: dictionary generation from large (millions of words) vocabularies analyze: example of spell checking, stemming and morphological analysis chmorph: example of automatic morphological generation and conversion example: example of spell checking and suggestion hunspell: main program for spell checking and others (see manual) hunzip: decompressor of hzip format hzip: compressor of
    [Show full text]
  • Sethesaurus: Wordnet in Software Engineering
    This is the author's version of an article that has been published in this journal. Changes were made to this version by the publisher prior to publication. The final version of record is available at http://dx.doi.org/10.1109/TSE.2019.2940439 IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, VOL. 14, NO. 8, AUGUST 2015 1 SEthesaurus: WordNet in Software Engineering Xiang Chen, Member, IEEE, Chunyang Chen, Member, IEEE, Dun Zhang, and Zhenchang Xing, Member, IEEE, Abstract—Informal discussions on social platforms (e.g., Stack Overflow, CodeProject) have accumulated a large body of programming knowledge in the form of natural language text. Natural language process (NLP) techniques can be utilized to harvest this knowledge base for software engineering tasks. However, consistent vocabulary for a concept is essential to make an effective use of these NLP techniques. Unfortunately, the same concepts are often intentionally or accidentally mentioned in many different morphological forms (such as abbreviations, synonyms and misspellings) in informal discussions. Existing techniques to deal with such morphological forms are either designed for general English or mainly resort to domain-specific lexical rules. A thesaurus, which contains software-specific terms and commonly-used morphological forms, is desirable to perform normalization for software engineering text. However, constructing this thesaurus in a manual way is a challenge task. In this paper, we propose an automatic unsupervised approach to build such a thesaurus. In particular, we first identify software-specific terms by utilizing a software-specific corpus (e.g., Stack Overflow) and a general corpus (e.g., Wikipedia). Then we infer morphological forms of software-specific terms by combining distributed word semantics, domain-specific lexical rules and transformations.
    [Show full text]
  • Corpus Based Evaluation of Stemmers
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Repository of the Academy's Library Corpus based evaluation of stemmers Istvan´ Endredy´ Pazm´ any´ Peter´ Catholic University, Faculty of Information Technology and Bionics MTA-PPKE Hungarian Language Technology Research Group 50/a Prater´ Street, 1083 Budapest, Hungary [email protected] Abstract There are many available stemmer modules, and the typical questions are usually: which one should be used, which will help our system and what is its numerical benefit? This article is based on the idea that any corpora with lemmas can be used for stemmer evaluation, not only for lemma quality measurement but for information retrieval quality as well. The sentences of the corpus act as documents (hit items of the retrieval), and its words are the testing queries. This article describes this evaluation method, and gives an up-to-date overview about 10 stemmers for 3 languages with different levels of inflectional morphology. An open source, language independent python tool and a Lucene based stemmer evaluator in java are also provided which can be used for evaluating further languages and stemmers. 1. Introduction 2. Related work Stemmers can be evaluated in several ways. First, their Information retrieval (IR) systems have a common crit- impact on IR performance is measurable by test collec- ical point. It is when the root form of an inflected word tions. The earlier stemmer evaluations (Hull, 1996; Tordai form is determined. This is called stemming. There are and De Rijke, 2006; Halacsy´ and Tron,´ 2007) were based two types of the common base word form: lemma or stem.
    [Show full text]
  • Detecting Politeness in Natural Language by Michael Yeomans, Alejandro Kantor, Dustin Tingley
    CONTRIBUTED RESEARCH ARTICLES 489 The politeness Package: Detecting Politeness in Natural Language by Michael Yeomans, Alejandro Kantor, Dustin Tingley Abstract This package provides tools to extract politeness markers in English natural language. It also allows researchers to easily visualize and quantify politeness between groups of documents. This package combines and extends prior research on the linguistic markers of politeness (Brown and Levinson, 1987; Danescu-Niculescu-Mizil et al., 2013; Voigt et al., 2017). We demonstrate two applications for detecting politeness in natural language during consequential social interactions— distributive negotiations, and speed dating. Introduction Politeness is a universal dimension of human communication (Goffman, 1967; Lakoff, 1973; Brown and Levinson, 1987). In practically all settings, a speaker can choose to be more or less polite to their audience, and this can have consequences for the speakers’ social goals. Politeness is encoded in a discrete and rich set of linguistic markers that modify the information content of an utterance. Sometimes politeness is an act of commission (for example, saying “please” and “thank you”) <and sometimes it is an act of omission (for example, declining to be contradictory). Furthermore, the mapping of politeness markers often varies by culture, by context (work vs. family vs. friends), by a speaker’s characteristics (male vs. female), or the goals (buyer vs. seller). Many branches of social science might be interested in how (and when) people express politeness to one another, as one mechanism by which social co-ordination is achieved. The politeness package is designed to make it easier to detect politeness in English natural language, by quantifying relevant characteristics of polite speech, and comparing them to other data about the speaker.
    [Show full text]
  • Automatic Detection of Anglicisms for the Pronunciation Dictionary Generation: a Case Study on Our German It Corpus
    AUTOMATIC DETECTION OF ANGLICISMS FOR THE PRONUNCIATION DICTIONARY GENERATION: A CASE STUDY ON OUR GERMAN IT CORPUS Sebastian Leidig, Tim Schlippe, Tanja Schultz Cognitive Systems Lab, Karlsruhe Institute of Technology (KIT), Germany ABSTRACT With the globalization more and more words from other lan- guages come into a language without assimilation to the phonetic system of the new language. To economically build up lexical re- sources with automatic or semi-automatic methods, it is important to detect and treat them separately. Due to the strong increase of Anglicisms, especially from the IT domain, we developed features for their automatic detection and collected and annotated a German IT corpus to evaluate them. Furthermore we applied our methods to Afrikaans words from the NCHLT corpus and German words from the news domain. Combining features based on grapheme perplex- ity, grapheme-to-phoneme confidence, Google hits count as well as Fig. 1. Overview of the Anglicism detection system spell-checker dictionary and Wiktionary lookup reaches 75.44% f- score. Producing pronunciations for the words in our German IT corpus based on our methods resulted in 1.6% phoneme error rate We evaluated our features on the two matrix languages German and to reference pronunciations, while applying exclusively German Afrikaans. However, our methods can easily be adapted to new ma- grapheme-to-phoneme rules for all words achieved 5.0%. trix languages. Index Terms— Foreign entity detection, lexical resources, pro- In our scenario we receive single words from texts in the matrix nunciation modeling, Anglicisms language as input. As output we produce a classification between the classes English and native.
    [Show full text]
  • Unsupervised Context-Sensitive Spelling Correction of English and Dutch Clinical Free-Text with Word and Character N-Gram Embeddings
    Unsupervised Context-Sensitive Spelling Correction of English and Dutch Clinical Free-Text with Word and Character N-Gram Embeddings Pieter Fivez [email protected] Simon Šuster [email protected] Walter Daelemans [email protected] CLiPS, University of Antwerp, Prinsstraat 13, 2000 Antwerp, Belgium Abstract We present an unsupervised context-sensitive spelling correction method for clinical free-text that uses word and character n-gram embeddings. Our method generates misspelling replacement candidates and ranks them according to their semantic fit, by calculating a weighted cosine similarity between the vectorized representa- tion of a candidate and the misspelling context. To tune the parameters of this model, we generate self-induced spelling error corpora. We perform our experiments for two languages. For English, we greatly outperform off-the-shelf spelling correction tools on a manually annotated MIMIC-III test set, and counter the frequency bias of a noisy channel model, showing that neural embeddings can be successfully exploited to improve upon the state-of-the-art. For Dutch, we also outperform an off-the-shelf spelling correction tool on manually annotated clinical records from the Antwerp University Hospital, but can offer no empirical evidence that our method counters the frequency bias of a noisy channel model in this case as well. However, both our context-sensitive model and our implementation of the noisy channel model obtain high scores on the test set, establishing a state-of-the-art for Dutch clinical spelling correction with the noisy channel model.1 1. Introduction The problem of automated spelling correction has a long history, dating back to the late 1950s.2 Tradi- tionally, spelling errors are divided into two categories: non-word misspellings, the most prevalent type of misspellings, where the error leads to a nonexistent word, and real-word misspellings, where the error leads to an existing word, either caused by a typo (e.g.
    [Show full text]