ACL-OCL / Base_JSON /prefixA /json /acl /2020.acl-demos.23.json
Benjamin Aw
Add updated pkl file v3
6fa4bc9
{
"paper_id": "2020",
"header": {
"generated_with": "S2ORC 1.0.0",
"date_generated": "2023-01-19T01:39:01.634527Z"
},
"title": "Nakdan: Professional Hebrew Diacritizer",
"authors": [
{
"first": "Avi",
"middle": [],
"last": "Shmidman",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "Bar Ilan University / Ramat Gan",
"location": {
"country": "Israel, Israel"
}
},
"email": "avi.shmidman@biu.ac.il"
},
{
"first": "Shaltiel",
"middle": [],
"last": "Shmidman",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "Bar Ilan University / Ramat Gan",
"location": {
"country": "Israel, Israel"
}
},
"email": ""
},
{
"first": "Moshe",
"middle": [],
"last": "Koppel",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "Bar Ilan University / Ramat Gan",
"location": {
"country": "Israel, Israel"
}
},
"email": ""
},
{
"first": "Yoav",
"middle": [],
"last": "Goldberg",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "Bar Ilan University / Ramat Gan",
"location": {
"country": "Israel, Israel"
}
},
"email": ""
}
],
"year": "",
"venue": null,
"identifiers": {},
"abstract": "We present a system for automatic diacritization of Hebrew text. The system combines modern neural models with carefully curated declarative linguistic knowledge and comprehensive manually constructed tables and dictionaries. Besides providing state of the art diacritization accuracy, the system also supports an interface for manual editing and correction of the automatic output, and has several features which make it particularly useful for preparation of scientific editions of Hebrew texts. The system supports Modern Hebrew, Rabbinic Hebrew and Poetic Hebrew. The system is freely accessible for all use at http://nakdanpro.dicta.org.il.",
"pdf_parse": {
"paper_id": "2020",
"_pdf_hash": "",
"abstract": [
{
"text": "We present a system for automatic diacritization of Hebrew text. The system combines modern neural models with carefully curated declarative linguistic knowledge and comprehensive manually constructed tables and dictionaries. Besides providing state of the art diacritization accuracy, the system also supports an interface for manual editing and correction of the automatic output, and has several features which make it particularly useful for preparation of scientific editions of Hebrew texts. The system supports Modern Hebrew, Rabbinic Hebrew and Poetic Hebrew. The system is freely accessible for all use at http://nakdanpro.dicta.org.il.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Abstract",
"sec_num": null
}
],
"body_text": [
{
"text": "We present a web-based system for diacritization of Hebrew text, which caters to both casual and expert users. The diacritization engine driving the system combines manually curated linguistic resources with modern machine learning models.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "Diacritization In Hebrew writing, the letters are almost entirely consonantal; the vowels are indicated by diacritic marks, generally positioned underneath the letters. However, in most cases, printed Hebrew omits the diacritic marks and includes only the letters, resulting in a highly ambiguous text, in which any given non-diacritized word can represent a host of different Hebrew words, each with a different meaning and pronunciation. For example, the form \u202b\u05d1\u05e6\u05dc\u202c can be diacritized as \u202b\u05b8\u05dc\u202c \u202b\u05b8\u05e6\u202c \u202b\ufb31\u202c (noun, \"onion\"), \u202b\u05b5\u05dc\u202c \u202b\u05b0\u05e6\u202c \u202b\ufb31\u202c (prefix+noun, \"in a shadow\"), \u202b\u05b5\u05dc\u202c \u202b\u05b7\ufb46\u202c \u202b\ufb31\u202c (prefix+definitive+noun, \"in the shadow\") and others. The task of diacritization is thus a task of disambiguation: choosing from among the valid word possibilities for each nondiacritized word, and then adding in the diacritic marks accordingly. The multiple possibilities for diacritizing any given word often represent different morphological possibilities. Thus, to an extent, choosing the correct diacritization entails morphological disambiguation; conversely, prior morphological disambiguation greatly reduces the total possible diacritization possibilities.We provide further details in \u00a72.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "Hybrid Neural and Rule-based Approach Our approach, described in \u00a73, uses several bi-LSTMbased deep-learning modules for disambiguating the correct diacritization in context. However, it is also supplemented by comprehensive inflection tables and lexicons, when appropriate.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "Web Interface We provide a web interface for the user to input a text for diacritization and refine the resulting diacritized text (Figure 1 ). Our system parses the text and automatically adds diacritics throughout. Afterward, the user can proofread the text in the interface. For each word, all alternate diacritization possibilities are provided for immediate selection, ordered according to their predicted probability. Keyboard shortcuts allow efficient navigation of the text and fast selection of alternate options. Users can choose to see morphological analyses for each of the diacritization options, to assist in distinguishing between options.",
"cite_spans": [],
"ref_spans": [
{
"start": 131,
"end": 140,
"text": "(Figure 1",
"ref_id": "FIGREF0"
}
],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "We aim to provide a tool that is useful to casual users and language enthusiasts, but also to experts and professionals who may use it to set scientific editions of historical Hebrew texts. This latter requirement poses several challenges: handling of editorial sigla interspersed within the words; flexible handling of matres lectionis (letters which function as semivowels); and dealing with the orthography of medieval Hebrew, which often diverges widely from that of Modern Hebrew. Our tool meets scholarly requirements on all these fronts, as detailed in \u00a78. The main web interface of our diacritization tool, showing the automatic diacritized text (A) and allowing the user to proofread and potentially correct the text. The user can navigate the words using the mouse or the left/right keys, and can select an alternate diacritization option from the listbox on the left (B) using either the mouse or the up/down keys. Changes for a given word can be marked for application over the entire text (C), and are marked in color (not shown in this example). The user can also choose to see the morphological analysis of each form (D). The resulting diacritized text can be exported to various formats (E).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Diacritics in Scientific Editions",
"sec_num": null
},
{
"text": "The diacritics system of modern Hebrew marks vowels and gemination, and includes 12 primary diacritic symbols:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "The Hebrew Diacritics System",
"sec_num": "2"
},
{
"text": "Additionally, a dot in the middle of a letter indicates gemination. For the case of the 'shin' letter, an upper dot distinguishes between pronunciation as 's' or as 'sh'. Diacritized Hebrew aims to position a diacritic on every single letter of the word, with the exception of final letters and matres lectionis.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "The Hebrew Diacritics System",
"sec_num": "2"
},
{
"text": "Ambiguity In our tests, knowing the correct diacritics reduces the full-morphological-analysis ambiguity from 9.1 to 2.4 average analyses per word form, while knowing the full-morphologicalanalysis reduces the diacritization ambiguity from 6.2 to 1.4 average options per word form. Note that these numbers reflect fine-grained morphological tagging. If we utilize coarse-grained tagging, sufficing with the part of speech for each word, then knowing the correct diacritization reduces the average morphological ambiguity from 3.2 options to 1.97, while knowing the correct POS tag reduces the average diacritization ambiguity from 6.2 options to 2.75. Thus, the need for an automated diacritization utility is particularly crucial in order to properly disambiguate a Hebrew text.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "The Hebrew Diacritics System",
"sec_num": "2"
},
{
"text": "Recent trends in NLP suggest moving towards machine-learned models that automatically learn to extract the regularities in the data. Such approaches have also been applied to diacritization of Arabic (Belinkov and Glass, 2015; Rashwan et al., 2015; Abandah et al., 2015; Mubarak et al., 2019) . However, while these generally provide very strong results, they also often make mistakes that contradict our prior knowledge of the linguistic system. While the machine-learned models generalize very well and can learn to perform tasks in which humans cannot articulate the underlying regularities, there are also many cases that language-experts can articulate precisely, and these tend to correlate with the cases that the learned models fail on.",
"cite_spans": [
{
"start": 200,
"end": 226,
"text": "(Belinkov and Glass, 2015;",
"ref_id": "BIBREF2"
},
{
"start": 227,
"end": 248,
"text": "Rashwan et al., 2015;",
"ref_id": "BIBREF9"
},
{
"start": 249,
"end": 270,
"text": "Abandah et al., 2015;",
"ref_id": "BIBREF0"
},
{
"start": 271,
"end": 292,
"text": "Mubarak et al., 2019)",
"ref_id": "BIBREF8"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Approach",
"sec_num": "3"
},
{
"text": "We therefore take a hybrid approach. Similar to traditional diacritization systems (Choueka and Neeman, 1995) , we use our explicit knowledge about the language and the diacritization system whenever we can. However, we also supplement our knowledge with learned model predictions for the challenging cases for which we cannot articulate the rules and regularities: selecting the appropriate diacritization in context, and providing diacritization for out-of-vocabulary words. This methodology departs from recent diacritization works that rely on HMM and neural-network methods (Gal, 2002; Belinkov and Glass, 2015) , while ignoring forms of explicit linguistic knowledge.",
"cite_spans": [
{
"start": 83,
"end": 109,
"text": "(Choueka and Neeman, 1995)",
"ref_id": "BIBREF3"
},
{
"start": 579,
"end": 590,
"text": "(Gal, 2002;",
"ref_id": "BIBREF5"
},
{
"start": 591,
"end": 616,
"text": "Belinkov and Glass, 2015)",
"ref_id": "BIBREF2"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Approach",
"sec_num": "3"
},
{
"text": "We use such a combination of machine-learned and human-specified knowledge in all the components of the system, either by supplementing the predictor with manually constructed options, or by filtering its output space.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Approach",
"sec_num": "3"
},
{
"text": "Of course, a prerequisite for an effective machine-learned system is high-quality training data. Our system is trained on a collection of 1,5M diacritized tokens which we annotated in-house.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Approach",
"sec_num": "3"
},
{
"text": "We make use of the following language resources and corpora, which we collected.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "High-quality Data Sources",
"sec_num": "4"
},
{
"text": "Language Resources Our main resource is a high-coverage and accurate lexicon of Hebrew word forms, their diacritization and their corresponding morphological analyses. Employing a staff of language experts, we began by assembling a list of all nouns, adjectives and verbal roots in the Hebrew language. This list includes 50K lexemes altogether (10K roots, 30,5K nouns, and 9,5K adjectives). We then built comprehensive inflection tables to generate all possible inflected forms from each of these lexemes, including all valid combinations of possessive and accusative suffixes, with full diacritization. Altogether, this process generated some 5,5 million inflected forms (3,8M verbal forms; 1,3M nominal forms; and 460K adjectival forms). We also added 1,7K adverbs, and another 4,5K function words (conjunctions, prepositions, existentials, quantifiers, etc., including all possible suffix combinations). Finally, we collected a set of 17,5K frequent proper nouns (countries and major cities; heads of state and other notable people; and frequently-mentioned companies and organizations), and our language experts diacritized these as well. These tables suffice for modern Hebrew; however, in historical Hebrew texts, we often find Aramaic terms interspersed within the Hebrew. Therefore, we also built a similarly comprehensive and diacritized wordlist for Babylonian Aramaic. Our Aramaic wordlist contains 750K verbal inflected forms; 200K nominals; 1,5K adjectives; and another 2K adverbs and function words. We additionally assembled an exhaustive list of nondiacritized Hebrew names of persons and locations (including collections of both street names and city names).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "High-quality Data Sources",
"sec_num": "4"
},
{
"text": "Annotated Corpora For morphological tagging, we make use of a corpus of 200K tokens of modern Hebrew, composed of Hebrew fiction, news, wikipedia, and blogs. These tokens were manually annotated with fine-grained morphological information according to the scheme of (Elhadad et al., 2005) . Additionally, as noted, we anno-tated a 1,5M word diacritized modern Hebrew corpus, consisting of Hebrew prose (both fiction and non-fiction), newspapers (both news and op-ed), wikipedia, blogs (including many female-dominant blogs, to ensure coverage of feminine word forms), law protocols, Parliament proceedings, TV transcripts, academic texts, and biographical sketches. We have similarly collected and annotated corpora of historical Hebrew, consisting of Jewish legal writings and commentaries from the 3rd-12th centuries: 110K words with fine-grained morphological tagging, and 2M words with diacritization. Finally, regarding poetic Hebrew, we collected and annotated a corpus of 1,3M words, containing Hebrew poetry from both medieval and modern periods.",
"cite_spans": [
{
"start": 266,
"end": 288,
"text": "(Elhadad et al., 2005)",
"ref_id": "BIBREF4"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "High-quality Data Sources",
"sec_num": "4"
},
{
"text": "The undiacritized base texts were collected largely through partnerships with cooperating organizations in Israel; the morphological tagging and diacritization was done primarily in-house by our Hebrew language experts.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "High-quality Data Sources",
"sec_num": "4"
},
{
"text": "On a high level, our system works in the following stages, which we will elaborate on below. Each stage combines engineered linguistic information and a trained neural model.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "System Architecture",
"sec_num": "5"
},
{
"text": "tion.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "2. Filtering the possible diacritization analyses based on high coverage accurate tables and the output of stage (1).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "3. Ranking the possible diacritizations for each word, in context.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "Part-of-speech tagging and morphological disambiguation As diacritic marks closely interact with the morphological analysis and part-of-speech (POS) of the token, we first perform POS-tagging and morphological disambiguation, using a twostage process. In the first stage, each word is assigned its core part-of-speech, and in the second stage it is enriched with additional morphological properties, where the set of considered morphological properties is determined based on the coarsegrained POS (e.g., nouns take gender, number and definiteness, while verbs do not take definiteness but do take tense and person). 1",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "Training is performed on our annotated corpus of 200K tokens. The resulting tagger has an accuracy of 92% for the coarse-grained part-of-speech, and 79% for full morphological disambiguation. 2 Both taggers are 2-layer bi-LSTM transducers (Goldberg, 2017) , where the first stage coarsegrained tagger maps each token w i to a coarse POS-tag t i , while the second stage morphological tagger adds additional morphological properties m 1 i , ..., m k i . Each bi-LSTM takes as inputs vectors x 1 , ..., x n corresponding to tokens w 1 , ..., w n and produces vectors h(x 1 ), ..., h(x n ). These vectors are then fed into multi-layer perceptrons (MLP) for predicting the POS-tags and morphological properties, where each property is predicted by a different MLP:",
"cite_spans": [
{
"start": 192,
"end": 193,
"text": "2",
"ref_id": null
},
{
"start": 239,
"end": 255,
"text": "(Goldberg, 2017)",
"ref_id": "BIBREF6"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "t i = arg max j softmax(M LP pos (h(x i )) [j] m k i = arg max j softmax(M LP m k (h(x i )) [j]",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "The set of MLPs m k i for a word is determined based on its predicted coarse-grained POS-tag.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "In the coarse-grained tagger, each token w i is mapped to an input vector x i which encodes character level information, distributional word-level information, possible morphological analyses of w i , 3 and lexicon-based features of w i . Specifically, x i is a concatenation of: (a) for a word w i made of characters c w i 1 , ..., c w i m the sum of bi-LSTM states j h(c w i j ) from a char-level bi-LSTM that runs over the entire sentence; (b) bi-LSTM state at w i , for a word-level bi-LSTM that runs on pretrained word2vec vectors for all of the words in the sentence; (c) a vector representing the possible fine-grained morphological analyses for the word, 4 according to our wide-coverage lexicon; (d) bits",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "Interrogative, Interj, Quantifier, Existential, Modal, Prefix, Participle, Copula, Titular, Shel Prep, and the following morphological properties: Gender, Number, Person, Construct/Absolute, Suffix (possessive / accusative / pronominal).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "2 While these numbers may seem low, we note that they are (a) on-par with other Hebrew systems (Adler and Elhadad, 2006; More and Tsarfaty, 2016) and (b) are only intended to support the diacritization process, where we find they do well. 3 We find that providing the coarse-grained tagger with information about possible fine-grained analyses of neighbouring words helps to disambiguate cases where a given word can be resolved as more than one POS. For instance, a given word may be resolvable as a noun or adjective; however, if the adjective possibility involves a feminine conjugation, and the preceding noun is a masculine noun, then the probability of the adjectival POS is severely reduced. 4 We assign trainable embeddings of 3-5 dimensions to each morphological category (gender, number, person, etc.), and we concatenate these together to form the input vector.",
"cite_spans": [
{
"start": 95,
"end": 120,
"text": "(Adler and Elhadad, 2006;",
"ref_id": "BIBREF1"
},
{
"start": 121,
"end": 145,
"text": "More and Tsarfaty, 2016)",
"ref_id": "BIBREF7"
},
{
"start": 239,
"end": 240,
"text": "3",
"ref_id": null
},
{
"start": 699,
"end": 700,
"text": "4",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "indicating whether w i is in our comprehensive list of proper-nouns (names of streets, cities and people), and whether it is in our wide-coverage lexicon at all (the latter is used to mark rare and unknown words). In the fine-grained tagger, x i is a concatenation of vector (b) above and: for a word w i where the predicted POS tag is t i , and the possible finegrained morphological analyses for w i limited by t i is represented by m i , the bi-LSTM state for a bi-LSTM that runs on the concatenation of (t i ;m i ). Significantly, note that in the fine-grained tagger, x i does not include the information of the word form on the character-level. We find this to be more accurate, because it removes bias in cases where a specific character form happens to appear in the training corpus in only one configuration. This is particularly relevant regarding verbs which can be resolved as either a masculine or a feminine verb, each with a distinct diacritization. In many cases, the training corpus contains the verb only in one stereotypical gender configuration. By hiding the character-level information, we force the system to make a more logical morphological determination, because it is not able to mechanically set the feature equal to what was seen in the training corpus.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "Constraints The tagger predictions are constrained by a wide-coverage lexicon that maps word forms to their possible morphological analyses. When a word is not in the lexicon, we allow all POS-tags for the word. We also apply additional filters to rule out POS-tags for words that participate in a hand-crafted list of about 10K word collocations, and in all of their possible inflected forms (e.g., in the context of the tokens ( \u202b\u05de\u05e8\u05e7\u05d7\u05ea\u202c \u202b)\u05d1\u05d9\u05ea\u202c byt mrk\u0125t, the word \u202b\u05d1\u05d9\u05ea\u202c byt should not be tagged as the absolute form \u202b\u05ea\u202c \u202b\u05b7\u05d9\u202c \u202b\ufb31\u202c bayit, but rather as the construct form \u202b\u05b5\u05d9\u05ea\u202c \u202b\ufb31\u202c beyt. And thus too for the plural inflection of the same collocation -\u202b\u05de\u05e8\u05e7\u05d7\u05ea\u202c \u202b\u05d1\u05ea\u05d9\u202c bty mrk\u0125t, the word \u202b\u05d1\u05ea\u05d9\u202c bty should not be tagged as \u202b\u05b4\u05d9\u202c \u202b\u05b4\ufb4a\u202c \u202b\ufb31\u202c byty (feminine noun with possessive suffix), but rather as the plural-construct form \u202b\u05b5\u05d9\u202c \u202b\u05b8\ufb4a\u202c \u202b\ufb31\u202c batey).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "Filtering For each word w i in the text, we retrieve from our wordlists (see \u00a74) a set of possible diacritizations D i = d i 1 , ..., d i and their corresponding morphological analyses. This set is then further refined by intersecting it with the predicted morphological analysis for the word. Words that are not in our list get an empty set, indicating that their diacritization is not constrained. This stage leaves us with an average of 1.2 diacritic sequences for each known word. If we were to perform random selection from this list, we would achieve 87.1% exact-match word-level diacritization accuracy on our Modern Hebrew test corpus.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "Diacritization Ranking Finally, we run an LSTM-based diacritization module to rank the possible diacritization sequences from the previous stage, and to assign diacritics to unknown words.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "The LSTM-based module assigns a diacritic mark for each character in the sequence. 5 The diacritics for each word w i are predicted separately, using beam-search over the predictions of the diacritic for each letter with the word, to ensure wordlevel consistency. For known words, the beamsearch is constrained to valid diacritic predictions from the set D i , while for unknown words it is unconstrained. Note that when predicting the diacritics for a letter c w i j in token w i the model is aware of the other diacritic assignments in that word, but not of diacritic assignments for the other words of the sentence. However, the model is context-aware, as it considers the character-level and word-level information from the entire sentence via a sentencelevel bi-LSTM layer.",
"cite_spans": [
{
"start": 83,
"end": 84,
"text": "5",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "To be more precise, each letter c w i j is mapped to a vector h (c w i j ) which is a concatenation of the followings two items: (a) bi-LSTM state at c w i j for a char-level bi-LSTM that runs over the entire sentence; (b) bi-LSTM state at w i for a word-level bi-LSTM that runs on the pre-trained word2vec vectors for all words in the sentence. Then, for a given word w i we have a list of vectors representing each letter h (c w i 1 )...h (c w i m ). We then predict the diacritization sequence as follows. If this is a known word, then we have a list of k possible diacritization sequences, and we choose the one with the highest score:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "s = arg max k score(c w i 1:m , t k 1:m )",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "where t k 1:m is the kth diacritic sequence, and score(c w i 1:m , t k 1:m ) is calculated as:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "m j=1 M LP (h (c w i j ); LST M (t k 0:j\u22121 )) [t j ]",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "For unknown words, we run beam-search with k = 8 to predict the k most likely diacritization sequences, and we choose the top beam-ray. 5 Combinations of gemination with an additional diacritic mark are considered distinct diacritic symbols for prediction. An independent MLP predicts the position of the upper dot for the 'shin' character. ",
"cite_spans": [
{
"start": 136,
"end": 137,
"text": "5",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "POS-tagging and morphological disambigua-",
"sec_num": "1."
},
{
"text": "We evaluate the system quantitatively against two commercial Hebrew diacritization systems, Morfix 6 and Snopi 7 , considered state-of-the-art. We also provide qualitative evaluation, demonstrating the ability to diacritize unknown words, and to produce context-sensitive diacritization.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Evaluation",
"sec_num": "6"
},
{
"text": "Quantitative Evaluation We use two quantitative measures to evaluate our model. (1) Word-level accuracy: for a given word 8 , we consider the prediction correct if and only if all the diacritic marks on the word are correct, including gemination and the 'shin' dot, with all matres lectionis removed. 2Character-level accuracy: For each Hebrew letter in the input text we check if the model predicted the correct set of diacritic marks for the letter (and, for matres lectionis, we check that the model predicted their removal).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Evaluation",
"sec_num": "6"
},
{
"text": "We evaluated the system on a 6,000-word unseen gold-test corpus, manually diacritized by a professional linguist (Table 1) . The corpus consists of a random selection of Hebrew wiki articles. We have made the test corpus publicly available. 9",
"cite_spans": [],
"ref_spans": [
{
"start": 113,
"end": 122,
"text": "(Table 1)",
"ref_id": "TABREF1"
}
],
"eq_spans": [],
"section": "Evaluation",
"sec_num": "6"
},
{
"text": "Qualitative Evaluation For the qualitative evaluation, we demonstrate that the system knows how to handle diacritization for unknown words, and this, in a context-sensitive manner. For this example we choose an invalid word which conforms to Hebrew letter patterns but which does not actually exist in modern Hebrew: \u202b.\u05e1\u05e8\u05d3\u05d9\u05e0\u05d5\u05ea\u202c No such word exists in Hebrew dictionaries, nor in our wordlist. We put the word into a sentence in two contexts -in the first, it fills the role of an adverb, and in the second, it fills the role of a noun. Hebrew diacritization norms would dictate two different diacritizations for these two usages: for the adverb, the final vowel should be 'u', while for the noun, it should be 'o'. Our system handles both correctly (Figure 2 ). In addition to modern Hebrew, we also support Rabbinic Hebrew and poetic Hebrew. These genres require specialized handling. Firstly, we cannot use our modern Hebrew morphology model, because the morphological and syntactic norms of these genres differ from those of modern Hebrew. Secondly, we cannot use our modern Hebrew wordlist filters. There is no standardized orthography for Rabbinic Hebrew, nor for medieval poetic Hebrew. Additionally, poets often specifically choose less common words in order to meet prosodic constraints; thus, our rare-word filters are not relevant. Finally, many words which would be considered invalid in modern Hebrew are found within these other genres. Rabbinic Hebrew includes many Aramaic words, as well as Hebrew words with Aramaic prefixes. Poetic Hebrew includes oddities such as past-tense verbs with temporal prefixes. For Rabbinic Hebrew, we train a specialized morphology model based on our tagged historical Hebrew corpus. For poetry, where morphological sequences are less constrained and less predictable, we skip the morphology layer and diacritize the text directly based on the diacritization LSTM.",
"cite_spans": [],
"ref_spans": [
{
"start": 749,
"end": 758,
"text": "(Figure 2",
"ref_id": "FIGREF1"
}
],
"eq_spans": [],
"section": "Evaluation",
"sec_num": "6"
},
{
"text": "In order to test our performance, we created test corpora for each of the genres. The poetry test corpus includes a set of liturgical poems of the 'yotzer' genre, transcribed from Cairo Genizah manuscripts. 10 The Rabbinic Hebrew test corpus is taken from the 'Bet Yosef', a 16th century commentary on Jewish law. 11 In Tables 2 and 3 we display our quantitative results on these two corpora. For instance, letters which are rubbed out in the textual witnesses will be supplied within brackets ( \u202b[\u05e9\u202c \u202b]\u05e8\u202c \u202b.)\u05de\u05d3\u202c Existing diacritization tools fail here because they parse such sigla as word separators. Secondly, normative Hebrew diacritization entails the omission of matres lectionis, and indeed existing tools omit these letters when returning the diacritized text. However, in scientific editions, matres lectionis must be maintained in order to represent the manuscript evidence. Finally, the orthography of medieval Hebrew manuscripts can diverge wildly from modern norms; for example, we often find a yod inserted after the initial letter of a hitpael construction (e.g. \u202b,)\u05d4\u05d9\u05ea\u05dc\u05d1\u05e9\u202c a phenomenon which would never occur in a modern Hebrew text.",
"cite_spans": [
{
"start": 207,
"end": 209,
"text": "10",
"ref_id": null
},
{
"start": 314,
"end": 316,
"text": "11",
"ref_id": null
}
],
"ref_spans": [
{
"start": 320,
"end": 334,
"text": "Tables 2 and 3",
"ref_id": "TABREF3"
}
],
"eq_spans": [],
"section": "Evaluation",
"sec_num": "6"
},
{
"text": "Our tool meets all of these needs, and allows the user to either remove or maintain matres lectionis.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Evaluation",
"sec_num": "6"
},
{
"text": "2. The web interface automatically highlights Biblical quotes within the Hebrew text. Biblical phrases are often incorporated into Hebrew texts, whether as explicit prooftexts or as rhetorical flourishes. We automatically identify such quotes, diacritize them according to the canonized diacritization of the Hebrew Bible, and display them in the distinctive Koren font (a font well-known for its use in modern Hebrew Bibles). See figure 3 for an example. ",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Evaluation",
"sec_num": "6"
},
{
"text": "We are pleased to release our Hebrew diacritization system for free unrestricted use. It is powered by a combination of advanced machine learning and manually curated linguistic resources, and thus succeeds in setting a new state of the art for Hebrew diacritization. We have released also our diacritized test corpora for benchmarking.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "9"
},
{
"text": "We consider the following POS-tags: Adj, Adv,Conj, At Prep, Neg, Noun, Num, Prep, Pron, ProperNoun, Verb,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
},
{
"text": "https://nakdan.morfix.co.il/ 7 http://www.nakdan.com/ 8 For this calculation, punctuation and non-Hebrew words or symbols are ignored.9 The test corpus can be downloaded at this link: http: //tiny.cc/hebrew-test-git",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
},
{
"text": "Full data on these texts is available here: http:// weekdayyotzrot.com11 Both test corpora are available for download here: http: //tiny.cc/hebrew-test-git",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
}
],
"back_matter": [],
"bib_entries": {
"BIBREF0": {
"ref_id": "b0",
"title": "Automatic diacritization of arabic text using recurrent neural networks",
"authors": [
{
"first": "Gheith",
"middle": [],
"last": "Abandah",
"suffix": ""
},
{
"first": "Alex",
"middle": [],
"last": "Graves",
"suffix": ""
},
{
"first": "Balkees",
"middle": [],
"last": "Al-Shagoor",
"suffix": ""
},
{
"first": "Alaa",
"middle": [],
"last": "Arabiyat",
"suffix": ""
},
{
"first": "Fuad",
"middle": [],
"last": "Jamour",
"suffix": ""
},
{
"first": "Majid",
"middle": [],
"last": "Al-Taee",
"suffix": ""
}
],
"year": 2015,
"venue": "International Journal on Document Analysis and Recognition (IJDAR)",
"volume": "18",
"issue": "",
"pages": "183--197",
"other_ids": {
"DOI": [
"10.1007/s10032-015-0242-2"
]
},
"num": null,
"urls": [],
"raw_text": "Gheith Abandah, Alex Graves, Balkees Al-Shagoor, Alaa Arabiyat, Fuad Jamour, and Majid Al-Taee. 2015. Automatic diacritization of arabic text us- ing recurrent neural networks. International Jour- nal on Document Analysis and Recognition (IJDAR), 18:183-197.",
"links": null
},
"BIBREF1": {
"ref_id": "b1",
"title": "An unsupervised morpheme-based HMM for hebrew morphological disambiguation",
"authors": [
{
"first": "Meni",
"middle": [],
"last": "Adler",
"suffix": ""
},
{
"first": "Michael",
"middle": [],
"last": "Elhadad",
"suffix": ""
}
],
"year": 2006,
"venue": "ACL 2006, 21st International Conference on Computational Linguistics and 44th Annual Meeting of the Association for Computational Linguistics, Proceedings of the Conference",
"volume": "",
"issue": "",
"pages": "17--21",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Meni Adler and Michael Elhadad. 2006. An unsuper- vised morpheme-based HMM for hebrew morpho- logical disambiguation. In ACL 2006, 21st Interna- tional Conference on Computational Linguistics and 44th Annual Meeting of the Association for Compu- tational Linguistics, Proceedings of the Conference, Sydney, Australia, 17-21 July 2006.",
"links": null
},
"BIBREF2": {
"ref_id": "b2",
"title": "Arabic diacritization with recurrent neural networks",
"authors": [
{
"first": "Yonatan",
"middle": [],
"last": "Belinkov",
"suffix": ""
},
{
"first": "James",
"middle": [
"R"
],
"last": "Glass",
"suffix": ""
}
],
"year": 2015,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Yonatan Belinkov and James R. Glass. 2015. Ara- bic diacritization with recurrent neural networks. In EMNLP.",
"links": null
},
"BIBREF3": {
"ref_id": "b3",
"title": "Nakdantext,(an in-context text-vocalizer for modern hebrew)",
"authors": [
{
"first": "Yaacov",
"middle": [],
"last": "Choueka",
"suffix": ""
},
{
"first": "Yoni",
"middle": [],
"last": "Neeman",
"suffix": ""
}
],
"year": 1995,
"venue": "BISFAI-95, The Fifth Bar Ilan Symposium for Artificial Intelligence",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Yaacov Choueka and Yoni Neeman. 1995. Nakdan- text,(an in-context text-vocalizer for modern he- brew). In BISFAI-95, The Fifth Bar Ilan Symposium for Artificial Intelligence.",
"links": null
},
"BIBREF4": {
"ref_id": "b4",
"title": "Hebrew morphological tagging guidelines",
"authors": [
{
"first": "Michael",
"middle": [],
"last": "Elhadad",
"suffix": ""
},
{
"first": "Yael",
"middle": [],
"last": "Netzer",
"suffix": ""
},
{
"first": "David",
"middle": [],
"last": "Gabay",
"suffix": ""
},
{
"first": "Meni",
"middle": [],
"last": "Adler",
"suffix": ""
}
],
"year": 2005,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Michael Elhadad, Yael Netzer, David Gabay, and Meni Adler. 2005. Hebrew morphological tagging guide- lines. Technical report, Technical report, Ben- Gurion University, Dept. of Computer Science.",
"links": null
},
"BIBREF5": {
"ref_id": "b5",
"title": "An hmm approach to vowel restoration in arabic and hebrew",
"authors": [
{
"first": "",
"middle": [],
"last": "Ya",
"suffix": ""
}
],
"year": 2002,
"venue": "Proceedings of the ACL-02 workshop on Computational approaches to semitic languages",
"volume": "",
"issue": "",
"pages": "1--7",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Ya'akov Gal. 2002. An hmm approach to vowel restoration in arabic and hebrew. In Proceedings of the ACL-02 workshop on Computational approaches to semitic languages, pages 1-7. Association for Computational Linguistics.",
"links": null
},
"BIBREF6": {
"ref_id": "b6",
"title": "Neural network methods for natural language processing",
"authors": [
{
"first": "Yoav",
"middle": [],
"last": "Goldberg",
"suffix": ""
}
],
"year": 2017,
"venue": "Synthesis Lectures on Human Language Technologies",
"volume": "10",
"issue": "1",
"pages": "1--309",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Yoav Goldberg. 2017. Neural network methods for nat- ural language processing. Synthesis Lectures on Hu- man Language Technologies, 10(1):1-309.",
"links": null
},
"BIBREF7": {
"ref_id": "b7",
"title": "Data-driven morphological analysis and disambiguation for morphologically rich languages and universal dependencies",
"authors": [
{
"first": "Amir",
"middle": [],
"last": "More",
"suffix": ""
},
{
"first": "Reut",
"middle": [],
"last": "Tsarfaty",
"suffix": ""
}
],
"year": 2016,
"venue": "Proceedings of COLING",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Amir More and Reut Tsarfaty. 2016. Data-driven mor- phological analysis and disambiguation for morpho- logically rich languages and universal dependencies. In Proceedings of COLING 2016.",
"links": null
},
"BIBREF8": {
"ref_id": "b8",
"title": "Highly effective Arabic diacritization using sequence to sequence modeling",
"authors": [
{
"first": "Hamdy",
"middle": [],
"last": "Mubarak",
"suffix": ""
},
{
"first": "Ahmed",
"middle": [],
"last": "Abdelali",
"suffix": ""
},
{
"first": "Hassan",
"middle": [],
"last": "Sajjad",
"suffix": ""
},
{
"first": "Younes",
"middle": [],
"last": "Samih",
"suffix": ""
},
{
"first": "Kareem",
"middle": [],
"last": "Darwish",
"suffix": ""
}
],
"year": 2019,
"venue": "Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
"volume": "1",
"issue": "",
"pages": "2390--2395",
"other_ids": {
"DOI": [
"10.18653/v1/N19-1248"
]
},
"num": null,
"urls": [],
"raw_text": "Hamdy Mubarak, Ahmed Abdelali, Hassan Sajjad, Younes Samih, and Kareem Darwish. 2019. Highly effective Arabic diacritization using sequence to se- quence modeling. In Proceedings of the 2019 Con- ference of the North American Chapter of the Asso- ciation for Computational Linguistics: Human Lan- guage Technologies, Volume 1 (Long and Short Pa- pers), pages 2390-2395, Minneapolis, Minnesota. Association for Computational Linguistics.",
"links": null
},
"BIBREF9": {
"ref_id": "b9",
"title": "Deep learning framework with confused sub-set resolution architecture for automatic arabic diacritization",
"authors": [
{
"first": "Mohsen",
"middle": [],
"last": "Rashwan",
"suffix": ""
},
{
"first": "Ahmad",
"middle": [],
"last": "Sallab",
"suffix": ""
},
{
"first": "Hazem",
"middle": [],
"last": "Raafat",
"suffix": ""
},
{
"first": "Ahmed",
"middle": [],
"last": "Rafea",
"suffix": ""
}
],
"year": 2015,
"venue": "IEEE Transactions on Audio Speech and Language Processing",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {
"DOI": [
"10.1109/TASLP.2015.2395255"
]
},
"num": null,
"urls": [],
"raw_text": "Mohsen Rashwan, Ahmad Sallab, Hazem Raafat, and Ahmed Rafea. 2015. Deep learning framework with confused sub-set resolution architecture for auto- matic arabic diacritization. IEEE Transactions on Audio Speech and Language Processing, 23.",
"links": null
}
},
"ref_entries": {
"FIGREF0": {
"num": null,
"text": "Figure 1: The main web interface of our diacritization tool, showing the automatic diacritized text (A) and allowing the user to proofread and potentially correct the text. The user can navigate the words using the mouse or the left/right keys, and can select an alternate diacritization option from the listbox on the left (B) using either the mouse or the up/down keys. Changes for a given word can be marked for application over the entire text (C), and are marked in color (not shown in this example). The user can also choose to see the morphological analysis of each form (D). The resulting diacritized text can be exported to various formats (E).",
"type_str": "figure",
"uris": null
},
"FIGREF1": {
"num": null,
"text": "Diacritization of the fictional word \u202b\u05e1\u05e8\u05d3\u05d9\u05e0\u05d5\u05ea\u202c in two different contexts, with two different prefixes; the word is diacritized as expected in both contexts.",
"type_str": "figure",
"uris": null
},
"FIGREF2": {
"num": null,
"text": "Integrated Biblical quote marked with font.",
"type_str": "figure",
"uris": null
},
"TABREF1": {
"content": "<table/>",
"text": "Accuracy on Modern Hebrew Test Corpus",
"num": null,
"html": null,
"type_str": "table"
},
"TABREF3": {
"content": "<table><tr><td>7 Additional Text Genres</td></tr></table>",
"text": "Accuracy on Rabbinic Hebrew Test Corpus",
"num": null,
"html": null,
"type_str": "table"
},
"TABREF5": {
"content": "<table/>",
"text": "Accuracy on Poetic Hebrew Test Corpus 8 Advanced Features 1. Scientific Editions: In scientific editions, editorial sigla are interspersed throughout the text.",
"num": null,
"html": null,
"type_str": "table"
}
}
}
}