Elamur Research

Dmytro Chaplynskyi. Introducing UberText 2.0: A Corpus of Modern Ukrainian at Scale // UNLP 2023 @ EACL

Paper · 2023 · Dmytro Chaplynskyi

Summary

A researcher who can look up examples in a collection of Ukrainian writing may still be unable to obtain the collection itself. Chaplynskyi presents UberText 2.0 to address that gap. It provides a substantial body of modern Ukrainian writing for direct download, together with open-source software for maintaining it. The release draws on news outlets, literary collections, public Telegram channels, Ukrainian Wikipedia, and Supreme Court decisions. Where the project returned to sources used in UberText 1.0, it acquired and prepared the material afresh.

A source-specific extractor identifies the writing and its descriptive information, such as the publisher and publication date. The project runs these extractors through Scrapy, including for inputs already available as bulk files. Where extraction can retain elements such as headings and lists, it represents them in Markdown. MongoDB holds the documents and their metadata. Associated records hold prepared versions of the writing, including its division into sentences and tokens, the dictionary forms assigned to words, and tags for grammatical categories. These added descriptions are forms of linguistic annotation.

The stored material supports different outputs. A researcher can obtain documents with their structure intact, tokenized sentences with punctuation omitted, or counts of recurring sequences of words or dictionary forms. Selection can use existing information about the documents, including when and where they were published. Newly acquired texts can receive the same processing without requiring earlier annotations to be calculated again. The paper presents this arrangement as the basis for a regular publication schedule.

The filtered corpus occupies 32 gigabytes and contains 8,592,389 texts, with 156,053,481 sentences and 2,489,454,148 tokens. The intake before filtering amounts to 11,048,462 texts and 3,274,175,948 tokens. News contributes the most material at that stage. Projects with early access used the corpus for purposes including Ukrainian word representations and speech transcription. The paper’s quantitative evidence characterizes the corpus and its export operation. Its software can serve as a starting point for a similar project in another language, where extraction rules and appropriate linguistic tools still need to be put in place.

Deep dive: Dmytro Chaplynskyi. Introducing UberText 2.0: A Corpus of Modern Ukrainian at Scale // UNLP 2023 @ EACL

UberText 2.0 brings modern Ukrainian writing into a downloadable corpus with reusable annotations and several ways to export the data. · about 33 minutes to read

The problem and its context

Access depends on what the researcher needs to do

The paper uses low-resource to describe the situation of Ukrainian in language technology. It puts the number of speakers at more than 40 million and describes a language with a substantial system of inflection. The shortage it addresses concerns publicly obtainable collections that researchers can use for computational work. The size of a speech community and the supply of datasets meeting a particular research requirement describe different things. A community can produce abundant writing while the work of gathering, preparing, and distributing it remains undone. The paper’s description of inflection concerns morphology.

A corpus is a collection of texts assembled for study or computational use. The way people obtain access to it affects the studies they can carry out. A corpus manager can return instances of a word or let a user inspect the surroundings of an expression. A researcher who wants to run a new analysis over every document needs access at a different level. Reading a succession of search results supplies examples. Working from a download gives a researcher control over such choices as how to divide documents, which passages to count, and what information to retain with each observation.

The distinction also applies when the initial question sounds simple. An investigation of vocabulary might need examples of a term in context, a count over a particular date interval, or every document in that interval so it can apply a procedure of its own. Each request places different demands on a collection. A search interface is well suited to exploring usages it can retrieve. Direct access is especially relevant when a study needs to apply the same operation systematically to a large set of texts, including texts that a researcher would have no reason to query individually. These are complementary uses within corpus linguistics.

The introduction motivates the project with applications that depend on sizeable text inputs. These include developing representations of words, helping speech systems produce written output, and building systems for translation or answering questions. A collection can contribute to these applications in different ways. For word representations, the contexts where a word occurs supply evidence about its patterns of use. For speech transcription, written material can supply examples of likely sequences in the target language. The corpus project addresses the supply of that material for natural language processing, including work on word embeddings and question answering.

The choices available before UberText 2.0

Chaplynskyi describes several responses to a shortage of dedicated material. One is to use a multilingual system and rely on the coverage it already has for the desired language. The introduction points to earlier research on the relationship between how written input is divided into units and how a multilingual system performs on an individual language. The reference motivates the value of a language-specific resource without supplying an estimate of what UberText would contribute in a particular application. The division of written input into such units is tokenization. How Good Is Your Tokenizer?

A second option is to use existing multilingual text sources. The introduction names Wikipedia, Common Crawl, and OSCAR as sources researchers might draw on. A third option is to gather material independently with web crawling, the automated acquisition of pages or other records. Collecting independently gives a project direct control over which sources it uses. It also gives that project responsibility for extracting the intended writing and screening for unwanted material. The author treats that engineering work as a substantial commitment for a team whose primary interest may lie in analyzing the resulting text.

The background describes a range of corpus-building practices. Brown and the Ukrainian BRUK project illustrate the deliberately assembled end of that range, where balance can be a design target. Common Crawl and OSCAR illustrate the large, automatically gathered end. The range is relevant because collection size alone cannot specify what a corpus contains or what guarantees a user receives. The paper cites work on OSCAR in connecting large-scale web collection with the problem of preparing cleaner data at the level of documents. Towards a Cleaner Document-Oriented Multilingual Crawled Corpus

For Ukrainian specifically, some resources combined large holdings with restricted ways of obtaining them. The article describes Zvidusil as a mainly automated collection of 2.8 billion tokens whose most recent update was in 2017. GRAC-16 had nearly 1.9 billion tokens, substantial descriptive information, and a schedule of updates twice a year. Chaplynskyi groups both under resources unavailable for direct download. The details about GRAC-16 matter because descriptive information and continued maintenance were already valued and available in Ukrainian corpus work. Full-file distribution was a separate condition.

KUM, the Ukrainian Text Corpus, offered about 120 million tokens through a limited search interface. The Leipzig Ukrainian Web Corpus provided samples of up to 1 million words. In one case the figure describes the holdings behind the interface, while in the other it describes the size of an available sample. Both figures help explain the state of access once their units and conditions are clear. Treating them as equivalent measures of available data would obscure precisely the problem the author is describing.

The same access issue appears at larger scales. Chaplynskyi puts Araneum Ucrainicum Beta at around 5,249 million tokens and describes access through a corpus manager for registered users. The paper describes ukTenTen as having about 3,280 million tokens with access for subscribers. The comparison is about the form in which users can work with these resources. A large corpus visible through a manager can be valuable for searching even if a project looking for a collection of files must find another source.

The Chtyvo Library corpus appears in the comparison for a different reason. The paper reports 6.6GB of material produced by optical character recognition, which converts writing in images to machine-readable characters, and judges the resulting text to be of mediocre quality. The reported unit here measures storage. A researcher deciding whether to use the material would also care about the reliability of the conversion. The example shows why the paper’s proposed requirements include a quality procedure alongside scale and access.

For collections that could be downloaded, the paper mentions Brown-UK and UberText 1.0. Brown-UK offered around one million words and is described as a carefully balanced, high-quality corpus. The previous UberText had around 665 million tokens, published as shuffled sentences, and had last been updated in 2016. Shuffling permits studies that use the wording within a sentence. When a study needs to recover which sentences formed a passage or which passages belonged together, the original document organization becomes important.

A corpus has to state what it offers

The paper calls for a clear agreement with users about a corpus’s design. That includes its availability, how it was built, the added information or search facilities supplied, and its approach to updates. A researcher can then assess the relevance of the corpus against the needs of a study. For example, an investigation that asks whether a word occurs in writing from several publishers needs reliable source information. One that seeks recurring arrangements of word forms needs a workable representation of those forms. Such requirements can be evaluated against the description of the collection.

For the new UberText, Chaplynskyi sets out an intended combination of substantial volume, permissive access by download, contemporary coverage, quality controls, and additional linguistic layers. The layers matter partly because of Ukrainian inflection. A search or count organized by dictionary form can bring inflected occurrences together. A grammatical restriction can then narrow that result to items assigned a particular category. Document structure and descriptive information serve a different set of questions, including queries about the origin and date of the writing.

Maintainability completes the problem the article takes on. Producing the first UberText release had required considerable manual preparation. The original design also made it hard to update the source material or generate another output from it. On that account, a corpus could remain downloadable while becoming progressively less current. The new project therefore had to address what happens between obtaining the writing and handing a researcher a file, including how much of that work must be repeated the next time the collection changes.

The method, step by step

Follow a document through the pipeline

Consider a news article with a headline, a publication date, a body divided into sections, and a standard message inserted by its publisher. UberText first has to decide which parts of the page belong in the corpus record. The document that comes out of this step can preserve its sections and carry the date in a separate field. It can then receive sentence boundaries, a sequence of tokens, and grammatical information. All these representations refer back to the same article. The editor can later combine the article with other records chosen by date, then decide which representation to send out.

This is the pipeline’s basic division of work. Acquisition deals with the forms in which sources publish or provide their data. Preprocessing prepares representations that can be used more than once. Export determines the selection and arrangement of material a particular user receives. The paper describes an editor launching jobs at the appropriate stages. The architecture makes their inputs and outputs explicit enough to reuse when another document arrives or another export is requested.

How UberText turns source records into downloadable data

The steps in order.

How UberText turns source records into downloadable dataStep 1: Route web and bulk inputs through source spiders1. Route web and bulk inputs through source spidersStep 2: Capture document content, structure, and provenance2. Capture document content, structure, and provenanceStep 3: Save documents in their subcorpus collections3. Save documents in their subcorpus collectionsStep 4: Inspect samples and run linguistic processing4. Inspect samples and run linguistic processingStep 5: Attach processed records to their documents5. Attach processed records to their documentsStep 6: Apply metadata, language, and length criteria6. Apply metadata, language, and length criteriaStep 7: Render the chosen layers or calculate frequencies7. Render the chosen layers or calculate frequenciesStep 8: Compress the exported stream when requested8. Compress the exported stream when requested

Bring different sources into the same workflow

The news sources cover national, regional, and specialist outlets. Their contributions include interviews, opinion writing, and blogs as well as short reports and longer articles. Fiction comes from public libraries and includes novels, other prose, and some poetry. These categories tell the editor where the material came from and give the researcher a starting point for selecting texts. Within a category, a source identifies a more specific origin such as a publication.

Three other parts of the corpus draw on bulk material. The Ukrainian Wikipedia dataset comes from a Wikimedia dump. The snapshot is from January 2023. Public Telegram material comes from the TgSearch project. The Supreme Court decisions were obtained through Court on the Palm in RTF, a format for representing text with document formatting. A separate CSV index supplied tabular information about the records. The paper traces initial publication of the decisions to the State Judicial Administration of Ukraine through the National Open Data Portal.

Scrapy provides the common framework. A spider in this setting is code that knows how to acquire material from a source and turn it into records. The project provides a dedicated spider for each source. A spider working on a newspaper identifies portions of webpages and supplies the relevant content to the project. A spider consuming material already available in bulk works through the structure of that input. Running both through the same framework lets the project manage them as data sources in spite of the difference in acquisition.

The Wikipedia input illustrates where a general workflow still needs a specialized reader. The project adapted the Wikipedia reader from gensim, with particular attention to accented characters and Ukrainian section titles. A bulk copy removes the need to fetch each page separately, while the software still has to interpret what the dump contains. The reader and the spider occupy different roles in that operation. One interprets the contents of the document collection. The other brings the resulting material into the same managed process as the other subcorpora.

On a website, acquiring a page is only part of gathering a text. The project needs to recognize the article and details about it within the page. A publisher may place suggested reading or a subscription request inside the area that also contains the writing. The spiders use hand-written CSS or XPath selectors to identify page elements, including recurring material to omit. Both kinds of selector give the program a way to refer to a particular element or region in a structured page. The project applies them using knowledge of each source’s layout.

The reason to remove such material early is practical. A subscription request can be in Ukrainian and can appear inside a perfectly long document. A later language check can accept it on those grounds. The extractor has access to clues about how and where the publisher places the message. Using those clues at collection time addresses an issue that the language and length checks address only indirectly. The resulting record is already the product of choices about which parts of a page count as the text.

Carry forward structure and descriptive information

Layout also contains evidence worth retaining. A subheading can mark a new argument or topic, and a list can express the relationship among items in a passage. Where the extracted HTML makes it possible, UberText uses html2text to represent such structure in Markdown. Markdown conveys distinctions such as headings, lists, and emphasis with conventions that can be read as text. It allows the same acquired document to be delivered with visible structure or to serve as the starting point for a version prepared without markup.

A marked-up export must be understood in that context. Its text represents what acquisition captured and converted. The conversion has already preserved some properties of the source and omitted material that the spider was designed to exclude. The term raw as used for a possible deliverable describes the early, retained representation within this pipeline. For a question about what appeared at a particular place on the originating page, the document’s source information adds a different kind of evidence from its stored Markdown.

The basic record includes the body and a title where available. Its metadata can include a publisher or other source, an author, the source URL, and the publication date. Categories, tags, and information about a main image are also among the fields the paper describes. A date stored this way can help determine inclusion in an export. It does not have to appear among the words analyzed in the body. That separation is important when computing counts, since words in a category label answer a different question from words used by the writer.

Some properties make sense for a particular group of records. For a court decision the paper gives the judge and geographic region as examples. A structure that accommodates those properties lets a court export draw on details that would be immaterial in a collection of Wikipedia pages. Similarly, where the author’s identity or the date is available, preserving it adds a means of attributing a text or choosing material for a particular study. The paper’s list describes the range of information a record can carry.

Give each representation a place in storage

The project chose MongoDB, a database in which records are stored as documents. A database collection is a group of such records. UberText places each subcorpus’s source records in its own collection. Fields can vary among document types and individual records, so the system can accommodate the metadata that comes with each source. This property fits a corpus assembled from both websites and supplied archives, whose descriptions were produced for different purposes.

The database also offers compression, which the author identifies as useful for a project of this scale. There is storage to account for beyond the words of an article. Documents carry metadata, and processed text can add an assignment for every word or token. The database’s storage compression addresses the accumulated cost of holding many such records. Later, the pipeline also compresses particular representations through its choice of how to write their contents, and it can compress the files it sends out. Those decisions apply at different stages.

UberText stores derived layers in additional collections and links them to their source documents. A layer can be a prepared version of the writing, as with normalized text, or information about the writing, as with grammatical tags. A linked structure makes it possible to select documents from their original descriptive fields and retrieve the appropriate layer for each selected document. Selecting news articles from a publication and obtaining their word forms can thus be treated as parts of the same job.

Keeping the layers also preserves choices that would otherwise be settled during preparation. For a task concerned with punctuation, the stored token sequence can retain it. An export aimed at word counts can omit it. If the prepared token sequence were the only retained account of an article, someone who needed the paragraphs and headings would have less to work with. The database holds the extracted document as well as the derived information, so the editor has both representations available when making a release.

Adding a new output and adding new information to the system consequently involve different work. A format change can draw on an existing layer and arrange it differently. A new type of annotation requires a source of annotations and a job that can write them. A new filter can operate on fields already held in the database, if those fields express the criterion. The paper presents these possibilities as a way to extend the corpus without starting over at source acquisition for each new use.

Check what the spiders acquired

Source-specific collection depends on a developer’s understanding of the input. When the input is a site, that understanding can become dated as a publisher changes its design. The project has the spider developer check the extractor before a major corpus update. A crawler can continue receiving pages after a design change while retrieving the wrong contents. The check concerns what the spider extracts from those pages as well as whether it still runs.

At the end of a crawl, the spider produces samples for volunteers to inspect. It takes material at the earliest end of the source’s coverage and at both extremes of document length. It also selects records without a title or a body and draws a random sample. A missing body gives a reviewer a direct reason to ask whether a rule found the right part of the input. A very long record could warrant a look for text outside the article. Old records can reveal differences in layout within a single source.

The random selection has a complementary purpose. Many mistakes are compatible with ordinary length and plausible metadata. An extractor could capture a neighboring block of writing and still return something that looks like a complete record from its field lengths. Review of a random draw gives volunteers a chance to encounter such cases. The paper describes volunteers reporting problems in the project’s repository. It illustrates both a view across data sources and a more detailed view from which a reviewer can inspect samples for a source.

For the social portion, selection also takes place at the channel level. The project excludes channels that publish exclusively in Russian, as well as channels considered propaganda by media-monitoring organizations. The paper identifies Detector Media in this connection. A channel-level decision determines what enters the source pool. Language detection on individual documents then supplies a separate piece of information that can be used in making an export from what is in the database.

Add the reusable linguistic information

After a newly acquired batch has been stored, the editor can initiate the preprocessing jobs described in the article. A cleaned representation is prepared by removing Markdown and normalizing the text. The Python Markdown library is used for markup removal. Normalization includes making hyphens, apostrophes, and Ukrainian diacritics consistent and addressing encoding problems and word wrapping. These changes are important at the point where a program needs to read the words or find their boundaries. The version carrying the document’s captured markup remains available through the original record.

The language of a source is an imperfect guide to the language of every item in it. The paper mentions that some news sites also contain articles in Russian or English. UberText uses CLD3 to assess document language. The reason for recording the assessment at preprocessing time is that the editor can use it when deciding what to export. A later job can therefore use language as one of its criteria without detecting it anew on each run.

Sentence segmentation identifies the boundaries between sentences. Tokenization divides the writing into the units that will be counted or annotated. The project retains punctuation in the prepared token data. A sentence boundary and a punctuation token convey distinct information. The boundary can determine where to put a new line in an export of sentences, while retaining the token gives an application access to the punctuation present in that sentence. The eventual format can make use of either distinction.

A further operation supplies the dictionary form associated with each word occurrence. That form is its lemma, and assigning it in context is lemmatization. For a language with rich inflection, the form a writer uses in a sentence can vary with grammatical circumstances. A count by lemma groups forms that the tool assigns to the same underlying word. A count by the actual written token can preserve the distribution of the forms themselves.

The paper identifies nlp-uk-api as the interface the project uses for normalization, sentence segmentation, tokenization, and lemmatization. It wraps nlp-uk, the Ukrainian library cited in the paper. A wrapper gives the pipeline a way to pass text to a processing component and obtain its results for storage. In discussing reuse, the author also identifies the relationship of that Ukrainian tooling to LanguageTool. This part of UberText integrates existing processing capability into the corpus workflow.

The remaining job adds grammatical categories and features. A category such as noun or verb describes how a token is analyzed, while features can express additional grammatical distinctions. UberText uses a Ukrainian-tuned fork of UDPipe together with its corresponding Ukrainian tagger. Its stored categories and features follow Universal Dependencies. The operation of assigning the categories is part-of-speech tagging.

The author notes a practical consequence of applying grammatical annotation to every token: the written tag and features can take more space than the word they describe. The project converts the output to a more compact text representation before it is stored. This is a choice about encoding the results of an existing tagging operation. The corpus method describes how it obtains and retains such results. It supplies neither a training procedure for the Ukrainian tagger nor a mathematical objective for constructing the corpus.

Make selection decisions at export time

When the editor requests a deliverable, the job determines which stored records are eligible. It can use the subcorpus, individual source, publication date, or other descriptive fields. The paper gives the example of restricting an export to recent publications. Because the date is already held with the original document, that selection can be combined with a request for a processed layer. The selected records can then supply either the documents themselves or a more specialized representation.

The paper describes an ordinary export practice of combining a length condition with confidence that the writing is in Ukrainian. The length condition, using the title and body together, is:

Combined length > 100

Combined length is the character count of the title and body taken together. The sign > means that this count must be strictly greater than the threshold, and 100 is that threshold in characters. The separate language condition uses the result from CLD3. The paper motivates these choices with short or incomplete material from Wikipedia and with articles in other languages retrieved from news sites.

Selection of documents is followed by selection of the output representation. The editor can keep the document with its markup or produce tokenized text split into sentences. An output can omit punctuation or provide lemmatized writing. The software also supports a choice of unique sentences. Each decision changes what an occurrence in the delivered file means. In a unique-sentence output, for instance, a recurring sentence can appear as one entry. In a document output, it can occur in the contexts in which it was collected.

Another export operation generates frequency dictionaries of n-grams. An n-gram is a sequence of consecutive units, and the units here can be tokens or lemmas. The export must tally the sequences it finds. It depends on stored preparation for the underlying units, while the counts themselves are produced for the requested output. This makes it possible to obtain frequencies over a selected set of documents without recomputing their tokenization or lemma assignments.

Finally, the job can compress the outgoing stream with bzip2 or lzma2. The paper shows interfaces for choosing settings for text exports and for generating frequency dictionaries. It also shows tools for operating the spiders and inspecting the resulting data. The project releases the implementation through Lang-uk. The software encompasses the collection workflow, preparation and quality inspection, statistical work, and delivery.

Prepare for additions and repeat releases

The database can hold earlier material and freshly acquired documents together. Jobs can then compute the reusable layers for the additions. When the requirements for earlier documents stay the same, their existing layers are available for the next export. The whole collection can be released again even though the underlying preprocessing was incremental. The paper’s argument is that expensive preparation should be tied to what needs processing, while export can be run for whatever scope is required.

A new deliverable can also be issued between planned releases. An export limited to a collection of sources could become useful after a researcher formulates a new question, even if the source records and their linguistic information were already present. Expanding coverage to a different source has a different dependency: the writing must be acquired and made to fit the processing workflow. Treating these as different operations lets the project respond to a request for a new view without making it wait on unrelated collection work.

The author aims for annual releases and envisages expanding the roster of websites and social sources. When text material and its coverage change, an identifiable release gives a researcher a way to specify which body of writing entered a study. The proposal to track changing vocabulary also depends on acquiring writing from successive periods. The paper describes the process meant to support those aims and reports on the corpus produced at the time of writing.

Experiments and results

What is measured

The results characterize the assembled and exported corpus. The main measures are document counts and token counts, with sentence count and storage volume reported for the filtered corpus as a whole. A count of texts concerns the corpus’s individual records. A count of tokens concerns the number of units into which their writing is divided. A Telegram item and a novel can each be counted as a text, while making very different contributions to the token total. The measures let a reader see those aspects of the release separately.

There is no task benchmark with a training partition and a held-out test set in the corpus report. The paper draws its quantitative comparison from the intake, its source breakdown, and the collection after filtering. The predecessor and other Ukrainian corpora provide historical comparisons for volume, access, and update practices. Their figures were reported for resources with different forms of delivery. A fair reading keeps those conditions attached to the figures.

The intake by type of source

The news portion spans 2000-2023. From 38 sites, the table records 7,208,299 texts and 2,172,526,177 tokens before filtering. News leads the corpus on both of those measures. The input figure covers the entire news category as defined by UberText, including pieces that a reader might distinguish within journalism, such as an interview and a short report. The paper’s tabulation works at the subcorpus level for these statistics.

The fiction portion, from the public libraries, contributes 23,796 texts and 253,321,894 tokens before filtering. The table gives no time span for it. Fiction is the smallest category by count of texts, whereas the social category supplies the fewest tokens. This distinction follows from counting records on one hand and their contents on the other. Anyone combining the sources for an analysis needs to know which unit gives a document its influence.

The table treats the court material as a single source spanning 2007-2021. It contains 111,658 texts and 285,252,442 tokens before filtering. The Wikipedia material is also recorded as a single source. Its span is 2004-2023, with 2,819,395 texts and 499,603,082 tokens at the same stage. The span refers to the recorded coverage of the writing, while the snapshot date identifies when the bulk Wikipedia input was current.

The social records cover 2018-2022. The project reports 264 public channels, 885,314 texts, and 63,472,353 tokens before filtering. Here a source is a channel in the supplied collection. The use of the same column for channels, publishers, libraries, and bulk inputs makes the source count an account of acquisition units. The text and token columns describe how much material was gathered under them.

UberText 2.0 intake by subcorpus and token count

News contributes the most tokens, followed by Ukrainian Wikipedia.

UberText 2.0 intake by subcorpus and token countNews (this paper): 2,172,526,177News (this paper)2,172,526,177Wikipedia: 499,603,082Wikipedia499,603,082Court: 285,252,442Court285,252,442Fiction: 253,321,894Fiction253,321,894Social: 63,472,353Social63,472,353
The numbers
System or settingtokens
News (this paper)2,172,526,177
Wikipedia499,603,082
Court285,252,442
Fiction253,321,894
Social63,472,353

UberText 2.0 intake by subcorpus and document count

The social collection has more documents than either court decisions or fiction.

UberText 2.0 intake by subcorpus and document countNews (this paper): 7,208,299News (this paper)7,208,299Wikipedia: 2,819,395Wikipedia2,819,395Social: 885,314Social885,314Court: 111,658Court111,658Fiction: 23,796Fiction23,796
The numbers
System or settingtexts
News (this paper)7,208,299
Wikipedia2,819,395
Social885,314
Court111,658
Fiction23,796

The ordering by amount of writing and the ordering by document count answer different questions about the intake. An analysis that samples documents treats a record as the starting unit. A frequency count over pooled text gives more scope for observations from sources with a greater volume of tokens. Both approaches encounter a prominent contribution from news. The contrast involving the social, court, and fiction collections shows how a change of unit can affect the apparent makeup of the remaining material.

The time spans are another aspect of coverage. The table puts the start of news earlier than the start of the other dated categories. Social covers a more restricted interval. These are bounds on the periods represented in the recorded intake. They leave questions about the relative density of material within any period to an examination of individual dates and sources.

What the filtered release contains

For the entire corpus before filtering, the detailed table gives 11,048,462 texts and 3,274,175,948 tokens. After filtering it gives 8,592,389 texts and 2,489,454,148 tokens. The description of the outgoing corpus also reports 156,053,481 sentences and 32 gigabytes of text. All of those outgoing figures refer to the filtered collection as a whole. The paper supplies a source breakdown for the intake, so a comparison of the two stages can be made directly for the full corpus.

The abstract and the detailed account use figures from different stages in describing the resource. The abstract’s 3.274 billion tokens corresponds to the intake total in the table. Its 8.59 million texts corresponds to the filtered document total. In the main description, the storage figure accompanies the filtered counts. The detailed labels therefore give the clearest basis for identifying which text and token counts describe the same set of records.

The sentence count provides a third view of the filtered material, relevant to work that takes sentences as inputs. It is a count for the collection following the stated processing. Some exports can request a distinct set of sentences, others a subset selected by source or date. Both operations have consequences for the size of the resulting file. The reported whole-corpus sentence count characterizes the resource from which such exports can be made.

The operation of exporting all subcorpora is reported to take around 24 hours on hardware the author describes as modest. At that stage the source data and processed layers are already available. The figure is an observation about delivering the prepared corpus from that setup. A complete rebuild would have to include the preceding collection and annotation work, for which the paper gives no comparable overall timing.

How the corpus compares with the previous release

UberText 1.0 is the closest historical reference point because the project revisited some of its sources. The earlier volume, around 665 million tokens, concerns its collection of shuffled sentences. The newer figures concern a different intake and release, built by returning to sources and processing the acquired material again. Document records and stored metadata are integral to the newer design. Consequently, a file generated by the new software can preserve context across sentences or supply subsets from a specific source.

The comparisons with other published Ukrainian corpora establish the range of conditions under which researchers could get access to material. Some resources had more extensive search facilities or descriptive information, and some had larger headline token counts. For UberText, the demonstrated combination is the volume of the downloadable text and the workflow for producing different forms from the corpus. The paper presents no common test of how other collections would perform with the same language and length criteria or with the same tokenization.

Uses of the developer preview

The author reports several projects that obtained usable material from a developer preview. One line of work produced Ukrainian Flair embeddings, representations that use the contexts in which written forms occur. The project used them for compact taggers for grammatical categories and for named entity recognition, which identifies mentions such as names in text. In reporting the Flair work, Chaplynskyi cites the earlier description of the representation approach. Contextual String Embeddings for Sequence Labeling

Another preview application used the writing to train fastText vectors. The paper associates this effort with a companion study that compared choices of fastText settings for Ukrainian. The corpus report describes the resulting vectors favorably and identifies the preview as training material. It does not reproduce the numerical evaluations from the companion work. Its evidence here is that a project had sufficient access to use the material for developing Ukrainian word representations.

The preview also supplied written material for a speech transcription project and for punctuation restoration. A speech system can use evidence about plausible word sequences when generating the written version of an utterance. Punctuation restoration concerns inserting marks in text where they are missing. That application illustrates a use for writing in which punctuation has been preserved. The later option to suppress punctuation in an export serves projects whose inputs are structured differently.

Chaplynskyi also describes work on Ukrainian GPT-2 at different sizes and subsequent adaptation for instruction-based tasks. The preview was a source of text for a further project on word sense disambiguation, the task of deciding which meaning of a word is active in its context. In that work, sentences were mined from UberText and used to adapt an existing multilingual sentence encoder. The paper describes a favorable result for the sense task without giving a quantitative comparison of downstream systems in the corpus report itself.

The document also reports sharing text with GRAC to broaden its coverage of contemporary writing. This is a use of the corpus in another mode of access: material acquired for UberText became available to users of a managed corpus interface. The examples of preview use range from assembling input for training to making modern writing searchable for linguists, translators, and students. The volume and timing figures in the corpus report describe the construction and delivery of UberText, alongside these accounts of how access was used.

What the ablations show

The paper has no formal ablation experiment that reruns the pipeline with an individual component removed, and its closest analyses concern the totals before and after filtering, the composition of the intake, the samples used for quality inspection, and the comparison with UberText 1.0.

What can be attributed to filtering

The whole-corpus figures at different stages establish that filtering reduces the number of documents and the volume of tokens delivered. The paper motivates selection by pointing to material such as short or unfinished entries and articles in other languages. From the totals, a reader can establish the volume retained under the reported processing. The paper gives no tabulation of what the language criterion removes on its own, what the length requirement removes on its own, or how often the same record would be excluded by both.

It also matters where the before-filter figures start. The spiders have already made extraction decisions, and the social sources have already been selected under the project’s channel criteria. The intake counts refer to the material those processes produced. As a consequence, the comparison cannot estimate what would happen if a crawler simply kept all the visible text on webpages. The hand-written rules and the document-level filters act on different evidence, and the totals give one view of the outcome after those mechanisms have been put to work.

The project’s review procedure supplies a way to look at potential failures more closely. Material with no body can be inspected as a likely extraction problem, while very long documents can be checked for unwanted content. Old documents give reviewers access to earlier kinds of source material or page layouts. An ordinary-looking record found by random sampling can prompt a different sort of inspection. The paper demonstrates how such items are made available to volunteers. It gives neither a count of defects found through each type of sampling nor a comparison of volunteer judgments.

What composition and the predecessor comparison explain

The source breakdown shows why a corpus can be diverse in provenance while its pooled writing has a predominant source category. The dominant category by text volume is news, while distinctions among smaller categories change when measured by record count. A researcher who counts rare forms across the entire corpus and someone who samples the records by subcorpus are drawing on different distributions of observations. The analysis supports a description of those distributions at intake. The paper reports filtered totals only at the level of the complete corpus.

The comparison with the predecessor illustrates a design change. Keeping document-level records and associated layers gives the new workflow information from which it can produce alternate versions. The earlier shuffled-sentence release illustrates what can be lost when distribution supplies only one arrangement of the material. The newer workflow also has a place to retain already computed work when fresh texts arrive. These properties follow from how inputs and outputs are stored. The paper does not time the two architectures on an equivalent job or measure how much improvement would result from any single implementation choice.

Limitations

Limits the author identifies

The author describes transfer to another language as contingent on tools for that language. The architecture gives a project a place to store sentence divisions, tokens, lemmas, and grammatical information. The Ukrainian tools determine the contents of those layers for UberText. In another setting a suitable processor has to be developed or integrated, including any interface needed to make it work with the corpus software. The paper mentions a possible alternative such as SpaCy in explaining how a different library might fill a role in the workflow.

The dependency affects even familiar deliverables. A frequency list organized by lemma takes for granted that a viable tool can assign dictionary forms in the target language. Dividing the text into sentences makes assumptions about the writing and how boundaries are expressed. The paper makes these language-specific operations explicit. A project can reuse the organization of sources, layers, and exports while still having substantial language work to do.

Chaplynskyi also identifies expertise in retrieving data and engineering the workflow as a requirement. Software for scheduling a crawl and storing the results does not provide rules for locating articles on every publisher’s site, nor does it resolve idiosyncrasies of a new bulk format. The practices described for UberText involve checking fresh samples and verifying spiders before major updates. Such work continues as sources change. The regular release schedule proposed by the author depends on that maintenance as well as on the export mechanism.

The author addresses copyright separately. The project sought to preserve authorship where possible and expresses the view that its collection practices fit fair use and Ukrainian copyright law. The ethics statement discusses ordinary press information and official judicial material among the types of content considered in taking that position. It also offers to remove material at the request of authors or rights holders. The paper supplies the project’s account of how it approached these questions and its stated procedure for removal requests.

Limits visible in the evidence

The intended coverage is contemporary Ukrainian writing, drawn from specified sources. The intake figures make it possible to see the dominance of news and the unequal amounts supplied by other categories. The paper does not establish how these proportions relate to the broader distribution of writing in Ukrainian or to language use outside writing. The strongest statements about coverage concern the documented intake. A study that wants to draw a broader inference has to explain how its selected sample serves that inference.

Time coverage calls for similar care. A change in the frequency of an expression across a combined export could reflect changes in the available mixture of source categories or publishers. The different starting and ending years indicate that the same materials are not sampled throughout the recorded spans. Date fields and source information give a researcher a way to specify a more consistent selection, subject to what exists in the collection. The corpus article does not carry out a historical analysis using such a selection.

At the level of document screening, the paper describes typical language and length requirements. It does not report a separately annotated assessment of the language decisions or quantify what happens to texts near a confidence boundary. For example, a short piece of valid Ukrainian writing and the fragment left by a failed extraction can both fall below the length threshold. The stated rule treats their length alike. The paper supplies examples of problems the rule is designed to address and reports the scale of the output.

The language decision is made for the document. Mixed-language passages pose a question about how to interpret that decision if an analysis needs every selected passage to be Ukrainian. The paper does not report a passage-level assessment. This matters when the intended observation is finer than the unit receiving the language label. In the results, the choice to apply the detector is documented, while the accuracy of the decision at particular sources or on such documents remains unmeasured.

The linguistic layers have a comparable evidential boundary. The paper gives the processors that make sentence divisions and grammatical assignments, and describes the storage of the results. It gives no independent accuracy figures for those decisions across the subcorpora. A project using labels on public social posts and one using labels in court decisions therefore have the same documentation of the processing tools, without a measured account of how their error rates differ on those materials. The retained source records allow individual assignments to be examined in context.

Another boundary concerns repetition. The option to produce unique sentences specifies a way to assemble an output. It supplies no corpus-wide estimate of duplicate documents or of repeated and nearly repeated passages across sources. A whole-corpus count records the amount of data in the release under its reported conditions. The amount of distinct material available to a study depends on the unit it uses and the selection and transformation applied in the export.

The reported export duration likewise has a specific scope. The article describes one complete export with the earlier processing in place, and gives no hardware specification or series of timing measurements. It therefore cannot establish costs for alternative hardware or how they change with different export operations. Computing a frequency dictionary and delivering marked-up documents draw on the same infrastructure, while requiring different work during the export itself.

Finally, the preview applications show which kinds of project obtained and used material. They supply no controlled comparison of the final filtered release against a matched alternative corpus or a run without the additional Ukrainian data. A downstream gain would depend on the input selection and application as well as on the overall collection. The paper establishes the scale of the delivered text, describes the quality procedures and available layers, and records uses that had already begun. The effects of sustained annual releases and the magnitude of benefits in specific downstream tasks remain open in its evidence.

What came after

No subsequent citing work is available to trace how later research used UberText 2.0. The projects named by Chaplynskyi document early use of the developer preview. The proposed annual releases, expanded collection, and further collaborations describe plans at the time of publication.

Cite

Cite as Dmytro Chaplynskyi. 2023. Dmytro Chaplynskyi. Introducing UberText 2.0: A Corpus of Modern Ukrainian at Scale // UNLP 2023 @ EACL. UNLP 2023 @ EACL.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.unlp-1.1

@inproceedings{chaplynskyi2023dmytro,
  title = {{Dmytro Chaplynskyi. Introducing UberText 2.0: A Corpus of Modern Ukrainian at Scale // UNLP 2023 @ EACL}},
  author = {Dmytro Chaplynskyi},
  booktitle = {UNLP 2023 @ EACL},
  year = {2023},
  doi = {10.18653/v1/2023.unlp-1.1},
  url = {https://doi.org/10.18653/v1/2023.unlp-1.1}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chaplynskyi-2023-ubertext2/