Deep Learning for Period Classification of Historical Hebrew Texts
Paper · 2020 · Chaya Liebeskind and Shmuel Liebeskind
Summary
A passage of historical Hebrew can contain language from several eras. A rabbinic answer might quote an older legal authority, then use that quotation to address a question of its own time. When the date of the answer is unknown or disputed, which parts of the passage help place it in history? Chaya and Shmuel Liebeskind investigate this question through text classification. They use the Responsa corpus, a collection of rabbinic questions and answers, to test whether a classifier can assign a paragraph to a historically defined period. Dating texts at that level can help scholars organize a collection before building resources that connect modern search terms with older vocabulary.
The authors divide the material into four periods, from the 11th century through the end of the 15th century, the 16th century, the 17th through the 19th centuries, and the period beginning in the 20th century. They split the documents into 604,338 paragraphs and hold out examples from each period. A paragraph-vector classifier represents the passage through an average of its word vectors. A convolutional network searches for useful expressions in short stretches of text, while a recurrent network reads the words in sequence and carries information from earlier positions forward. The authors compare these approaches with conventional classifiers that use word frequencies or stylistic measurements.
The strongest conventional baseline, multinomial naive Bayes, reaches an accuracy of 0.7945 on the held-out paragraphs. The convolutional network scores 0.8150. The gated recurrent unit, the strongest recurrent variant on accuracy, scores 0.8495 and also has the highest reported recall, 0.7747. Both networks can recognize examples from all four periods. By contrast, the paragraph-vector classifier rarely assigns an early label and misses every example from both early periods. Many of the convolutional network’s mistakes fall between neighboring periods. The numerical results put the gated recurrent unit ahead of the convolutional network on accuracy, although the paper reverses that ordering in its discussion and conclusion.
A separate analysis asks how the use of individual words changes across the same historical periods. The authors train word embeddings in chronological order and compare each word with its earlier representation and with words that occur in similar contexts. In some cases the changing neighbors suggest a different sense, as with a form associated with anatomical terms in early material and with the idea of essence in later material. The classification experiment measures agreement with known period labels on held-out paragraphs. The word analysis points to passages and periods worth examining for evidence of changing usage.
Deep dive: Deep Learning for Period Classification of Historical Hebrew Texts
This study tests how well neural networks date passages of historical Hebrew and examines how word usage changed across periods of the Responsa corpus. · about 36 minutes to read
The problem and its context
What does a date belong to?
A dated document gives a historian an anchor for placing it alongside other writings. In a digitized collection, the date may be missing or contested even when the words are legible and searchable. The paper asks whether the wording can support a broad period assignment in such a case. Its task is to choose among historical intervals already defined for the collection. This makes the task a form of dating with a fixed set of possible answers, each corresponding to a period in which the surrounding text is assumed to have been written.
The unit that matters historically is the writing that contains a passage. The unit the authors give to the classifier is a paragraph. A paragraph may be a useful source of evidence, but it can also include words written long before the work in which they now appear. Consider the kind of argument the authors describe. A rabbi sets out a question, brings an older authority to bear on it, and explains how the authority applies. The inherited wording belongs to the earlier source. The choice to cite it and the reasoning that accompanies it belong to the later answer. Both kinds of wording can occur in the same paragraph, under the same period label.
That distinction has consequences for historical linguistics and language change. An early expression in a late answer might show that the expression was still used by the writer, still understood by the intended reader, or simply preserved in a familiar quotation. The classification task allows any of those circumstances to contribute evidence if it helps predict the label. A historical interpretation has to ask which circumstance produced the evidence. The paper’s interest in broad date categories comes partly from the practical need to organize texts before making more specific claims about their vocabulary.
A cross-period thesaurus offers a concrete reason to do that work. Someone searching with a current expression may want documents that describe the same subject using older terms. The authors describe thesauri that start with a modern headword and supply related expressions encountered in earlier writing. A collection arranged by period gives the builder a way to identify which material can supply earlier expressions and to examine how terms are distributed. If the chronology is uncertain, the search resource inherits that uncertainty. The paper treats classification as a preliminary task for such work and evaluates classification on its own.
Why the Responsa are a difficult case
The Responsa project brings together questions submitted to rabbis and the answers those questions received. The subject matter extends through law, health, commerce, marriage, education, and religious custom. An answer can preserve the reasoning that led to a ruling, including discussion of the Talmud, commentaries, legal compilations, and previous answers. This gives the corpus historical depth within individual pieces of writing as well as across documents. The authors emphasize that the collection was assembled to make information available. Its linguistic record reflects the writings that served that purpose.
The paper describes a long period in which Hebrew was used for formal writing while Jewish communities generally spoke local languages or dialects that could incorporate Hebrew and Aramaic. It also describes the revival of spoken Hebrew under Eliezer Ben-Yehuda and the continuing presence of older forms in modern usage. Among the links it draws are the use of morphemes from Biblical Hebrew and the survival of Mishnaic spelling conventions in Modern Hebrew. These continuities make it possible for an old-looking form to occur in later writing without carrying a quotation.
The archive also reflects communities in many places, with different local linguistic influences and different styles of writing. An Aramaic passage from the Talmud is especially relevant to the authors’ account because it may recur as a cited authority across eras. A classifier can encounter a mixture of languages, inherited spelling, contemporary vocabulary, and formulas of legal argument. For the historical question, a useful distinction is whether the combination is characteristic of the surrounding answer’s period, even when some of the pieces have a longer history.
Digitization makes these materials available for natural language processing, but it does not automatically remove differences in grammar, spelling, or abbreviation practices. The paper discusses earlier experience with tools designed for contemporary Hebrew and takes that experience into account when choosing its inputs. A classifier built on raw text can work with the forms found in the archive. It also has to learn from those forms when different spellings or inflections have a common function.
Earlier ways to infer a period
The paper distinguishes supervised machine learning from approaches that look for temporal patterns without training on period labels. In supervised classification, the researcher gives examples with known group assignments and uses them to learn how to assign new examples. Other approaches use the distribution of words or topics to look for temporal structure in a collection. These approaches address related questions. A recurring vocabulary can help organize texts by time, while the supervised experiment asks how reliably a passage can be put into categories a researcher has already chosen.
In an early study of Dutch texts, de Jong and colleagues estimated how typical individual words were of different time periods. Their approach used smoothing, which keeps an infrequent or unobserved word from having an unduly large effect on a score. Kanhabua and Nørvåg extended that line of work by borrowing evidence for words absent from particular periods, changing how terms were weighted, and drawing on external search statistics. The paper also describes Dalli and Wilks’s approach, which inferred links between words and points in time from changes in their distributions. These studies share the premise that a document gives temporal evidence through word use even when it contains little explicit dating information.
The authors describe several ways of widening that premise. Kumar and colleagues compared short stories with distributions learned for different eras. Blei and Lafferty represented topics as changing over a sequence of time intervals, and Wang and colleagues extended the approach to continuous time. Here a topic is a recurring pattern of associated words. Following a topic through time can help reveal whether a change in vocabulary accompanies a change in what people write about. The paper presents this history as background for both its dating task and its interest in the behavior of individual words.
Work on historical Romanian and Portuguese texts supplied examples of more explicit choices about which properties to measure. Ciobanu and colleagues found that lexical features were especially useful in their Romanian collection. Štajner and Zampieri studied stylistic cues in Portuguese texts, including sentence and word lengths and measures of how densely or diversely words are used. Niculae and colleagues approached dating as a ranking problem and applied their method to texts in English, Portuguese, and Romanian. The paper also discusses the SemEval task organized around newspaper snippets and describes Frermann and Lapata’s treatment of word senses as changing across consecutive intervals. These studies differ in what a dated example is and what evidence it contains. A newspaper excerpt, a piece of fiction, and a rabbinic answer can all carry temporal information through different textual conventions.
Earlier work with the same collection
HaCohen-Kerner and colleagues had already used Responsa materials to classify texts by period and by the ethnic origin of their authors. Their period experiment distinguished the 19th from the 20th century and used stylistic categories such as spelling conventions, lexical preferences, and vocabulary richness. This gives the Liebeskinds a concrete prior approach to put into their own comparison. Their task extends across a broader range of time and includes paragraph-length examples. The earlier study therefore informs the choice of baseline, while performance on the new task has to be measured on the new split.
Other work on the collection used phrases to estimate the lifetimes of Responsa authors. Mughaz and colleagues sought words and expressions that could support rules about when an author lived. In that setting the desired answer concerns a person’s lifetime. The Liebeskinds instead give the classifier the text of a paragraph and ask for its period label. A clue that is helpful for one task may also help with the other, but the two evaluations would credit different outcomes.
The paper also reviews work on historical thesauri that differs in what it counts as a term. Zohar and colleagues initially worked with the written forms found in the text and grouped related terms by lemma during evaluation. A lemma groups forms that belong to the same lexical item. The Liebeskinds describe other work that compared written forms, lemmas, and representations that allow more than one possible lemma. These options matter in a collection where several inflections can occupy separate entries in a vocabulary. The present study chooses to retain raw forms for classification and to ask how much the algorithms can learn from their distributions and order.
For tracking usage, the paper situates its analysis alongside work on context and meaning in large historical collections. Studies with Google Books examined how the words around a term differed across epochs. Other work tracked changes in emotion vocabulary or grouped a word’s contexts into candidate senses. The paper also cites Hamilton and colleagues as part of the line of research that uses vector similarity to study changes in the same word across periods. Diachronic Word Embeddings Reveal Statistical Laws of Semantic Change
The method, step by step
Turn the historical questions into labels
The period boundaries follow the authors’ account of how Jewish religious rulings developed. The earliest interval, from the 11th century through the close of the 15th, covers the period before the spread of the legal code that anchors their chronology. The authors describe the 16th century as the period when the Shulchan Aruch, edited by Rabbi Yosef Caro, began to circulate in the Diaspora. They put sages working with that code as an established authority into the interval spanning the 17th through the 19th centuries. The modern period starts in the 20th century, when scientific and technological developments brought new kinds of questions into the literature.
These are labels for historically meaningful groups of material, and the intervals have different widths. When the authors divide a document into paragraphs, each paragraph inherits the document’s period. They retain paragraphs of at least 10 words and select 90% of the paragraphs in each period at random for training. The remaining 10% form the test set. A classifier trains on labeled text and is then evaluated on its ability to recover the label of held-out text.
The raw wording supplies the input. The authors follow the earlier Responsa study in forgoing analysis with tools developed for contemporary Hebrew. The previous work they cite reported that a modern Hebrew tagger had accuracy over 90% on modern material and only about 60% on Responsa. A tagger uses its analysis of a word in context to assign a grammatical label. If those labels are unreliable for the archive, a classifier built on them would receive an additional source of error. Working directly with the text avoids relying on those tags, while leaving each classifier to deal with the spelling and forms in the collection.
From dated Responsa documents to period predictions
The steps in order.
Decide what information each classifier can see
The conventional classifiers receive a bag of words. A bag records which selected terms occur or how frequently they occur, depending on the classifier. If the same words are rearranged, their entries in the bag stay the same. This representation allows a classifier to pick up a strong association between an expression’s component words and a period, although the features do not say whether those words were adjacent. It also makes an individual feature easy to describe. A feature is a measured property of the input that helps the classifier assign a label.
For the neural approaches, the paper describes a different input representation. Each word has a learned vector, an ordered collection of real-valued coordinates. A single coordinate has no assigned meaning such as “legal” or “modern.” What matters is how the vectors relate to one another. Words that occur in similar contexts may acquire vectors pointing in similar directions. The neural classifiers can use this representation as a starting point for deciding which properties of a paragraph matter for period.
The paper introduces two word2vec training tasks to explain how that starting point is obtained. In the continuous bag-of-words task, the surrounding words give evidence about the word in the center of the window. Their order does not affect that prediction. In skip-gram, the central word supplies the evidence, and the prediction concerns words around it. The architecture description specifies embeddings of 300 dimensions learned with word2vec skip-gram and a window size of five words. This contextual training gives the classifiers a representation of words before the period prediction task is applied.
The way the paragraph is passed onward then becomes decisive. Averaging its vectors removes the sequence information at that stage. A convolutional network retains order inside each window it examines, then summarizes the evidence found across the paragraph. A recurrent network maintains order as it processes the paragraph and can make its current representation depend on preceding words. The same starting idea, representing a word through its contexts, thus supports distinct ways of building a representation of a passage.
Represent the paragraph by its average
The paragraph-vector approach borrows a training idea from doc2vec. In the general framework, a paragraph has a vector of its own, while the vocabulary has a separate set of word vectors. A representation associated with the paragraph and representations of words in context contribute to predicting a word. The point of the paragraph representation is that it can supply information shared across different contexts from the same passage. The paper’s classifier uses the training paragraphs and inserts features for the period labels into the same vector space as the words.
The score for an unseen paragraph follows the paper’s description of its actual test procedure. The words contribute to an average vector, and the period labels already have vectors in that space. Each label gets a similarity score against the paragraph’s average. The prediction is the label whose vector is closest by cosine similarity. Training uses a learning rate of 0.025, with 0.001 as its minimum, and runs for 10 epochs with batches of 100. The learning rate governs the size of updates during training. An epoch is a pass through the training data, and a batch is the group of examples processed together for an update.
The average described for a test paragraph can be written as follows.
m = (Σᵢ vᵢ) / n
Here m is the paragraph’s mean vector, i indexes the words contributing to it, and vᵢ is the vector of the word at position i. The symbol Σ means to add the contributing vectors coordinate by coordinate. The divisor n is the number of those vectors, so dividing by it turns the sum into an average.
Cosine similarity supplies the comparison for both the paragraph-vector prediction and the later study of word usage.
cos(u, v) = (u · v) / (‖u‖ ‖v‖)
The symbols u and v denote the vectors being compared, and cos(u, v) denotes their cosine similarity. The dot · denotes the dot product, obtained by multiplying corresponding coordinates and adding the products. The double bars ‖u‖ and ‖v‖ give the respective vector lengths, whose product is the denominator. This comparison emphasizes the directions of the vectors, so a larger cosine indicates closer directional alignment. For paragraph prediction, the two vectors being compared are the paragraph average and a candidate label vector.
The label decision can be written directly in terms of that comparison.
ĉ = argmax(c ∈ C) cos(m, ℓ꜀)
The symbol ĉ denotes the predicted period, C is the set of period labels, and c ∈ C means that c ranges over those labels. The vector ℓ꜀ belongs to label c, and m is the paragraph average. The operation argmax returns the label that gives the greatest value of the cosine similarity. In this approach, a phrase contributes through the vectors of its words. The equation contains no way to give a special score to the fact that they occurred as a phrase.
Look for useful patterns in short windows
The convolutional network applies the sentence-classification architecture described by Yoon Kim to whole paragraphs. The words enter the network in their sequence. The vectors are static, meaning that training the network on the dating task leaves the word vectors fixed while adjusting other parameters. The paper describes random initialization for unknown words in this setup, with those vectors also kept fixed. The distinction matters because any learning of period-specific patterns in this architecture takes place in the layers acting on the vectors.
A convolutional filter is a learned operation applied to a small window as that window slides over the input. It can give a high response when a combination of neighboring word vectors matches a pattern useful for distinguishing periods. The authors use widths of 3, 4, and 5 words. Since the same operation is applied at every eligible position, the network can respond to a useful pattern wherever it occurs. At this stage the order of words within the window can matter. The operation reads the neighboring vectors in their positions rather than blending them into a paragraph-wide average.
The next step, max-over-time pooling, keeps the strongest response across positions for a feature. A pattern found near the beginning and a pattern found near the end can therefore contribute in the same way if their responses are equally strong. This gives paragraphs of different lengths a comparable representation for the next layer. It also means that the pooled feature records the quality of its strongest match, with the location and other occurrences no longer available through that feature. A fully connected layer uses the pooled evidence to score periods. The softmax operation converts those scores into a distribution across the labels. The reported training uses a single epoch and a batch size of 32.
In a Responsa paragraph, the useful local pattern could be a conventional phrase for introducing a source or wording characteristic of how a question is asked. Those examples illustrate what a filter could in principle use. The architecture does not require the authors to name such phrases in advance. The classification objective gives the network a reason to increase the influence of patterns that help it recover the period labels. Establishing which patterns it did use would require examining evidence beyond the architecture itself.
Read the paragraph as a sequence
The recurrent network reads the word vectors in order and updates a hidden state along the way. A hidden state is an internal numerical summary available to the next step. At each position the current word and the state inherited from earlier positions jointly influence the update. The vanilla recurrent variant uses a simple update with the hyperbolic tangent, or tanh, a nonlinear function. This lets the next state depend on a transformed combination of the current input and what the network has carried forward.
The other variants give the state update more control over what is retained. Long short-term memory, or LSTM, uses gates to regulate its internal memory. A gate uses learned signals to control how much information is allowed through. The forget gate, for example, can reduce the influence of a part of the stored information. The gated recurrent unit, or GRU, brings some of these operations together and combines the cell and hidden states described for LSTM. The paper credits Cho and colleagues for the GRU design. Learning Phrase Representations using an RNN Encoder–Decoder
The authors describe the recurrent classifier as a hidden layer feeding a softmax output layer. The loss is multiclass cross-entropy, which penalizes the network when it assigns low probability to the training example’s recorded period. They reported training for five epochs in batches of 64 and using a hidden layer of 128 neurons. They compare the vanilla, LSTM, and GRU variants under that description, with the kind of recurrent hidden unit as the stated architectural difference.
The sequence of a legal argument gives a way to understand why the authors considered recurrence. A short formula could take on different significance when it follows a question, a citation, or the writer’s decision. Information from preceding words can in principle affect how a recurrent network processes it. A convolutional feature can also distinguish different immediate contexts, within the width of its window. The architectural distinction is how evidence becomes available to a layer farther along. In the recurrent case it can be carried forward in state. In the convolutional case described here it is detected in local windows and collected by pooling.
Train vectors across time to study individual words
The word-usage analysis uses the periods for a different purpose. The classifier is asked to infer an unknown period for a paragraph. In the usage analysis, the period is known and determines which text is used to train each set of word vectors. The authors want to be able to ask how the same written form is positioned in these sets as the text used for training moves forward in time.
They use continuous training with gensim, following the protocol they describe from Kim and colleagues’ temporal study. The second set of embeddings starts from the learned vectors for the preceding era, and the procedure continues through the later eras. The first set acts as the chronological starting point. This procedure supplies a common starting orientation for successive sets of vectors. If each set were learned independently, the paper explains, a mapping would be needed before positions in one space could be compared with positions in another.
The first comparison picks out candidate words whose vectors differ between the earliest and latest periods. The authors restrict attention to words that occur at least 500 times in the full dataset and at least 50 times in each period. The first threshold favors forms with substantial total evidence. The per-period threshold keeps a word in the comparison only when the authors have examples of it throughout the chronology. They then inspect neighbors of selected words in the earliest and latest periods. A neighbor is another form with a high cosine similarity in the relevant period’s vector space.
The paper uses two views of the intervening periods. In one, the authors track how close a word is to neighbors selected from the early and late endpoints. This gives the trajectory an interpretable set of comparisons. A word could become more similar to terms associated with a later use while its similarity to words associated with an earlier use declines. In the other view, the authors compare a word at each time with its own vector in the earliest period. That gives a reference that does not depend on choosing illustrative neighbors. They also plot the average similarity to the earliest representation across words as a point of comparison. The paper uses these views to locate broad intervals of change within the chronology available to it.
Experiments and results
What the held-out set contains
The paper describes a Responsa collection of 76,710 articles totaling about 100 million word tokens. A token here is an occurrence of a word in the text. After the authors move to paragraph-length examples, the period distribution is strongly uneven. The latest period has 314,022 paragraphs in the study, compared with 32,341 in the earliest. A random split within each period retains that imbalance while giving every period examples in both the training set and the held-out set.
| Period | Training paragraphs | Test paragraphs | All paragraphs |
|---|---|---|---|
| 11th through 15th centuries | 29,107 | 3,234 | 32,341 |
| 16th century | 50,279 | 5,587 | 55,866 |
| 17th through 19th centuries | 181,898 | 20,211 | 202,109 |
| 20th century onward | 282,620 | 31,402 | 314,022 |
These counts affect the way performance should be read. A classifier that is effective on the latest period has many opportunities to make a correct prediction. Its treatment of the early periods can still be poor. The paper therefore reports aggregate scores alongside a more detailed account of which labels the classifiers assigned. The table of counts also identifies the unit of evaluation. An entry in the test set is a paragraph drawn from the corpus, with the historical label of the work it came from.
The paper gives the architecture and training specifications for the neural experiments and says they ran with default settings in Deeplearning4j and TensorFlow. The conventional incremental experiments use scikit-learn. The authors describe running the experiments in a cloud environment and give its hardware configuration as 32 cores, 128GB of memory, and a 200GB SSD. The hardware details belong to the experimental setting. The performance tables concern classification quality on the held-out paragraphs.
What the scores measure
Accuracy records agreement between predictions and the recorded labels. Precision for a period asks how frequently an assignment to that period is right. Recall for a period asks how many of the paragraphs belonging to that period the classifier finds. F1 combines precision and recall, giving a low score when either side of that balance is poor. The authors describe the scores as macro-averaged, meaning that the calculation starts with scores by period and gives the included periods equal weight when averaging. The paper excludes a period from the precision and F1 averages when the classifier never predicts it.
The role of recall is particularly clear from the confusion matrices. For any given period the recall is the correct assignments to that period relative to all held-out paragraphs from it.
R꜀ = TP꜀ / N꜀
Here R꜀ is recall for period c, TP꜀ is the number of test paragraphs truly from c that were assigned to c, and N꜀ is the total number of test paragraphs whose recorded label is c. The numerator corresponds to the diagonal count for the period in a confusion matrix. The denominator comes from the test set’s class counts.
Macro-averaging can be expressed as the average over the periods included for a given metric.
M = (Σ꜀∈S m꜀) / |S|
Here M is the reported macro-average, S is the set of periods included in that calculation, and m꜀ is the metric’s value for period c. The sum Σ꜀∈S adds those values, and |S| is the number of periods included. If a period is left out under the paper’s convention for precision or F1, it is absent from S for that calculation. This detail becomes important in the recurrent comparison because the set of periods represented in the average can differ by classifier.
How the conventional baselines perform
The conventional experiments start with a vocabulary reported at 1,406,208 words. The authors keep 20,000 bag-of-words features, drawn from words that occur at least 10 times in the dataset and are present in at most 5% of documents. The lower cutoff filters out very rare terms. The upper cutoff filters out terms that occur in many documents. Because of the scale of the resulting input, they train incrementally, processing mini-batches instead of loading all feature vectors at once.
Multivariate Bernoulli naive Bayes treats each word feature as a presence or absence. Multinomial naive Bayes can use occurrence counts. Both estimate how likely the observed features are for a candidate period under the conditional independence assumption. Under that assumption, a word can contribute evidence for a period without the classifier having to learn a separate interaction between it and every other word. The distinctions among the baselines matter because a simple classifier can still perform strongly if these marginal associations produce a good combined decision.
The linear baselines use logistic regression and a linear support vector machine. Each learns a weighted combination of the input features, with different training objectives. The support vector machine seeks a separating boundary with a large margin, while logistic regression learns from the likelihood of class assignments. The multilayer perceptron applies a nonlinear transformation to the bag-of-words inputs. Its hidden layers allow interactions that a linear scoring function cannot express directly. As with the linear classifiers, its inputs have already discarded word order.
Multinomial naive Bayes leads the conventional comparison. Its test accuracy is 0.7945, with precision of 0.7929, recall of 0.706, and F1 of 0.7343. The multivariate Bernoulli version reaches 0.7095 accuracy and 0.6437 F1. The other bag-of-words classifiers fare worse under the settings tested. Logistic regression has accuracy of 0.1924, the linear support vector machine 0.1233, and the multilayer perceptron 0.2129. The authors report trying different regularization weights for the linear approaches and observe that the discriminative classifiers tended to put much of the test material in the earliest periods.
The authors also test the earlier stylistic-feature approach. The features described include frequencies of religious and function words, rates of abbreviation and acronym use, measures of text length and punctuation, and frequencies of selected pronouns and passages in brackets. These are measurements designed to capture habits of writing, some of which survive even when two passages concern the same subject. In the Liebeskinds’ four-period paragraph experiment, the earlier approach scores 0.5815 accuracy and 0.3085 F1. The earlier study’s reported 99.68% accuracy was for its distinction between 19th- and 20th-century Responsa. The change in both the historical categories and the unit of analysis matters when interpreting those values.
How the neural approaches perform
The gap among the neural approaches is larger than the gap between the strongest neural approaches and the best conventional baseline. Paragraph vectors achieve 0.5193 accuracy. The convolutional network achieves 0.8150, and the GRU achieves 0.8495. The comparison supports the paper’s central empirical finding that the convolutional and recurrent classifiers perform better than the paragraph-vector classifier and the conventional methods tested on the same paragraph split.
Held-out Responsa paragraph accuracy across classification approaches
The gated recurrent unit leads the comparison, followed by the convolutional network and multinomial naive Bayes.
The numbers
| System or setting | Accuracy |
|---|---|
| Paragraph vectors | 0.5193 |
| Earlier stylistic-feature approach | 0.5815 |
| Multivariate Bernoulli naive Bayes | 0.7095 |
| Multinomial naive Bayes | 0.7945 |
| Convolutional network | 0.8150 |
| Gated recurrent unit (this paper) | 0.8495 |
The remaining metrics add a useful qualification. The convolutional network has reported precision of 0.8185, recall of 0.7446, and F1 of 0.7752. The GRU has precision of 0.7958, recall of 0.7747, and F1 of 0.7829. In this comparison, the convolutional classifier has the higher precision, and the GRU has the higher recall and F1. The paragraph-vector classifier has recall of 0.2511 and F1 of 0.2363. Its inability to recover early material is visible in the assignments behind those scores.
The recurrent comparison shows that the hidden unit matters under the reported settings. The vanilla recurrent network reaches 0.6233 accuracy. LSTM reaches 0.84 and the GRU 0.8495. The paper also expresses the GRU’s advantage over multinomial naive Bayes in terms of 3322 additional correctly classified test paragraphs. Its conclusions separately report GRU accuracy as 84.9%, recall as 77.47%, and F1 as 78.29%. The chart uses the accuracy values as reported in the recurrent results table.
Held-out Responsa paragraph accuracy by recurrent hidden unit
Both gated variants score above vanilla recurrence, with the gated recurrent unit giving the highest accuracy.
The numbers
| System or setting | Accuracy |
|---|---|
| Vanilla recurrent network | 0.6233 |
| Long short-term memory | 0.84 |
| Gated recurrent unit (this paper) | 0.8495 |
There is an inconsistency in the paper’s account of the comparison. Its discussion and conclusion say the convolutional network’s accuracy was 3% higher than the recurrent network’s under the default settings. The tabulated accuracies and the text introducing the neural results put the GRU first. The numbers support the ranking shown in the charts. The paper does not reconcile that ranking with the later statement.
What the word comparisons turn up
In the separate analysis of word use, the authors examine six examples from the top 50 forms ranked by change between the earliest and latest periods. The comparison is for each form against itself in the two sets of embeddings. The authors interpret the low endpoint similarities by looking at neighbors from the same periods. This takes the reader from a change in numerical position to a difference in the company the word keeps.
The form transliterated as `cm has an endpoint similarity of 0.2061. Its early neighbors include words associated with the thigh and ribs. Its modern neighbors include terms the authors gloss with ideas such as what is main and what has quality. They read the shift as movement from an anatomical use toward an abstract one, from “bone” to “essence.” For `qr, the reported endpoint similarity is 0.1418. The earlier neighbors are associated with meaning or agreement and support the authors’ reading of a main part. The later neighbors include terms associated with uprooting and expelling. A reader can assess the suggested interpretations by examining which neighboring words motivate each one.
The form whbn, with endpoint similarity of 0.2513, illustrates a different kind of ambiguity. The early neighbors point to family relations, including forms corresponding to daughter and father. The later neighbors give the authors grounds to identify a use associated with understanding. In a representation built from written forms, these changing associations can reflect what reading of the same string is common in a particular collection of contexts. They can also reflect changes in the wording surrounding a use. The paper uses both possibilities to explain why neighbors are informative.
For comparison the authors identify forms whose endpoint vectors remain more similar. The term adwnnw, glossed as “our master,” has endpoint similarity of 0.8766, and dinrim, a term for dinars, has 0.8410. The paper plots such forms alongside candidates for change. In several illustrated cases, including `qr, `cm, and wmwrh, the authors identify the largest movement between the 16th-century period and the period covering the 17th through the 19th centuries. These groupings are broad enough to show a transition in the corpus while leaving the timing within the later interval open.
What the ablations show
The paper does not report feature-removal ablations. Its closest controlled comparison changes the type of recurrent hidden unit, while its confusion matrices show where two different ways of representing a paragraph succeed or fail. The word analysis also compares trajectories against reference examples to see how candidate changes differ from more stable uses. These analyses answer narrower questions than a test that removes a specific clue and measures what happens to the predictions.
Gating changes the recurrent comparison
The vanilla network, LSTM, and GRU are presented within a common recurrent setup. Given the same task and the reported hidden layer size, training duration, and batch size, the change is the form of the state update. Both gated variants score above vanilla recurrence on test accuracy. That gives the authors evidence that the choice of recurrent unit makes a practical difference here. Gated units can regulate the information passed between positions, but the comparison does not show which preceding words they retained or how far back those words were.
The period-level evidence matters for comparing the gated variants. The authors say that the LSTM never assigns a paragraph to the earliest period. Its reported test precision is 0.7712 and recall is 0.6493. The LSTM’s F1 of 0.8112 is numerically higher than the GRU’s 0.7829, while the paper specifies that the earliest period is excluded from the LSTM average for precision and F1. A reader weighing those scores needs to know that the GRU covers all periods in its assignments. Accuracy and recall favor the GRU in the reported comparison, and those results accompany its broader coverage.
This also helps explain why the recurrent comparison cannot be reduced to the presence of a gate. Both gated classifiers outperform the vanilla configuration on accuracy. Their behavior differs on the earliest period, despite the fact that both have more elaborate memory controls. The experiment identifies the best recurrent configuration by the reported accuracy and shows a coverage difference. It leaves open the contributions of training choices and of individual mechanisms inside the recurrent units.
Averaging loses the early periods in practice
The paragraph-vector confusion matrix shows how the classifier reaches its overall score. Every test paragraph from the earliest period is assigned to the latest period. The second period also has no correct assignments, and almost all of those examples go to the latest period. The classifier rarely uses early labels at all. Its aggregate score is therefore compatible with substantial success on the most represented part of the test set and complete failure to recover both early periods.
A mean of word vectors can place paragraphs near one another when their vocabularies are broadly similar. The label comparison then depends on where each trained label vector sits relative to those averages. In this corpus a passage quoting an old source can share vocabulary with a period other than its own. The paper points to that possibility, and to inherited forms in later Hebrew, when discussing the difficulty. Its confusion matrix establishes the assignment pattern. The experiment does not measure how much of that pattern comes from wording shared across periods, from the class distribution, or from the choices made when learning and scoring the vectors.
The contrast with the convolutional and GRU results is nevertheless informative. Both sequence-sensitive approaches assign examples to every period. The convolutional network has access to combinations of neighboring words, and the GRU can carry forward a representation of context. The tested paragraph-vector decision uses the mean and nearest label alone. These differences suggest plausible reasons for the improvement. Since the training and decision procedures also differ, the performance gap measures the effect of the complete approaches. It cannot be attributed solely to the presence of word order.
The convolutional errors favor adjacent periods
The convolutional confusion matrix tells a more differentiated story. Using the period totals for the held-out data to interpret the orientation of the matrix, the reported relative diagonal values are 0.626 for the earliest period, 0.73 for the 16th century, 0.696 for the 17th through the 19th centuries, and 0.926 for the latest period. These entries are recalls. Each describes the classifier’s success among paragraphs that actually belong to the named period. The latest period is best recovered, while the earlier periods remain represented in the predictions.
The off-diagonal entries show what happens when the network makes a mistake. Among paragraphs from the 16th century, a substantial source of error is assignment to the next period. Among paragraphs from the 17th through the 19th centuries, the most common mistaken destination is the latest period. The paper reports that many errors for the GRU likewise fall between successive periods. A period can therefore be recognizable in the aggregate while still sharing evidence with the interval next to it.
The adjacent errors are consistent with historical continuity in vocabulary, authorities, and ways of framing a legal question. They also have a simpler possible connection to the evaluation design. A period spanning several centuries can contain internally diverse texts, and the amount of training data varies substantially among labels. The confusion matrices cannot identify which explanation applies to a particular paragraph. They show that the disagreements are structured, which is already more informative than treating each error as interchangeable.
Contextual neighbors help interpret changes in a vector
The usage analysis contains a comparison of its own. A word’s trajectory relative to its early and late neighbors gives a reader some linguistic evidence for understanding the direction of its change. A trajectory against its own earliest vector offers a check that is independent of those particular neighbor choices. The average across words and the more stable examples give a baseline for reading that trajectory. Each comparison uses the continuous sequence of vectors learned from the corpus.
The anatomical and abstract neighbors of `cm show why the comparisons are complementary. The endpoint cosine says that the distributional representations differ. The neighbors let the authors interpret the difference in terms of associations with body parts and with abstract properties. Following the terms across periods then suggests where the shift becomes visible at the scale of the data. This reasoning supports a hypothesis about usage. It does not supply a count of individual occurrences assigned to each sense.
The examples of more stable words also matter. Training vectors successively through changing collections of text creates an opportunity for many words to move. When a candidate stays close to its early representation, or when it moves substantially farther away than the illustrated stable forms, the comparison gives the researcher a way to contextualize the movement. The paper’s examples are descriptive. They do not test independently which passages contain an older sense and which contain a later one.
Limitations
Limits the authors identify
The authors describe difficulties that arise from the writing itself. Hebrew Responsa can adopt an archaizing style, mix in Aramaic, and quote sources far older than the writer. Modern Hebrew also preserves elements of older Hebrew. An apparently ancient paragraph could therefore be recent material with an early citation, while a modern use of an inherited form may require the surrounding context to understand it. The paper treats these as reasons the classification task is demanding. It does not isolate their effects with separate test sets for quoted and unquoted material.
The authors also identify hyper-parameter selection as unfinished work. Hyper-parameters are choices such as batch size and the size of the hidden layer that shape training. They suggest that the convolutional and recurrent approaches might improve if those choices were optimized, and they say that this would require a separate training and validation process to protect against overfitting. Overfitting in this setting would include adapting the configuration to the examples used to judge it. They did not carry out that optimization. Their comparison is therefore evidence about the settings they report.
The paper also proposes exploring more elaborate LSTM variants, architectures that combine convolution and recurrence, and embeddings that use period information during learning. Each proposal responds to a different aspect of the current experiment. More sophisticated recurrence would change how a sequence is represented. A combination could put local pattern detection and recurrent context in the same classifier. Period-informed embeddings would put chronological information into word representation itself. The study’s continuous word training addresses historical progression by initialization across periods. It leaves the proposed change to the embedding objective for future investigation.
Limits of what the paragraph split establishes
The experiment selects random paragraphs within periods, and the paper gives no grouping rule that keeps all paragraphs from a document together. Paragraphs from the same work can consequently be eligible for both parts of the split. The paper does not establish how often that happened. Even when there is no identical text between the sets, paragraphs from a common work or author can share vocabulary, habits of spelling, and patterns of quotation. A held-out paragraph in this experiment can therefore pose a different problem from a passage by an author or from a document absent from training.
The distinction matters for the motivating application. In a collection of disputed or undated writings, the item of interest may be a whole document. The reported experiment does not test a procedure for combining paragraph decisions into a date for that document. It also does not report an evaluation separated by author. Such results would speak more directly to how the classifier handles writing whose individual style it has not seen before. The available evidence is paragraph-level performance under the random split described in the paper.
The date labels impose a second limit. The periods follow a legal and intellectual chronology, and they differ in duration and amount of surviving material in the dataset. An accurate answer identifies the correct bin under that chronology. It cannot locate a passage within the bin or tell a reader how far the composition date is from a period boundary. An error into a neighboring bin could represent a small temporal displacement near a boundary or a larger one between works at opposite ends of the intervals. The confusion matrices give counts of label disagreements and recall within each class. They do not resolve the dating error in years.
Later material in the dataset also raises subjects linked by the authors to modern scientific and technological developments. The classifiers can use evidence about what is discussed as well as how Hebrew is written. They may also respond to particular authorities, regional habits, or other cues correlated with period in the corpus. These are legitimate cues for the measured prediction task. The experiment does not partition them into distinct sources of accuracy, so its scores cannot establish how well the systems would date another genre with different subject matter and editorial conventions.
Limits of the architectural and metric comparisons
The convolutional comparison supports the value of the tested local-pattern classifier. It does not demonstrate that particular key phrases drove its performance. The paper suggests this explanation for what the network learned, but it supplies neither a list of phrases discovered by the network nor an intervention that removes them and retests accuracy. The same caution applies to recurrent context. The advantage of gated recurrence is measured at the output, and the paper does not trace a particular decision to information retained across a long stretch of text.
The comparison with the conventional methods also combines choices about architecture, text representation, and training. The baseline vocabulary is restricted by frequency, whereas the neural approaches begin from learned embeddings. The strongest baseline assumes that its features are conditionally independent, but its performance shows that word-level associations already carry considerable evidence in this collection. The relative gains show what the authors obtained by changing the overall approach. They do not estimate how much would remain if the approaches shared a representation or underwent comparable tuning.
Readers also have to account for how the metrics were reported. Averaged precision and F1 exclude classes with no predictions, so a score for a system with incomplete coverage describes a different set of classes from the score for one that predicts them all. The individual period recalls resolve some of that ambiguity for the convolutional result. The tabulated figures are also essential when reading the contradictory statements about the direction of the convolutional-to-recurrent accuracy comparison. Taken together, the reporting supports the accuracy ranking in the results table and the specific class-coverage observations, with less support for broader claims about which architecture is preferable in general.
Limits of the interpretations of word change
The embeddings summarize the contexts of a written form in each period. A movement in the vector can reflect a change in sense, in the topics being discussed, or in the vocabulary used around a sense that remains available. Changes in the mix of authors or kinds of document can produce a similar signal. The authors recognize the difference between a shift in meaning and a shift in contextual wording. Their selected examples show how an interpretation can be made with the aid of neighbors, but the paper does not report a sense-annotated evaluation of those interpretations.
The frequency cutoffs define which changes can enter the analysis. Forms that fall below the required count in a period are excluded. The analysis therefore gives evidence about forms that remain sufficiently attested across the chronology. The design is less informative about a term introduced late, one that disappeared, or a rare use that is overshadowed by a common use of the same written form. A single vector for the form can move when the proportions of already existing uses change, even if the range of senses remains the same.
Continuous training also links the representations by construction. This makes comparison convenient, while leaving earlier training as part of the history of later vectors. The plotted average offers a descriptive reference for typical movement under that procedure. For a candidate such as `cm, it helps put the observed change in context. The paper does not give a formal decision threshold that would turn the distance from that reference into a statistically established semantic change.
Finally, the authors suggest that the revival of spoken Hebrew in the late 19th century might help explain movements they see between the 16th-century group and the group covering the 17th through the 19th centuries. The later bin includes the era of that revival and a long stretch before it. On this evidence, an association with the revival is a historical hypothesis. The comparison cannot date the movement more closely within the bin or establish the cause.
What came after
No subsequent citing study is documented here, so there is no demonstrated follow-up result to report. The paper closes by proposing more carefully tuned comparisons of convolution and recurrence, tests of architectures that combine them, and experiments that make the period part of learning word representations. These are proposed extensions of the original work. The results established in the paper remain the comparison on held-out Responsa paragraphs and the descriptive analysis of how selected Hebrew forms change their contextual associations across the corpus.
Cite
Cite as Chaya Liebeskind and Shmuel Liebeskind. 2020. Deep Learning for Period Classification of Historical Hebrew Texts. Journal of Data Mining & Digital Humanities.
@article{liebeskind2020deep,
title = {{Deep Learning for Period Classification of Historical Hebrew Texts}},
author = {Chaya Liebeskind and Shmuel Liebeskind},
journal = {Journal of Data Mining \& Digital Humanities},
year = {2020},
doi = {10.46298/jdmdh.5864},
url = {https://doi.org/10.46298/jdmdh.5864}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/liebeskind-2020-deep-learning-period-classification-historical/