Elamur Research

caWaC – A web corpus of Catalan and its application to language modeling and machine translation

Paper · 2014 · Nikola Ljubešić and Antonio Toral

Summary

A translation system can learn which Catalan expressions tend to occur together from Catalan text alone. Finding enough of that text is a separate problem. The authors built caWaC by crawling the .cat web domain, which gave them a way to find Catalan material beyond the collections already available. They describe their resource as containing 687 million words. The largest earlier Catalan corpus they identify, CuCWeb, contained 166 million words. The paper follows the collection from downloaded pages through cleaning and duplicate removal, then asks how much the resulting text helps with prediction and machine translation.

The crawl is only the starting point. Pages need to be decoded, stripped of material such as navigation text, and checked for Catalan. Repetition presents a different challenge. A crawler can encounter identical pages, pages that differ only slightly, and passages copied into otherwise distinct documents. The authors compare collections produced by removing repetition at different scales. Paragraph-level filtering leaves a collection with a higher proportion of unique sentences, while also removing many sentences that occurred only once in the less filtered collection. The experiments ask whether that loss matters after each training collection has already been reduced to distinct sentences.

For language prediction, the authors compare caWaC with Catalan Wikipedia and with Catalan newspaper text from the translation system’s training data. The measure is perplexity, which is lower when the observed test text receives higher probability. Every caWaC subset matched to Wikipedia in byte size gives lower perplexity than Wikipedia across the test sets, and expanding each subset to its full caWaC counterpart lowers perplexity further on every test set. The newspaper text still gives the lowest perplexity on the news test. The authors attribute the broader advantage over Wikipedia to the variety of material in the crawl.

For translation, a phrase-based Spanish-to-Catalan system learns from bilingual newspaper articles. Adding caWaC supplies more evidence about Catalan without requiring additional Spanish translations. The best news result improves on the original system by 0.25% in relative BLEU, while the best relative gains on the other test sets range from 1.41% to 4.37%. The Wikipedia-sized caWaC subsets deliver the highest scores on all the tests outside news, even though their larger counterparts predict the reference text better. The paper thus provides evidence for collecting Catalan web text and for evaluating its value at the point of use. Corpus size, duplicate removal, and source affect prediction and translation in different ways.

Deep dive: caWaC – A web corpus of Catalan and its application to language modeling and machine translation

caWaC draws Catalan text from .cat websites and tests how corpus size and duplicate removal affect language prediction and Spanish-to-Catalan translation. · about 31 minutes to read

The problem and its context

Finding Catalan text at scale

The paper treats the web as a source of text that researchers can turn into a working corpus. That involves choosing where to look and deciding which parts of the retrieved pages belong in the collection. A search space can be large and still yield relatively little usable Catalan. An acquisition strategy therefore needs some initial evidence about where the language is likely to occur, followed by checks on the documents it actually finds. These decisions affect both the amount of text collected and the kinds of writing available for subsequent experiments in corpus linguistics.

The earlier Catalan resource described in the paper started from a broader geographical search. Its builders crawled material hosted in Spain regardless of the sites’ top-level domains. The main collection effort was for Spanish. Language classification also identified a Catalan portion, which was made available separately. The collection dates to September and October 2004. In this case, the search boundary concerned where pages were hosted, and the Catalan corpus emerged from choosing documents by language after retrieval. CuCWeb

The authors point to a change in the web environment after that crawl. The sponsored .cat domain was approved in September 2005, creating a different starting point for gathering Catalan material. A top-level domain is the final part of a web domain name. For this study, the suffix sets the scope of a crawl designed around Catalan from the outset. The contents still have to pass a separate language check. The address helps decide which pages the crawler can look for, and the text itself helps decide whether a retrieved page belongs in the corpus.

This distinction matters when interpreting the collection. caWaC is defined by a search over .cat sites, followed by the authors’ processing decisions. A corpus assembled that way has a traceable source, and the crawler can pursue a language-specific collection without first gathering the full output of a geographically defined search. The source boundary also matters when considering what kinds of Catalan the collection might contain. The fact that the researchers target a language-associated domain explains how they search. The actual composition of the corpus depends on the pages discovered and on which of them survive processing.

From web pages to usable text

By the time of the paper, the authors describe large web corpora as an established approach. They identify the WackY initiative as an important step in its development, with resources for English, German, and Italian. They also discuss the CoW collection as part of the work that followed. These precedents place caWaC within an effort to make web collection repeatable at corpus scale, using tools that handle the transition from raw pages to text suitable for linguistic work. Building Large Corpora from the Web Using a New Efficient Tool Chain

The immediate basis for caWaC is the Brno pipeline. The paper describes it as an existing set of components for building corpora over top-level domains. Some components handle acquisition, while others decide how page contents should be interpreted and retained. An encoding detector helps recover the intended characters from the downloaded bytes. A content extractor selects text of linguistic interest from the page. A language filter decides whether the extracted text resembles Catalan. Duplicate removal addresses a separate issue, since perfectly readable text in the desired language can still be repeated across the crawl.

Repetition is especially important because its unit can change. Whole pages can be identical. Versions of a page can preserve almost all their material while varying a small part. A passage can also turn up in documents whose remaining content is quite different. A decision made at the document level treats all the text in the document as a unit. At the paragraph level, the unit of the decision is smaller. That choice affects which sentences and sequences of words remain available for counting, including material that is individually distinct but occurs inside a unit identified as repetitive.

The paper also distinguishes removing repeated material from a corpus and imposing sentence uniqueness on input to a prediction experiment. Sentence uniqueness gives one place to each distinct sentence. Near-duplicate filtering can exclude material that would pass that rule. A passage with small edits may contain sentences that differ in just a word or a punctuation mark. Each variant can survive a sentence identity check, while an overlap-based procedure can judge the larger passage repetitive. Applying both procedures therefore raises a substantive question about how many genuine differences are worth preserving for the intended use.

Why translation is a separate test

The practical motivation comes from the different evidence available to a statistical translation system. Bilingual examples connect Spanish text to Catalan text. Catalan-only examples can provide evidence about which target-language sequences are plausible. The paper studies an existing setup in which the bilingual training material comes from newspapers. The question is whether additional Catalan text can help when the system encounters other kinds of writing, where the vocabulary and phrasing may differ from what appears in its bilingual training material.

That question belongs to domain adaptation, where a system trained on one type of material is used on another. Here, a domain is an origin or kind of text relevant to the task, such as newspaper writing or official publications. The paper connects its translation setup to earlier work on using monolingual resources for adaptation. The appeal of this arrangement is that additional Catalan text supplies evidence even when no new Spanish–Catalan sentence pairs are added. The new text contributes to judging the Catalan output, while the bilingual corpus continues to supply the evidence for translation. Domain Adaptation for Statistical Machine Translation with Monolingual Resources

Catalan Wikipedia gives the paper another point of comparison. It supplies Catalan text from a single identifiable collection, and the authors can compare it with similarly sized selections from the crawl. The newspaper data, in turn, provide a source with a direct connection to the system’s bilingual training and to the news test. These sources serve different experimental purposes. Wikipedia offers a comparison for web text at a comparable data volume. Newspaper Catalan shows what text from the training domain can do and supplies the starting point for evaluating the translation system.

The method, step by step

Choosing pages and deciding when to stop

The crawl begins with seed URLs, the addresses from which the crawler starts discovering pages. The authors select .cat domains listed among the top 1 million sites by global traffic. That criterion yields 252 domains at the time of retrieval. The traffic cutoff is a way to choose starting points. The crawl then has to do the work of following links, fetching documents, and determining which sites are producing material worth keeping. A seed list defines the initial opportunity for discovery. The paper gives no separate inventory of all the .cat sites the crawler could ultimately reach.

The acquisition tool is spiderling, which collects HTML documents. The authors specify 16 document-processing threads and describe a maximum crawl duration of 21 days. The paper separately gives the run dates as 2013-08-30 to 2013-09-13 and describes the completed crawl as lasting two weeks. These are the reported setup and the reported run interval, respectively. The reason for the difference between the configured maximum and the run interval is left unspecified.

A domain can be dropped earlier if the amount of usable material obtained from it is too small relative to the amount downloaded. The rationale is that fetching another page from a low-yield domain consumes crawl effort even when very little of its material survives processing. The authors choose the lower pre-defined cutoff that the crawler recommends for smaller languages. They describe the yield calculation in words, which can be written as follows.

R = F / D

Here, R is the size ratio for a domain, F is the amount of final data after post-processing with near-duplicate removal excluded, and D is the amount of downloaded data from that domain. The equals sign defines R, and the slash divides the retained amount by the downloaded amount. Spiderling stops crawling the domain once R falls below its configured cutoff. The paper gives the choice of preset and leaves its numerical value unspecified.

Excluding near-duplicate removal from this calculation keeps the decision at the point of acquisition distinct from the later comparison of corpus versions. The ratio describes a domain’s yield according to the specified processing boundary. A good value there tells the crawler that the domain is supplying material that survives those steps. The repetition analysis can still alter the corpus once text from different pages is available for comparison.

From .cat web pages to experimental training text

The steps in order.

From .cat web pages to experimental training textStep 1: Seed the crawl with high-traffic .cat domains1. Seed the crawl with high-traffic .cat domainsStep 2: Fetch pages and stop crawling low-yield domains2. Fetch pages and stop crawling low-yield domainsStep 3: Detect encodings and extract relevant text3. Detect encodings and extract relevant textStep 4: Filter documents by character trigram distance4. Filter documents by character trigram distanceStep 5: Remove exact duplicates and segment the text5. Remove exact duplicates and segment the textStep 6: Prepare alternative document and paragraph deduplication versions6. Prepare alternative document and paragraph deduplication versionsStep 7: Keep distinct sentences and form matched subsets7. Keep distinct sentences and form matched subsetsStep 8: Estimate Catalan sequence probabilities for the evaluations8. Estimate Catalan sequence probabilities for the evaluations

Extracting text and checking the language

The downloaded page first needs a character encoding. An encoding determines how bytes represent characters, so this step makes the material interpretable as text. The authors use chared with its existing Catalan configuration. For content extraction they use jusText with the distributed Catalan list of function words, the common words that help organize sentences. The extractor is intended to retain running text of linguistic interest. Its work is distinct from deciding the language of a document. Material suitable for reading can occur on a page in any language, and suitable Catalan prose can appear alongside repetitive page elements.

After content extraction, the language check compares short character sequences in the retained text with those in a known Catalan sample. An n-gram is a run of adjacent units, which can be characters or tokens depending on the task. Here, the units are characters, and a trigram contains three adjacent characters. Grouping trigrams into a vector gives the document a numerical profile of its character sequences. The comparison is over that profile, so the check can draw on evidence across the document even when its subject differs from the subject of the reference text.

The authors build a vector for the Catalan reference sample and another for each document under consideration. They compare the vectors using cosine similarity, a measure of how closely their directions agree, then transform that similarity into a distance. The paper specifies that documents whose distance is above 0.8 are discarded from the main collection. It leaves the similarity-to-distance transformation in verbal form. The cutoff is therefore best understood in the terms the paper supplies, as a threshold on the transformed quantity used by the language filter.

The reference sample itself comes from a preliminary crawl. At that stage, the initial point of comparison is a clean sample of 20,000 words from Catalan Wikipedia. The authors then use the preliminary crawl to build a more substantial Catalan reference. They select its documents with distances below 0.2 and retain paragraphs longer than 50 characters. This produces a reported 3.6 million words for the final language sample. The selected passages feed the language identification procedure, giving the main crawl a reference derived from web material that passed the stricter screening.

The two distance thresholds have different roles. The preliminary cutoff selects examples to represent Catalan in the language filter. The main cutoff governs whether a document is kept after content extraction. The paragraph length restriction is also part of preparing the preliminary reference sample. Reading these settings as steps in sequence preserves the distinction between how the reference was created and how it was applied to new documents. The article’s prediction experiments begin much later, after acquisition, language filtering, and duplicate removal.

Removing repetition and defining the unit of training

After the crawl, the authors remove exact duplicates at the document level. They then use FreeLing to split the remaining text into sentences and tokens. A token is a unit treated as a separate item in the processed text. Without a common way of setting sentence and token boundaries, counts of corpus contents and of sequences for prediction would depend on where each processing step happened to divide the raw text. FreeLing supplies that preparation for the caWaC material. Tokenization · FreeLing 3.0

For near-duplicate detection, the authors run onion on the tokenized collection with its default settings. The tool judges whether a document or paragraph overlaps sufficiently with data already seen, using shared n-grams. Exact duplicate removal looks for identity at the selected level. Near-duplicate removal admits a decision based on overlap, so editing part of a passage may leave enough shared sequences for the passage to count as repetitive. The paper identifies the standard settings but gives no further numerical overlap specification for these runs.

The experiments use three named corpus versions. In caWaC.ed, exact duplicates have been removed at the document level. The suffix dnd in caWaC.dnd identifies document-level near-duplicate removal. The suffix pnd in caWaC.pnd identifies paragraph-level near-duplicate removal. The paper reports the filtering levels as progressively stronger reductions in the corpus. The comparison is about the kind of material retained at those levels, with the size and composition of the resulting data both changing.

A further operation is common to all the language prediction training collections. Each contains unique sentences only. This makes the experimental treatment of a repeated sentence consistent across the different sources and versions. It also means that caWaC.ed, as used in the experiments, has already undergone both exact document deduplication and sentence deduplication. When a larger-unit filter is used, some distinct sentences can disappear before the last pass. For instance, a lightly edited sentence within a paragraph otherwise judged to be a near duplicate can be lost with that paragraph. The paper measures the size of this effect in the aggregate.

The share of sentences retained through the sentence pass is computed separately for each corpus version. It expresses the number of distinct sentences relative to the sentence count available immediately before that pass.

U = S / A

Here, U is the share of sentences that are unique in a given corpus version, S is its sentence count after sentence deduplication, and A is its sentence count beforehand. The equals sign defines U, and the slash represents division. The counts describe the same version at different points in preparation. Comparing U across versions describes a change in the concentration of distinct sentences. Tracking how many distinct sentences remain across versions requires comparing the counts S themselves.

Separating data source from training volume

The external comparison corpus comes from a Catalan Wikipedia dump retrieved on 2013-09-14 and processed with a standard cleanup script. The prediction experiments use this collection alongside both the full caWaC versions and smaller selections from those versions. The suffix ws marks the selections sized to Wikipedia. The matching criterion is the number of bytes, so a Wikipedia-sized caWaC selection can have a different count of sentences and tokens from Wikipedia while meeting the stated size criterion.

The authors make the matched selections after deduplicating sentences. The ordering addresses a specific confound. If they took equally sized samples of materials that differed in sentence repetition before making sentences unique, the samples could shrink by different amounts in the final pass. Sampling from sets of distinct sentences brings the comparison closer to the intended one, which is a comparison of similarly sized Wikipedia and web training collections. Their actual training material still differs in its sentences and sequences, and that variation is part of what is being studied.

This yields several ways to read the experiment. A Wikipedia-sized caWaC collection compared with Wikipedia gives evidence about the data source at comparable byte volume. The corresponding full caWaC collection tests what happens when the training data from that version are expanded. Comparisons across deduplication settings show how the collections produced by those settings perform. The distinctions matter because the treatment that yields the most text also yields different text. A contrast between a full corpus with exact deduplication and one with paragraph-level near-duplicate removal changes both at once.

Estimating Catalan sequence probabilities

The authors use IRSTLM to learn probabilities from the token sequences. The language modeling setup uses n-grams up to order 5, with tokens serving as the units here. The estimates capture regularities in short contexts. A sequence of tokens that occurs in the training collection supplies evidence about that sequence, while shorter contexts can supply evidence when longer ones have little support. Because each corpus presents a different collection of sentences, the same estimation procedure can assign different probabilities to the same stretch of test text.

Smoothing governs how the estimates handle sparse observations. With many possible sequences, a training collection can offer considerable evidence about common short patterns while giving little evidence about a longer pattern in the test. The authors use a simplified form of modified Kneser–Ney smoothing. The settings given are the estimation toolkit, the maximum order, and the smoothing family. The paper names the underlying work on smoothing without developing the estimator as a new contribution. An Empirical Study of Smoothing Techniques for Language Modeling

The prediction evaluation uses perplexity on held-out Catalan text. Lower perplexity means the estimator assigns higher probability to the observed text in aggregate. It is a measure of prediction on a given test set, and the most informative comparison here is between training collections evaluated on that same set. The authors report both the scores and their relative changes against the Wikipedia score for each test set. They describe perplexity as an evaluation criterion and leave its calculation without a displayed equation.

Using the same resource in translation

The translation experiment asks a related question in a different setting. Moses learns a phrase-based statistical system from bilingual newspaper text. In phrase-based translation, source and target stretches learned from the paired data provide possible translations. Evidence about Catalan sequence probabilities can help the system choose among candidate outputs. The bilingual newspaper material supports the mapping from Spanish to Catalan. The monolingual addition contributes evidence about sequences on the Catalan side.

The baseline uses the Catalan side of the newspaper material as its source of target-language probabilities. The other systems add a collection from the language prediction experiments to the target-language component. A system that adds caWaC in this comparison still learns from the bilingual newspaper corpus. The intervention gives the system more Catalan text while preserving the stated source of parallel training. This setup makes the experiment a test of what the extra target-language evidence contributes to a news-trained translator.

For tuning, the authors use minimum error rate training, or MERT, on development material from the same dataset as the corresponding test. Tuning sets the translation system’s parameters using development examples. Evaluation then uses a different split. The separation is important when calling the tests outside news out-of-domain: the bilingual training corpus is still from news, and the tuning examples come from the genre under test. The authors evaluate the completed system by comparing its outputs against reference translations using BLEU.

Experiments and results

The training collections and test material

The prediction experiment compares the news training text, Wikipedia, and the caWaC collections. Among the external sources, Wikipedia provides the baseline for reporting relative perplexity changes. The authors regard it as a stronger general comparison for web text than the smaller newspaper collection, particularly outside news. The newspaper baseline answers a different question. It indicates how text from the translation training domain predicts the Catalan used in news and how that same estimate fares when the test text comes from elsewhere.

The training corpus counts illustrate what the size match controls. Wikipedia contains 6,891,483 distinct sentences and 136,887,790 running tokens. The Wikipedia-sized caWaC.ed.ws contains 4,627,411 distinct sentences and 137,393,049 running tokens. caWaC.dnd.ws contains 4,696,776 distinct sentences and 137,622,883 running tokens. caWaC.pnd.ws contains 4,818,837 distinct sentences and 137,712,738 running tokens. The token totals describe collections in a similar size range, while the sentence counts differ. Comparable storage volume permits differences in the amount of text per sentence and in the material within those sentences.

The full caWaC versions are much larger even after sentence deduplication. The exact-document version has 24,745,986 distinct sentences and 733,974,675 tokens. The near-document version has 21,486,116 distinct sentences and 625,569,184 tokens. The near-paragraph version has 13,403,229 distinct sentences and 382,984,233 tokens. These figures refer to the data used for prediction training. Counts taken before sentence deduplication describe a different stage, even when they bear the same name for the web-corpus version.

For translation, the bilingual source is 10 years of Spanish and Catalan articles from El Periódico de Catalunya. The authors identify 633,257 unique sentence pairs in the corpus. The training subset, restricted to sentences with 1 to 80 tokens, contains 629,375 pairs. The Catalan side supplies the baseline target-language text. The same bilingual source underlies the comparisons that add Wikipedia or caWaC, so the change being evaluated is the addition to the Catalan language prediction component.

The evaluation data span newspaper writing, Tatoeba sentences for language learners, EUbookshop official publications, and a contemporary Spanish bestseller. For each dataset the authors use 1,000 sentences in development and 1,000 sentences in testing. They calculate perplexity on the test splits. In translation, the development split for each dataset is used in tuning, and the test split measures performance afterward. News is the in-domain translation test because it shares its genre with the parallel training data.

The paper characterizes the source side of each split by token count, vocabulary size, and the share of words outside the vocabulary of the translation training corpus. On the news test, it reports 21,590 tokens, a vocabulary of 6,316, and 0.8% out-of-vocabulary words. Tatoeba’s test contains 8,962 tokens, a vocabulary of 2,210, and 1.1% out-of-vocabulary words. The EUbookshop test has 24,874 tokens, a vocabulary of 4,471, and 4.3% out-of-vocabulary words. The novel test has 17,335 tokens, a vocabulary of 3,536, and 6.4% out-of-vocabulary words. The rates refer to the parallel training vocabulary. They characterize a source-side constraint on translation and do not measure coverage of the Catalan-only training collections.

These split statistics give the genres concrete differences. The novel has the highest test out-of-vocabulary rate, while Tatoeba is much closer to news on that measure. The tests also differ in running tokens in spite of having the same number of sentences. That matters when reading the results as comparisons within a genre. The paper’s stronger tests of corpus choice come from holding the test set fixed and changing the training source. Absolute scores across genres reflect changes in the material being predicted or translated as well.

Perplexity on held-out Catalan

For news, Catalan newspaper training text gives the strongest result, with a test perplexity of 134.19. The best full caWaC result on that set is 185.01 from caWaC.dnd, and Wikipedia gives 386.86. The newspaper data are a strong source of information for another sample from the news domain. On EUbookshop and the novel, the same newspaper training text gives perplexities of 386.76 and 850.97, respectively, and Wikipedia does better on both. Tatoeba is an exception to a simple ordering between those external baselines. Newspaper training gives 285.28 there, below Wikipedia’s 327.11, with caWaC substantially lower than either.

The byte-matched comparison favors caWaC in each test domain, including news. The paragraph-deduplicated subset gives a news perplexity of 212.78, compared with 386.86 for Wikipedia. On EUbookshop, it gives 199.34 against Wikipedia’s 274.26. On the novel, it scores 227.79 while Wikipedia scores 458.84. The matched document-level near-duplicate and exact-document versions also beat Wikipedia in all these comparisons. The pattern supports the value of the particular web material collected independently of its ability to furnish a larger training set.

Catalan training sources compared by perplexity on the Tatoeba test

The full paragraph-deduplicated caWaC corpus gives the lowest perplexity, and every matched caWaC subset beats Wikipedia.

Catalan training sources compared by perplexity on the Tatoeba testWikipedia: 327.11Wikipedia327.11News: 285.28News285.28caWaC.ed.ws: 135.02caWaC.ed.ws135.02caWaC.dnd.ws: 128.31caWaC.dnd.ws128.31caWaC.pnd.ws: 116.04caWaC.pnd.ws116.04caWaC.ed: 110.69caWaC.ed110.69caWaC.dnd: 106.77caWaC.dnd106.77caWaC.pnd (this paper): 101.19caWaC.pnd (this paper)101.19
The numbers
System or settingperplexity
Wikipedia327.11
News285.28
caWaC.ed.ws135.02
caWaC.dnd.ws128.31
caWaC.pnd.ws116.04
caWaC.ed110.69
caWaC.dnd106.77
caWaC.pnd (this paper)101.19

On Tatoeba, the paper reports that the best full caWaC version’s perplexity is −69.07% relative to Wikipedia, using the baseline-relative change in its results table. The comparison draws on the same Catalan test sentences for every setting. It shows substantial variation in how well each training source supports predictions for those sentences. The full web collections occupy the strongest positions on this test, with the best matched selection next.

For the other genres, the strongest full variant depends on the test. Document-level near-duplicate removal gives the lowest caWaC perplexity on news at 185.01 and also leads on EUbookshop at 173.35. Paragraph-level near-duplicate removal leads on the novel at 202.14. The exactly deduplicated full version is behind both near-deduplicated versions on all the tests, despite supplying the largest amount of training text. In the corresponding size comparisons, each full collection still improves on its own Wikipedia-sized subset in all the domains. The amount of text helps within a version, while which text remains helps explain why ranking different full versions by size alone gives a different order from ranking them by perplexity.

The authors ascribe the matched comparison with Wikipedia to greater variety in web text. Their results establish that the selected caWaC material predicts these test sets better at comparable byte volume. The repeated advantage across genres gives that interpretation some support. A direct measurement of genre coverage or linguistic variety would be a different analysis. In this evaluation the evidence comes from predictions, including the ability of the crawl to help on several types of text beyond the data used to train the translation system.

Translation scores with added Catalan text

BLEU rewards overlap between system output and reference translation, with higher values indicating stronger scores under that measure. The paper reports its values as decimals and also gives relative percentage changes from the newspaper translation baseline. The relative percentages use a different reference point from the perplexity table, where the comparisons use Wikipedia. Reading the raw scores alongside their baseline prevents a small change measured relative to a high starting score from being mistaken for a change on a percentage-point scale. BLEU: a Method for Automatic Evaluation of Machine Translation

On the news test, the baseline scores 0.8465. Adding Wikipedia takes it to 0.8427, a reported relative change of −0.45%. Each caWaC addition raises the score above the baseline. The best result, 0.8486 with the full paragraph-deduplicated collection, corresponds to a 0.25% relative gain. The news result shows a small improvement in the domain where the system already has paired training material and Catalan text drawn from that material.

Tatoeba gives the largest reported relative gain from adding caWaC. The newspaper baseline reaches 0.6449, and adding Wikipedia brings it to 0.6518. With caWaC.pnd.ws, the system reaches 0.6731, a 4.37% relative gain over the baseline. The full counterpart gives the best Tatoeba perplexity in the language prediction experiment, while the smaller collection gives the best translation score. The rankings thus differ even when the test material comes from the same dataset.

Catalan text additions compared by BLEU on the Tatoeba translation test

The Wikipedia-sized paragraph-deduplicated caWaC subset gives the highest translation score.

Catalan text additions compared by BLEU on the Tatoeba translation testNews baseline: 0.6449News baseline0.6449Wikipedia addition: 0.6518Wikipedia addition0.6518caWaC.ed.ws addition: 0.6651caWaC.ed.ws addition0.6651caWaC.dnd.ws addition: 0.6586caWaC.dnd.ws addition0.6586caWaC.pnd.ws addition (this paper): 0.6731caWaC.pnd.ws addition (this paper)0.6731caWaC.ed addition: 0.6704caWaC.ed addition0.6704caWaC.dnd addition: 0.6714caWaC.dnd addition0.6714caWaC.pnd addition: 0.6698caWaC.pnd addition0.6698
The numbers
System or settingBLEU
News baseline0.6449
Wikipedia addition0.6518
caWaC.ed.ws addition0.6651
caWaC.dnd.ws addition0.6586
caWaC.pnd.ws addition (this paper)0.6731
caWaC.ed addition0.6704
caWaC.dnd addition0.6714
caWaC.pnd addition0.6698

The best result on EUbookshop also comes from caWaC.pnd.ws. It scores 0.4169 against the baseline of 0.4111, a 1.41% relative gain. Wikipedia gives 0.4150. One caWaC addition, caWaC.dnd.ws, falls below Wikipedia there with a score of 0.4131, although it improves on the newspaper baseline. The best caWaC score exceeds Wikipedia on every test, as the authors emphasize. The EUbookshop case qualifies that finding at the level of individual versions.

For the novel, the baseline scores 0.6347, and the addition of Wikipedia raises it to 0.6389. The paragraph-deduplicated subset gives 0.6454, the strongest novel score and a relative improvement of 1.69% over the baseline. The ordering for the best translation score follows the same pattern as on Tatoeba and EUbookshop. In each case, the same smaller caWaC configuration gives the highest reported BLEU. The family of full collections remains competitive, with exact rankings varying across tests.

The translation results support the authors’ argument for using monolingual web data when matched parallel training text is scarce. The bilingual evidence in the experiment comes from news, and the largest relative benefits of adding caWaC appear on other material. The measured improvements apply to a system tuned separately to the test genres through their development splits. Their size varies by genre, even though the direction of the change from the baseline is positive for every caWaC addition.

The authors also calculate TER and METEOR, two other measures of translation output, and report that their trends are similar to those for BLEU. They omit the values. The quantitative record for comparing the tested corpus treatments in translation is therefore the BLEU table. It gives a consistent reference for the small differences among the caWaC settings and for the larger distinction between their best results and the newspaper baseline on the tests outside news.

What the ablations show

How much each level of filtering removes

The paper offers controlled comparisons of corpus preparation and size, while leaving the individual crawl and cleanup components without separate ablations. The filtering analysis begins before sentence deduplication, when the versions still differ in how much repeated sentence material they contain. At this stage the exact-document collection has 53,149,225 sentences and 1,378,350,380 tokens. The document near-duplicate collection has 31,122,527 sentences and 779,086,559 tokens. The paragraph near-duplicate collection has 15,068,847 sentences and 384,548,042 tokens. These counts show the amount of material available after the respective filtering stages, before sentence identity is imposed for the experiments.

Relative to the exact-document collection, the paper reports that document-level near-duplicate removal leaves 57% of tokens, while paragraph-level near-duplicate removal leaves 28%. It also reports that the latter stage removes an additional 50% of the tokens that survived document-level near-duplicate filtering. The percentages describe corpus reduction under the given pipeline. They are especially useful alongside the actual training counts because they show how much of the reduction happens before the shared procedure of retaining distinct sentences.

Looking at sentence uniqueness gives a different view of the same process. Exact-document deduplication leaves a collection in which 46.6% of sentences are unique according to the authors’ ratio. The ratio is 0.69 after document near-duplicate removal and 0.889 after paragraph near-duplicate removal. The progressively filtered data therefore contain a higher share of distinct sentences. A corpus can have a greater share of unique items while also having fewer of them. The authors report that only 54% of the unique sentences available at the exact-document stage remain after both near-duplicate filtering levels.

The aggregate loss of unique sentences is evidence that the overlap filter makes consequential choices beyond deleting identical sentence strings. When it removes a unit, some of its sentences may have no exact counterpart elsewhere. An identity-based sentence pass would have kept them. The counts do not provide a judgment about the linguistic value of each sentence removed. The task evaluations offer a way to see whether the retained material is sufficient, and in what settings the leaner corpus performs as well or better.

What the prediction comparisons isolate

The byte-matched subsets help separate the effect of using caWaC from the effect of having more training text. Across the test sets, the web subsets have lower perplexity than Wikipedia even though the training volumes were matched. Within the caWaC subsets, paragraph-level filtering gives the lowest perplexity on all the tests. Because the collections were sampled after making sentences unique, the ordering reflects more than a difference in the fraction of exact repeated sentences submitted to training. The text that survives the filtering stages differs as well.

The full collections show why raw size and the strength of filtering have to be read together. Adding more text within any given preparation improves perplexity compared with that preparation’s own matched subset. Across the full versions, the biggest corpus is consistently behind its more filtered counterparts. Within that set of alternatives, the balance differs by test. Paragraph-level filtering gives the lowest perplexity in Tatoeba and the novel, while document-level filtering gives the lowest caWaC perplexity in news and EUbookshop. The practical case the authors make for favoring the paragraph collection rests in part on its reduced size, since the perplexity comparisons leave the lead divided between the two approaches.

The authors suggest that removing leftover boilerplate could account for the advantage of near-duplicate filtering. Reusable web text that survives content extraction can occur in many variants, so it may still contribute observations after exact sentence deduplication. Lower perplexity after near-duplicate removal is consistent with reducing that unwanted influence. A test of the mechanism would need to identify the removed material or vary what was retained while holding other differences fixed. The comparisons here establish the outcome of the filtering procedures as applied to the collection.

What carries through to translation

The translation comparison retains the same parallel source and varies the additional Catalan material. This setup tests whether the benefit of a corpus survives when its probabilities are one part of the translation decision. Both full and matched caWaC versions help against the translation baseline. Across the tests outside news, the best reported BLEU comes from the matched paragraph-deduplicated collection. In news, the full paragraph-deduplicated version leads, with a small gain over the original system. Expansion produces a clear pattern for perplexity and a mixed pattern for BLEU.

The ranking differences have a concrete interpretation. Perplexity measures the probabilities assigned to the observed Catalan test text. Translation evaluation instead starts with Spanish input and scores the particular Catalan output the system selects. A better probability estimate for the reference text in isolation can coexist with a similar or lower translation score once candidate translations are determined by the bilingual evidence and weighed by the tuned system. The paper documents that divergence and does not trace individual output changes back to a particular probability estimate.

The authors characterize the BLEU differences among duplicate removal strategies as small for Spanish and Catalan. The data offer stronger evidence for including caWaC in this translation setup than for treating any deduplication setting as categorically superior. Even the consistent lead of the Wikipedia-sized paragraph version outside news concerns observed scores for these tests. A different inference follows for corpus size from each metric. The full versions supply better estimates of held-out Catalan text under perplexity, whereas their additional material does not regularly improve the translation score.

The source-side vocabulary statistics also help delimit the effect. The novel has the highest reported share of test vocabulary outside the bilingual training vocabulary, while Tatoeba records the largest relative BLEU gain from caWaC. The paper’s comparisons assess these as properties of different test sets. They do not isolate vocabulary coverage as the cause of the gain. The extra Catalan text changes evidence about target sequences, while the translation system’s knowledge of how Spanish words connect to Catalan continues to depend on the bilingual training material.

Limitations

Limits and open questions identified by the authors

The authors frame their largest-corpus claim according to the Catalan resources they know. They also describe caWaC as the first freely available Catalan corpus to their knowledge. The distribution they report has a specific constraint. For intellectual property reasons, the corpus is available with its sentences scrambled, under a CC-BY-SA license. That format can still supply individual sentences for the prediction setup studied in the paper. Work requiring the original ordering of sentences in a document would need that ordering, which the described release does not preserve.

Their translation experiment covers a pair of closely related languages in the direction from Spanish to Catalan. They propose that web-derived target-language evidence could yield larger improvements for a more distant pair, giving English to Catalan as an example. That proposal appears as future work. The BLEU results measure the benefit for the newspaper-trained system used in the paper, with additional Catalan material and with the specified development and test splits.

The authors also propose investigating unsupervised filtering based on outliers in character n-gram probabilities. This is separate from the procedure they used to build caWaC, which relies on a constructed reference for language identification and overlap for near-duplicate removal. The results show what happened with that pipeline. The suggested outlier approach would give a further way to test how corpus filtering affects the kinds of text available for training.

The authors see wider applicability for their collection method, particularly where large public monolingual corpora are scarce. The Catalan study demonstrates how a language-associated domain, available processing components, and a language sample can work together in one case. Its corpus yield and performance gains describe that case. Applying the procedure to a different language would also bring a different search space and different evidence for deciding which pages to retain.

Limits of the comparisons

The crawl supplies a purposeful sample of Catalan web material. Its starting points are high-traffic .cat sites, and its continuation depends on yield after the specified processing. Text elsewhere on the web is outside the chosen collection boundary. Within .cat, reachability from the crawl and the decisions made during cleaning also shape the result. The test sets cover several kinds of text, but the evaluation measures performance on those sets, with no independent survey of how the corpus represents Catalan across websites, communities, or forms of writing.

The language identification procedure has an explicit reference construction and cutoff. The paper gives no labeled audit estimating how many documents in the crawl were correctly accepted or rejected, nor does it give a measurement of the accuracy of content extraction. Accordingly, the language prediction and translation results assess the final training resources collectively. They give limited information about whether a different language distance cutoff would retain more useful material or whether a different content extractor would further reduce boilerplate.

The corpus counts also require attention to their units and processing stages. The abstract reports 687 million words, while the tables give running token counts for explicitly named deduplication versions and experimental collections. The paper leaves the mapping from that headline word count to the tabulated token totals unspecified. The safest basis for comparisons among filtering treatments is the table entries for the corresponding stage. Those entries define whether they are counting sentences or tokens and whether sentence deduplication has already been applied.

Matching the training collections by bytes addresses one important source of variation. The distinct sentence counts and the slight differences in token counts show what remains free to vary under that match. Source conventions, genre, and the way text was selected for cleanup can differ, as can which sentences are present. The reported comparison therefore concerns these caWaC selections against this Wikipedia preparation. An explanation based specifically on greater variety is plausible, with the variety itself left unmeasured in a separate analysis.

The full near-duplicate comparisons similarly change the amount and composition of the data at the same time. The matched subsets reduce the size difference and give another view of the ordering. Even together, the comparisons leave open which particular removed material caused the changed scores. The hypothesis about leftover boilerplate comes from the kind of repetition near-duplicate removal can address and the observed advantage in perplexity. The paper provides no separate breakdown of boilerplate, repeated prose, and distinct material discarded with duplicate units.

The translation evidence concerns automatic scores on the selected test sentences. The paper gives single reported BLEU values for the conditions, with no uncertainty intervals or translation significance tests to resolve the smallest differences. The results permit a comparison of the reported scores. Fine distinctions among the caWaC settings remain less certain than the broad pattern that adding them improved on the newspaper baseline in these tests. The omitted TER and METEOR values also limit the ability to compare individual conditions across metrics.

Finally, the development data matter for the scope of the out-of-domain claim. The bilingual training source is news, while tuning uses examples from the same genre as each test. The comparison establishes gains from augmenting a news-trained system under those tuning conditions. A setting with no in-genre development material would ask a different question. The paper also leaves open how another translation architecture, a different parallel corpus, or different test material would respond to the same change in Catalan training text.

What came after

A later citation appears in the Findings of the 2021 Conference on Machine Translation (WMT21). The citation establishes a connection between caWaC and a later conference report on translation. It leaves the specific role of caWaC open. Reusing its sentences, adopting its crawling and cleaning procedure, and citing it as background would each represent a different kind of connection. The citation alone does not identify which applies.

The concrete result available for that later context is caWaC’s comparison of target-language resources for a news-trained Spanish-to-Catalan system. The authors document a way to obtain Catalan text, test how duplicate removal changes the evidence in that text, and measure what adding it contributes to translation. Their comparison gives separate answers for prediction and translation: expanding the matched caWaC subsets improves held-out perplexity, while the matched paragraph-deduplicated subset yields the highest BLEU on the tests outside news. The later citation records the paper’s place in subsequent machine translation literature, with experimental reuse or extension left unspecified.

Cite

Cite as Nikola Ljubešić and Antonio Toral. 2014. caWaC – A web corpus of Catalan and its application to language modeling and machine translation. Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC'14).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{ljubesic2014cawac,
  title = {{caWaC – A web corpus of Catalan and its application to language modeling and machine translation}},
  author = {Nikola Ljubešić and Antonio Toral},
  booktitle = {Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC'14)},
  year = {2014},
  url = {https://aclanthology.org/L14-1647/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ljubesic-2014-cawac-web-corpus-catalan-its/