Preprocessing Greek Papyri for Linguistic Annotation
Paper · 2017 · Marja Vierros and Erik Henriksson
Summary
A papyrus edition might print a complete Greek word where the scribe left only an abbreviation, or supply an ending where the papyrus has broken away. Those decisions make a document easier to read. They also matter to anyone studying the language of the people who wrote it. A restored ending may give a sentence a plausible grammatical structure, while the surviving letters may leave the scribe’s choice of ending open. The authors develop Sematia to prepare documentary papyri for linguistic annotation while keeping those kinds of evidence distinguishable. The documents preserve registers ranging from private correspondence to official contracts and are a direct source for the study of Ancient Greek.
Sematia starts with the digital editions available through the Papyrological Navigator. Their TEI EpiDoc XML encoding identifies features such as editorial corrections, abbreviations and gaps. Sematia uses those distinctions to produce an original layer that favors the surviving scribal forms and a standard layer that incorporates editorial readings and restorations. It places visible markers where material is missing or excluded so that corresponding word positions can be compared. The original layer still uses editorial word divisions and accents, and both layers accept an editor’s uncertain reading of a letter. Where the edition records a change of hand, Sematia prepares separate layers for the corresponding acts of writing, with space to describe the handwriting, people involved, text type and addressee.
Both layers are prepared for linguistic annotation in Arethusa through the Perseids platform. An annotator checks proposed dictionary forms and grammatical features and records how the words depend on one another in the sentence. A researcher can then compare the grammatical analysis of corresponding words across the layers, for example to find a case ending that differs from what the editor expected. The approach also leaves room for a reconstructed sentence to have a fuller syntactic analysis than the surviving writing can support.
The paper demonstrates the conversion with individual readings and shows the kinds of searches the resulting annotations can support. Its results concern the operation of a working preprocessing system, with query tools still at an early stage. A further layer for explicitly marking variation is planned. It would address cases where the edition leaves a spelling unchanged or where the same written form supports competing explanations about sound and grammar.
Deep dive: Preprocessing Greek Papyri for Linguistic Annotation
Preprocessing Greek Papyri for Linguistic Annotation explains how Sematia preserves scribal forms alongside edited readings for comparison. · about 32 minutes to read
The problem and its context
What an edited papyrus makes searchable
The Greek papyri from Egypt described in the paper range from ca. 300 BCE to 700 CE. The documents matter to linguists because their uses were diverse. A private letter offers access to a different register from the conventional language of a contract. Documentary writing can also preserve forms seldom encountered in literary texts transmitted through manuscripts. A digital collection makes this material easier to consult, but a search for a written string answers a different question from a search for words bearing a particular grammatical feature or fulfilling a particular role in a sentence.
The Papyrological Navigator already offered a way to search the texts and associated information, such as dates and places. The Duke Databank of Documentary Papyri supplied the text corpus in TEI EpiDoc XML. New editions and revisions could enter through the Papyrological Editor, with an editorial team overseeing the contributions. Sematia could therefore start from a collection whose source texts were already transcribed and encoded. The problem was to use that encoding to produce text that a linguistic annotation editor could handle.
The paper editions had long conveyed much of the same information through the Leiden System. Square brackets can enclose a restoration, parentheses can identify the expanded part of an abbreviation, and a dot under a letter can flag an uncertain reading. The Papyrological Navigator presents editions in a layout familiar to readers of those editions, with alternative readings and related notes in the critical apparatus. The underlying XML represents such distinctions with markup. For a program, the difference between an expanded ending and a surviving ending can therefore be explicit even when a reader sees a single, conveniently legible word.
The markup is embedded in the text it describes. It can interrupt a word, surround material that crosses a word boundary, or group several readings of a single passage. Removing the tags without acting on their meaning would leave the competing readings next to each other in the resulting text. A line boundary can also occur in the middle of a word. Preparing the edition for annotation requires deciding which text belongs at each position and which interruptions should affect the word boundaries. Those decisions give the resulting tokenization its practical significance: each token is an item that can receive its own identity and grammatical analysis.
What the scribal forms can tell us
The authors treat variation as the coexistence of linguistic forms that compete within a community or a language. That coexistence matters for historical linguistics and language change. A later change can be preceded by a period in which several forms are current, and the distribution of those forms can help researchers investigate interactions between communities. Documentary spellings give access to that evidence even when a difference appears small on the page. The category of scribal error can cover a slip of the pen as well as a spelling that warrants a linguistic explanation.
The paper illustrates this with variants of πυροῦ, the genitive singular of the word for wheat. Potsherds from Narmouthis contain the spellings ποιροῦ and πουροῦ. The paper associates ποιροῦ with the Greek merger of /y/ and /oi/. It discusses πουροῦ in connection with transfer from Egyptian, whose sound system lacked the front vowel /y/. Both spellings can be related to the same conventional Greek form. The proposed explanations depend on which spelling actually occurs, so standardizing the forms before studying them would erase the contrast on which the investigation depends.
Patterns of case agreement pose a related problem. The authors describe earlier work on scribes who marked the case on words at the beginning of a phrase and used the nominative for the words that followed. An isolated example can look like a failure of agreement. Across a phrase and across instances, the placement of the inflection can instead suggest a strategy. The earlier work connects the pattern to Egyptian, which lacked case inflection, and discusses relative pronouns inflected according to an unexpected head among the same writers. These examples motivate access to morphology, the structure and grammatical features of word forms, alongside the relations that organize those words in phrases and sentences.
A comparison with a conventional form is informative in both examples, provided a researcher can still inspect the surviving form. The conventional spelling identifies the word that a papyrus editor understood to be present. It can guide the assignment of a lemma, the dictionary form under which different inflected spellings are grouped. Sometimes that interpretation can itself be debated. The authors point out that identifying an appropriate standard and deciding what an ancient writer intended can be difficult. An encoded editorial choice supplies a comparison reading whose origin is known.
An annotation framework already in use
The paper describes the Ancient Greek Dependency Treebank and PROIEL as existing resources that the project could draw on. Their materials included literary and other transmitted texts, with the first corpus covering writers and genres such as Homer, Hesiod and tragedy, and PROIEL including the New Testament, Herodotus and later Greek. They used dependency grammar in a tradition associated with the Prague Dependency Treebank. The authors followed the Ancient Greek annotation framework so that documentary texts could use an established set of guidelines and tools and be studied alongside those existing treebanks.
In a dependency analysis, the annotator identifies the word on which a given word depends and assigns a label describing the relation. An analysis can, for example, record which word acts as a subject and which head governs it. The annotation also identifies the dictionary form and records a grammatical tag for the token. Sentence structure and word structure therefore have separate fields. A researcher can ask for a particular syntactic role regardless of the spelling, or combine a condition on the role with a condition on the inflection.
The same linguistic guidelines can be applied to both readings of a papyrus even when the available evidence differs across them. An editor’s supplement may provide the head on which a surviving phrase plausibly depends. A preserved abbreviation may leave a case feature unknown even when there is a good candidate for the lemma. Those are distinct decisions about what can be annotated. The Greek treebanking infrastructure supplied a way to record the decisions, and Sematia supplied a way to prepare the material on which they would be made.
The document and the person who wrote it
The project was also interested in how the circumstances of writing shaped a document’s language. Different people can contribute to the same papyrus, and changes in handwriting can provide evidence of those contributions. The authors use the act of writing as the unit to which the paired texts and new descriptive fields belong. That allows a record for a particular hand to carry information that would be too general or misleading if attached to the document as a whole.
The person who physically wrote a passage, the person who composed or dictated it, and an official responsible for it can have different roles. The paper gives the example of a notarial official whose name can appear even when someone else put the words on the papyrus. A linguistic investigation that groups passages by writer needs a way to represent that distinction. The preprocessing problem thus includes both the interpretation of editorial markup and the organization of the resulting records around contributions by individual hands.
The method, step by step
From a digital edition to a pair of readings
Sematia takes a document already encoded in TEI EpiDoc XML. Its immediate output is text suitable for a treebank annotation workflow. To obtain that text, it uses the roles assigned to passages in the source edition. Where an editor has marked a regularization, the program can pick the recorded scribal form for one layer and the regularized form for the other. Where the editor has supplied text, it can insert the supplement in the standard layer and put a marker at the corresponding location in the original one. When the encoding marks a new hand, the layers are organized separately for the relevant act of writing.
The labels original and standard refer to the two outputs of those rules. The original layer aims to retain the forms preserved from the ancient writing, subject to conventions that make the text legible and usable by the annotation editor. The standard layer uses the edition’s expansions, supplements and corrections. The output of either route can contain text whose interpretation calls for judgment, and some choices are made by the user before the text is sent for annotation. The procedure consists of rules for processing the source and a workflow for expert decisions. There is no mathematical formula or training procedure in the paper.
From an EpiDoc edition to reviewed treebanks
The steps in order.
Document import and storage
The user imports a document by entering its identifier as a URI. Sematia parses the XML to find the handShift elements used to identify boundaries between acts of writing. It creates the hand records and initializes the original and standard layer records associated with them. At that point the layer records are templates. An annotatable text is assembled later, when a user selects a hand and layer.
The database distinguishes documents, hands and layers. A document record stores the source XML, a converted representation for use in the browser, and document-level date and provenance. Each hand belongs to a document. The hand record is where descriptive information about that act of writing goes, so the source text remains stored at document level. Each layer belongs to a hand and records its type, the eventual treebank XML and the settings needed to recover the user’s reading choices. The paper also describes user records and an association between users and documents.
Where available, the import process retrieves the document’s date and provenance from the Papyrological Navigator through its Apache Solr interface. Dates entered in different styles are converted into a form the platform can handle as ranges. The paper gives II spc and II/IIIspc as examples and shows their converted values as 101-200 and 101-300, respectively. It also shows AD709 becoming 709-709. The repeated year serves as the range for that date. The user can edit the imported metadata.
The authors identify Sematia’s open-source code and describe a local installation option supplied without the database. The server-side implementation uses Python and MySQL. The client uses HTML and JavaScript, with the transformation into a reading layer performed in the browser. For that purpose, Sematia converts the source XML into an HTML representation that still carries the original structural information. An element’s tag name becomes its class, its source attributes become data attributes, and text nodes receive their own containers. The browser can then use its Document Object Model to work with the resulting hierarchy.
Working with a selected hand
Sematia loads the converted document as a whole when the user opens a layer. It hides the parts outside the selected hand and marks them for exclusion. This ordering follows from a property of the encoding. A handShift can appear at different depths in the XML hierarchy, so a simple cut from one marker to the next can break the surrounding structure. Keeping the complete document tree in the browser allows the system to assemble text from the selected hand while preserving that structure during processing.
The browser also handles formatting that can interfere with the identification of words. A line-break element with the break attribute set to no marks a line boundary that should leave the word intact. Removing that element from the processing view lets the parts of the word come together. The Petra example in the paper shows why line layout and reading selection have to be handled together. A word split over a line boundary has an original spelling and a regularized spelling, and each alternative contains the line-break markup. Sematia needs to take the appropriate branch and keep its word intact.
The layering rules tell the browser which elements to exclude and where to substitute a new value. Data attributes on the browser’s representation carry those decisions. The interface can highlight passages that need attention, including locations where the source presents several plausible readings. A user selects a reading by clicking it, and the database retains that selection for subsequent visits to the layer. Finally, the program collects the retained and substituted material for the selected act of writing and shows the resulting text next to the document display.
Corrections and alternatives
The EpiDoc choice element can pair orig, the recorded scribal form, with reg, the editor’s regularized spelling. Sematia takes the contents of orig for the original layer and those of reg for the standard layer. In the Petra example, this means γνο͂σις in the original layer and γνῶσις in the standard layer. The same location can then carry the spelling from the papyrus edition’s transcription and the conventional form proposed by the editor.
A choice can also contain sic and corr. This pair records a form the editor regards as a mistake and its proposed correction. The contents of sic go into the original output and the contents of corr into the standard output. In either kind of pair, the editor has already provided the relationship between the forms. Sematia reads that relationship from the tags. The procedure does not have to infer which spelling is conventional by comparing the Greek strings.
The critical apparatus introduces a different situation. An app entry can encode alternative readings or editorial proposals without uniquely settling which one should enter the annotation. A choice can also offer several possible regularizations. Sematia exposes such alternatives for manual selection. The selected reading goes into the layer to be annotated, since including all the options in sequence would create a text that no editor proposed. This distinction between an encoded pair and a choice among competing proposals is important to the workflow. The first can typically be resolved by the layer rules, while the second requires a judgment about what reading to use.
Abbreviations
An EpiDoc abbreviation expansion uses expan for the expanded expression and ex for the material introduced to complete it. Sematia takes the complete expression for the standard layer. In the original layer it replaces the content of ex with the capital marker A. The marker identifies the missing part to the annotator and preserves the place of the abbreviated word.
In the paper’s example, the scribe wrote the beginning στερε and the editor expanded the word to στερεοῦ. The layer outputs are στερεA and στερεοῦ. The expanded ending supports a case assignment in the standard layer. In the original layer the annotator can supply a lemma if the stem makes the identification persuasive, while leaving the case unassigned when the written letters give insufficient evidence. The distinction is especially relevant for an investigation of scribal inflection. A form whose ending is supplied for reading purposes gives different evidence from a form whose ending the scribe actually wrote.
The same policy applies when the scribe used an abbreviation sign for an entire word. For the sign discussed in the paper, the editor supplies ἔτους, a form of the word for year. The standard layer contains ἔτους, while the original layer has a standalone A. The annotator may have good reason to assign the lemma ἔτος, but the case in the expansion is still the editor’s interpretation. The standalone marker also keeps the item in the sequence, where it can occupy the position corresponding to the expanded word.
Restored, omitted and surplus text
With supplied and a reason of lost, the edition indicates an editorial restoration of material missing from the papyrus. Short gaps and formulaic passages sometimes allow a plausible reconstruction, especially when editors have parallel documents to consult. Sematia incorporates the reconstructed characters into the standard layer and uses SU in the original layer. The marker is inserted within a token if the loss affects only part of the word.
The paper shows a restoration producing µελίχρως, where the surviving text on either side of the loss becomes µSUλίχρως in the original output. It also gives a case where the supplement spans a word boundary. The standard layer reads ὄντος ἐν, and the original layer reads ὄντSU SUν. The change of marker position shows precisely why the system needs to understand the boundaries inside the supplied portion. Treating the entire tagged segment as a single replacement could merge pieces of neighboring words into one token. Replacing the supplied portions within their respective tokens keeps the corresponding words in view.
The procedure also accounts for passages in which a restoration contains entire words and punctuation. The original layer needs corresponding positions for these items if later word IDs are to remain useful for comparison. Sematia splits supplied material using regular expressions intended to follow Arethusa’s tokenization. A regular expression is a pattern for recognizing strings. In this part of the process, the patterns help determine how many token positions the marked material occupies and where the replacement markers belong.
A reason of omitted also introduces editorial material, but it describes a different situation. The editor judges that the ancient writer left something out, rather than that the relevant material has been lost from the surviving object. The standard layer incorporates the proposed addition. The original layer uses OM, so ἀπεγραψάµην in the standard layer corresponds to ἀπOMγραψάµην in the example. Keeping different markers for these cases retains the edition’s distinction between a physical loss and a proposed correction of the writing.
The surplus element reverses the direction of the substitution. It records material that the scribe wrote and that the editor considers superfluous. The original layer retains it. The standard layer replaces it with SR. Each of these treatments applies the same general principle to a different source decision. A word or part of a word can remain visible in one layer while its counterpart identifies the editorial action or the material that would otherwise disappear.
Gaps and uncertain readings
If a gap has no proposed restoration, Sematia inserts G in both layers. This is the outcome for a gap element. Even a standard layer that accepts all the available editorial reconstructions can therefore display an unresolved break. The treebank annotator can see that the text at that point is incomplete and take the gap into account when deciding what analysis the surviving context supports.
The policy for unclear is different. Here the editor has proposed a letter on the basis of traces whose reading is uncertain. EpiDoc carries that letter in the marked text, and the edition can signal the uncertainty with an underdot. Sematia uses the letter in both layers without an added marker in the word. In the example with Ἀλεξάνδρου, the uncertain reading of omicron becomes part of the word presented for annotation. The authors made this choice to avoid interrupting word recognition. An annotator who doubts the reading can leave the word unannotated or change the text in the annotation environment.
This policy also explains why the original layer is a product of editorial interpretation. The source typically already has word boundaries even where the old writing ran continuously. Accents, breathings and iota subscripts likewise reflect editorial decisions and are retained to help readers and linguistic analysis. The authors allow annotators to change word divisions or diacritics when they have grounds for doing so. They also say a supported correction should be proposed for the source edition in the Papyrological Navigator. The original layer is thus usable as an annotated reading of the preserved writing, with editorial conventions still visible in the form in which the words are presented.
Word identities and treebank annotation
Corresponding word IDs are central to the authors’ proposed comparisons. A position in the original text can carry a fragment, while the matching position in the standard text carries a complete word. If a restoration contains multiple words, the placeholders give the original layer positions corresponding to those words. The aim is to avoid shifting the identity of every later token when one layer includes material that the other layer represents with a marker.
The authors also identify an area where the tokenization was still being brought into agreement. Arethusa has a rule for crasis, in which words merge into a form such as κἀγώ. Its configuration treats the merged words separately. Sematia was still developing a corresponding mechanism when the paper was written. The example shows why matching the visible word count before export does not by itself settle what the annotation editor will count as a token.
After assembly, Sematia uses Perseids’ tokenization and transformation components to prepare a treebank template. Arethusa divides the text into sentences at designated punctuation, including the full stop and colon, and uses IDs to identify sentences and tokens. Morpheus provides candidate lemmas and morphological analyses. The annotator evaluates the alternatives where a form is ambiguous and can add analyses for words the analyzer does not recognize. The authors single out Egyptian names as a recurring example of the latter problem.
A treebank record includes the token’s lemma, its grammatical tag, its syntactic relation and a reference to its head. The tag, called postag, is a fixed-position string. Its successive positions encode part of speech, person, number, tense, mood, voice, gender, case and degree of comparison. Each slot is interpreted by its position. For example, n in the case position means nominative and g there means genitive. The code for a token can therefore be queried for a single grammatical feature even when the researcher has no requirements for the other features.
The article’s annotation procedure leaves the assignment of syntactic relations and heads to the human annotator. That judgment remains important in both layers. A standard form may receive a plausible morphological suggestion, but syntax still has to be analyzed. An original form may have a recoverable function even when its inflection is incompletely written. Once a layer is annotated, Perseids places it in a review queue. An administrator can approve it, return it for revision or reject it. Approved treebanks return to Sematia through the dedicated public repository for completed annotations.
Metadata for each act of writing
Date and provenance describe the document. The added fields describe the selected act of writing and are recorded alongside the hand. For handwriting, the user can retain a description from the edition and add a separate description based on inspection of the object or an image. A controlled field records judgments such as professional, non-professional or practised letterhand, with an option for cases where the available information does not support a classification. The practised category is intended for people accustomed to writing who appear to lack formal scribal training. A further field can list other documents in which the same hand has been identified.
The platform distinguishes the actual writer, the scribal official and the author. Each role can have a name, title and Trismegistos person identifier when that information is available. Keeping the roles distinct lets a researcher retain evidence of dictation, responsibility or authorship even where the person who wrote the text remains unidentified. The authors envisage using such fields, once sufficient material has been gathered, to relate writing to people, occupations or titles across the corpus.
Text type and addressee provide information about register. Sematia offers broad text categories such as letter and contract with more specific options. Addressees can be characterized as official or private, with a way to record that the distinction is unknown or inapplicable. Where the relationship is known, the addressee can be marked as a superior, peer or subordinate. Names, titles and identifiers can also be entered. The choices reflect the authors’ interest in comparing language under different social circumstances, including how a writer addresses someone in a different position.
Experiments and results
The source collection and the scope of the demonstration
The paper presents Sematia through worked conversions and examples of annotation and search. There is no experimental split, scored baseline or accuracy measure. The reported quantities describe the size of existing collections, while the examples show what the system produces when it encounters particular tags. These forms of evidence answer different questions. Collection size describes the pool from which texts may be drawn. An individual conversion demonstrates how the method handles specified markup in a passage.
At the time described, the Papyrological Navigator hosted ca. 70,000 Greek texts, alongside 2,000 Latin texts and 1,000 Coptic texts. The Greek documents are the target of the reported workflow. The paper gives no word count for the source collection and emphasizes that the texts range widely in length. A text count therefore describes the inventory of documents and other entries at the collection level. It gives neither the number of Greek tokens available nor the amount that had passed through annotation in Sematia.
Papyrological Navigator source collection by language and text count
The Greek collection targeted by Sematia has the largest reported inventory.
The numbers
| System or setting | texts |
|---|---|
| Greek, Sematia target (this paper) | 70,000 |
| Latin | 2,000 |
| Coptic | 1,000 |
The chart compares source inventories. Its ordering reflects the reported quantity of texts, and the marked Greek category identifies Sematia’s target material. The paper did not run the pipeline on the other language collections for comparison. Counts for the treebanks that informed the work measure a different unit. The Ancient Greek Dependency Treebank is described as having ca. 558,000 tokens, and PROIEL as having ca. 230,000 tokens. These are token counts for the existing Greek treebanks, whose annotations supplied a framework and whose infrastructure the authors could reuse. There is no corresponding Sematia token total in the paper.
The nearest thing to a baseline in the discussion is the workflow available before the conversion. The Papyrological Navigator supports text and metadata searches, and its source contains the editorial distinctions needed to construct the two layers. An annotation editor expects a sequence in which the relevant words can be identified. The authors show why directly uploading the encoded edition, or simply stripping its tags, would be unsuitable. They use that problem to motivate their method, without measuring either approach on a separate test collection.
The results visible in the converted text
The opening of the Petra example shows an edition containing regularized and original spellings side by side within XML choices. The converter can present a coherent sequence for either reading. The rule for the internal line break also allows a word to remain a single item across the change of line. The result establishes what can happen when the edition already supplies both versions and marks the continuation properly. It provides a concrete example of editorial structure being turned into choices about the output text.
The abbreviation and loss examples demonstrate a different result. Sematia can generate a fully expanded or reconstructed form in the standard layer while retaining a visible reminder in the original layer of how much of the word is supported by the surviving writing. In στερεA, the annotator sees the surviving stem and the lack of a written ending. In the example with ὄντSU SUν, the output preserves the distinction between adjacent words even though the restoration in the source is encoded across their boundary. These results are observable in the output strings. The grammar subsequently assigned to them remains a separate stage.
The source-compatible representation also makes manual reading selection operational. A user can create a layer from an act of writing, choose which apparatus reading to include where necessary, and return to a layer with the same selections in place. The paired texts can then enter the same annotation and review workflow. What the paper establishes here is a route from an edition to reviewable treebank data with the relevant hand and layer recorded. It reports no timing study of how long that workflow takes to complete.
There is a substantive difference in what each output lets a scholar investigate. The standardized text can offer the fullest available version of a sentence for syntactic analysis, including an element reconstructed from the context. The original text can expose a form the editor regularized, or show that the only evidence for a particular feature is the editorial expansion. Even when a reconstructed analysis appears straightforward, a researcher can use the paired representation to check which part rests on the visible form.
Searches over the resulting annotations
Sematia includes early tools for exporting annotated layers as an archive, counting token frequencies, displaying a hierarchical view of the collection and searching the treebank fields. The search interface combines text or grammatical conditions with metadata filters such as document date. A field can be searched through a regular expression, which lets a researcher select a value at a fixed position in the morphology tag without specifying the entire tag.
The paper illustrates a search for participial verb forms functioning as subjects. SBJ is the subject label in the relation field. The pattern ^....p in the grammatical field looks for a tag that begins with any characters in the positions represented by the dots and then has p in the mood position. The caret anchors the pattern to the beginning of the tag. Together, the conditions select tokens whose morphology marks a participle and whose syntax has been annotated as subject. A string search for a written word would require the researcher to know which spellings and inflected forms to look for in advance.
The authors also describe a comparison in which an original-layer token has a dative case tag and its standard-layer counterpart has genitive. They give .......d for the original and ^.......g for the standard. The dots allow arbitrary characters before the case letter. The d and g constrain the case values in their respective searches, and the caret in the second pattern anchors it to the start of the tag. The aligned positions make the comparison about the two analyses of a corresponding word. A date filter or a hand-level field can narrow the material to the part of the collection relevant to the question.
The paper offers those searches to explain what the fields and alignment can support. It does not give a hit count for either example or establish the prevalence of the phenomena. A comparison also depends on what annotators have entered. A dative-to-genitive match is a pair of recorded case assignments, so interpreting a match requires inspecting the word forms and the editorial decisions behind them. Where the original case is left open because the ending is abbreviated, the material calls for a different inquiry from a comparison between explicitly analyzed cases.
What the ablations show
The paper reports no ablation experiment. Its controlled contrast is between distinct readings derived from the same source, and its analyses use examples to show what those readings make available. Because each layer starts with the same edition and act of writing, the conversion examples let the reader identify which differences arise from an expansion, a restoration or a decision about a correction. They do not attach a performance score to any of those rules.
Reading the effects of individual conversion rules
An abbreviation provides the clearest comparison. In the standard layer an expanded case ending becomes available for analysis. In the original layer the marker says that the ending was not written out. The annotator can still recognize the lemma where justified, so the paired versions distinguish confidence about the identity of a word from confidence about its inflection. An analysis that counted the expanded ending as direct scribal evidence would hide that distinction. The example shows how the conversion rule keeps it available to the annotator.
A restoration across a boundary tests a different property of the representation. The standard output supplies the missing characters and yields the words that the editor read. The original output marks loss in each relevant position. The comparison shows that the unit of a stretch of editorial markup can differ from the unit of linguistic annotation. A replacement that applied once to the whole span would risk disturbing the token identities. The separate markers preserve the boundary between the words in the displayed example.
The treatment of gaps and uncertain letters exposes another distinction. An unresolved gap remains visible in both outputs because the editor has supplied no text for it. An uncertain letter, on the other hand, takes its proposed value in both so that the annotation editor can work with a recognizable word. Agreement between the two layers can consequently arise from a shared uncertain reading. Conversely, a marker on only one side may record a decision about the edition, rather than a difference in ancient grammar. These are consequences of the conversion rules that a researcher can check against the source encoding.
A written form with competing analyses
The discussion of πέµψε from Mons Claudianus illustrates a case where a comparison with just the editorial standard leaves an open linguistic question. The form occurs with καλῶς ποιήσεις in a request. The paper explains that the morphological analyzer would classify the written string as a third-person singular aorist indicative. The directive context gives the authors reason to reject that role in the passage. Thus a plausible dictionary analysis of the spelling in isolation can be inappropriate for the sentence.
The editors regularize the form to πέµψον, understood as an aorist imperative addressed to the recipient. The authors discuss confusion between unstressed vowels and the possibility of dropping final /n/ as reasons the spelling could represent that form. They also consider πέµψαι, an aorist infinitive, since the spellings associated with αι and ε can be confused in the papyri. A decision about which grammatical analysis to enter therefore affects whether the passage can count as evidence that the infinitive occurred with this way of making a request.
The example distinguishes what a layer comparison reveals from what the linguistic analysis must decide. The original spelling is an essential part of the evidence, and the regularization records the editors’ interpretation. An alternative analysis can remain worth considering when phonology permits more than one reading. The authors discuss marking several possibilities in a future variation layer, which would give a researcher a place to represent that uncertainty. The existing pair can make the disagreement visible. It cannot settle the underlying grammatical question by construction.
Interpreting matches across layers
The paper’s case-agreement example gives a reason for querying the analyses together. If the original and standard layers record different values in the case slot, the comparison can isolate a potential instance of unexpected inflection. Inspecting the aligned tokens then lets a reader determine which letters survive, which features were annotated and which reading the editor used. The same method can be applied to other slots, including mood, person and tense, when the corresponding tokens have analyses.
This is a comparison at the level of an annotated occurrence. A change in a tag can be informative about the difference between supplied and preserved wording, and a consistent pattern across occurrences could motivate further study of a scribal practice. The paper does not present a measured distribution of those differences or isolate the contribution of one preprocessing component to the success of a query. Its examples instead trace how a researcher gets from a difference in the edition to a difference that can be inspected in an annotation.
Limitations
Limits identified by the authors
The authors explicitly qualify what the original layer represents. They retain word divisions and diacritics from the edition because these make the Greek readable and aid semi-automatic analysis. A diplomatic transcription would follow the written object more closely in those respects. Here the layer gives a readable editorial transcription oriented towards preserved scribal forms. Researchers investigating word division or the reading of a particular letter therefore have reason to return to the edition and, when necessary, the object or image.
The processing of uncertain letters adds another qualification. Incorporating the proposed letter into both layers makes it easier for the annotation environment to recognize the word, but it can lead to annotation based on a reading that is subsequently revised. The authors allow the annotator to leave an item untreated or to alter the text when justified. Those options make uncertainty manageable by a reader. They do not record uncertainty as a new grammatical feature in the current treebank.
The authors also discuss the variability of editorial standards. Some spellings receive a regularization and others can remain unmarked even when they show a similar phenomenon. A comparison of the layers can only expose the contrasts that its source encoding and annotation make available. It can therefore recover an editor-marked difference while missing other examples of the same spelling practice. What counts as a standard comparison form can also be debatable, particularly in cases where multiple interpretations of the scribal form remain possible.
At publication, the annotation templates gave the project better access to morphology and syntax than to variation in spelling or sound. The authors describe the proposed variation markup as still under consideration. They also characterize the query tools as preliminary and point to crasis as an example of tokenization work still in progress. These limits matter to the ambitions of the project. The code can create and display layers, while some kinds of comparison still require more annotation or more consistent handling of token boundaries.
The paper describes the importer as optimized for material from the Papyrological Navigator. The authors judge that it could be adapted to other EpiDoc material, including epigraphic corpora. That observation concerns potential reuse of the encoding and the method. They present the implemented rules in the context of the documentary papyri.
Limits of the reported demonstration
The paper’s examples establish that designated inputs receive designated treatments, but they cannot estimate how frequently those treatments suffice over the whole collection. There is no sampled evaluation of conversion errors or coverage, and no accounting of how frequently mixed markup, ambiguous apparatus entries or tokenization differences require intervention. A reader can verify the logic of the examples for particular tags. Extrapolating that behavior to the entire source inventory would require evidence the paper does not report.
The annotated comparison also depends on the consistency of work across the layers. Preserving word positions gives a structural basis for comparing fields. It does not ensure that an annotator will be able to assign a grammatical feature in both places or that different annotators will agree on an ambiguous passage. The Perseids review workflow gives the project a way to check and revise annotations, but the paper gives no agreement scores or comparison of reviewed annotations against a separate reference analysis.
The addition of metadata supports a more narrowly described set of texts, yet a field can only convey the evidence available for it. The encoding of a hand boundary can indicate a change of writer within a document. It does not by itself supply the writer’s name or tell whether the writer composed the passage. Similarly, an editor’s description of a hand can support a judgment about professionalism without supplying a complete account of the person’s training. The paper allows indications of uncertainty or missing information, and it leaves the coverage of those fields unquantified.
The linguistic examples should be read at the scale on which they are presented. They show why a spelling can matter, why a completed ending can mask missing evidence and why hand-level metadata can be useful. They do not demonstrate that changing the preprocessing causes a measurable gain in the accuracy of morphological analysis, the efficiency of manual annotation or the quality of a historical inference. Those would require outcomes defined independently of the rule demonstrations.
Finally, the paired structure gives priority to the reading selected for annotation when an apparatus offers alternatives. Retaining the source document and the user’s selection makes the basis of that layer recoverable. A query over the annotated output follows the selected analysis. In a case like πέµψε, counting the retrieved instances as evidence for a particular construction requires attention to how the ambiguous form was handled. The authors’ proposal for a variation layer responds to this problem by envisaging a more explicit representation of competing interpretations.
What came after
No subsequent study is documented as building on Sematia. The paper closes with work still in development, including deeper annotation of variation and more extensive searching. Those plans show where the authors intended to take the paired treebanks and which information they still needed to add.
The planned variation layer would duplicate the treebank XML of the original layer and add markup at relevant words. The authors consider a var element with types for phonology, morphology and syntax. They also envisage finer distinctions, such as information about the immediate context of a spelling, and the possibility of recording several explanations for the same form. A spelling might be consistent with a sound change, a choice between grammatical endings, or a combination of the two. An explicit variation tag would let a query target the proposed phenomenon as well as the original spelling or its standard counterpart.
The paper situates that plan alongside the existing Trismegistos Text Irregularities database. As the authors describe it, that resource collects spelling information across the Duke Databank on the basis of editorial corrections, considering the data sound by sound. Sematia’s proposed annotation would address cases where an editor supplies no correction or where a difference can be analyzed in more than one way. The two sources of evidence matter for different reasons: an existing correction makes a comparison available at import, while new markup can identify a relevant feature that the edition left implicit.
The search plans extend the comparative purpose of the paired layers. The authors describe exporting both sets together or as separate collections, using external treebank query systems, and expanding the platform’s own early search functions. The intended queries combine information from corresponding original and standard tokens and can restrict the comparison by document or hand metadata. That direction follows directly from the method. Once each reading has its own annotation, a question about a scribal form can bring together the surviving word, the editor’s interpretation, its grammatical role and the circumstances of the act of writing.
Cite
Cite as Marja Vierros and Erik Henriksson. 2017. Preprocessing Greek Papyri for Linguistic Annotation. Journal of Data Mining & Digital Humanities.
@article{vierros2017preprocessing,
title = {{Preprocessing Greek Papyri for Linguistic Annotation}},
author = {Marja Vierros and Erik Henriksson},
journal = {Journal of Data Mining \& Digital Humanities},
year = {2017},
doi = {10.46298/jdmdh.1385},
url = {https://doi.org/10.46298/jdmdh.1385}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/grc-nlp-2017-vierros-preprocessing-greek-papyri/