---
title: "CLUZH at VarDial GDI 2017: Testing a Variety of Machine"
description: "CLUZH compares ways to identify four Swiss German dialects from speech transcripts and finds that their ranking changes on the official test."
canonical: "https://research.elamur.ai/free/en/papers/clematide-2017-cluzh-vardial-gdi-2017-testing/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/clematide-2017-cluzh-vardial-gdi-2017-testing/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2017](https://md.research.elamur.ai/free/en/papers/2017/) / CLUZH at VarDial GDI 2017: Testing a Variety of Machine Learning Tools for the Classification of Swiss German Dialects

# CLUZH at VarDial GDI 2017: Testing a Variety of Machine Learning Tools for the Classification of Swiss German Dialects

Paper · 2017 · Simon Clematide and Peter Makarov

**Authors:** [Simon Clematide](https://md.research.elamur.ai/free/en/authors/simon-clematide/) and [Peter Makarov](https://md.research.elamur.ai/free/en/authors/peter-makarov/) · **Year:** 2017 · **Venue:** Proceedings of the Fourth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**13** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2741365501) · [Proceedings of the Fourth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial)](https://aclanthology.org/volumes/W17-12/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/W17-1221/)
- [PDF](https://aclanthology.org/W17-1221.pdf)
- [DOI 10.18653/v1/w17-1221](https://doi.org/10.18653/v1/w17-1221)
- [OpenAlex](https://openalex.org/W2741365501)

Citations: OpenAlex, 2026-10-14.

## Summary

A short transcript can contain enough clues to identify a Swiss German dialect, but many of its words may also occur in other varieties. The CLUZH team studied how to combine those clues for the German Dialect Identification task at VarDial. The task was to assign each manually transcribed stretch of speech to Basel, Bern, Lucerne or Zurich. Because the input was text, a system had to work with the spellings in the transcription and the patterns they preserved. The authors wanted to find out how far standard [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) methods could take them under the shared task’s closed-run rules.

Their starting point was Naïve Bayes, which predicts a dialect from the character fragments found inside an utterance’s words. A second entry used a conditional random field, a sequence classifier, to give a dialect tag to every word. During training, the same dialect tag appeared on all words in an utterance. The classifier could learn from individual words and from the tendency of adjacent tags to agree. A third entry took a majority vote among these two systems and a linear support vector machine. The authors also trained recurrent networks that processed utterances character by character. They experimented with creating extra training examples by slicing long utterances into shorter pieces and kept the recurrent systems out of the official submission.

The ranking changed between internal validation and the official test. In cross-validation on the training data, Naïve Bayes was ahead of the conditional random field on accuracy. On the official test, Naïve Bayes reached 63.50 accuracy, while the conditional random field reached 67.07 and had the team’s best weighted F1, at 65.31. That entry ranked third by weighted F1 in the shared task. The voting system reached 67.34 accuracy, the team’s best result on that metric and second in the shared task. By recall, Zurich was the easiest label for the submitted systems to recover. Lucerne was harder, with many of its utterances assigned to Zurich or Basel.

The official results were substantially lower than the estimates from cross-validation, and the authors found differences in how the training and test sets were composed. The official test contained no utterances as short as some of those in the training set, so the difficulty of short inputs alone could hardly explain the drop. Within the recurrent experiments, training on chunks helped on average, though the strongest recurrent configuration still trailed the voting system on the internal evaluation. The study makes a case for starting with character fragments and a fast classifier, then checking whether the ranking survives a change in the data and whether the overall score reflects performance across dialects.

## Deep dive: CLUZH at VarDial GDI 2017: Testing a Variety of Machine Learning Tools for the Classification of Swiss German Dialects

CLUZH compares ways to identify four Swiss German dialects from speech transcripts and finds that their ranking changes on the official test. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What the system had to recognize

The shared task asked for a regional label for a piece of speech represented in writing. Each example was a manually transcribed segment, which the authors called an utterance. A classifier received the transcription and had to choose among Bern, Basel, Lucerne and Zurich, abbreviated BE, BS, LU and ZH. Throughout the experiment, an utterance was the unit that counted as a prediction. The task therefore fits the setup of [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/).

The transcripts used the Dieth system, which the paper describes as an approach to writing Swiss German that laypeople can use across dialects. It uses the Standard German alphabet with some optional diacritics. The setup is closely related to the identification of [speech and spoken language](https://md.research.elamur.ai/free/en/topics/speech/).

A classifier learns from the properties of that written representation. A spelling pattern can be useful if the transcriber records it consistently and it occurs often enough for the classifier to learn an association. A sound difference can contribute only insofar as the text preserves a clue to it. The authors’ decision to look inside words follows from this setting. Similar words may differ in part of their spelling, and that part can provide evidence even when the exact word is unusual.

The task assigns one dialect label to the whole segment. For a short segment, there are few opportunities to encounter a distinctive form. A sequence of common words can be compatible with several dialects, even if those dialects differ in other contexts. With a longer segment, the system can weigh evidence from more words. The paper treats this as a practical issue because the supply of evidence varies with the input and because the training and official test sets contain different mixes of utterance lengths.

The closed-run rules framed what the authors could investigate. They used the task data and explored choices in text representation, classifier design and training. This allowed them to ask which methods made better use of the information already present in the transcripts. The task belonged to a broader shared evaluation described in the [VarDial 2017 findings](https://md.research.elamur.ai/free/en/papers/zampieri-2017-findings-vardial-evaluation-campaign/).

#### How previous work framed the problem

The paper describes earlier work by Scherrer and Rambow on written Swiss German. Those researchers distinguished among six dialects and investigated sequences of words as evidence. They also approached the problem through handwritten transfer rules that transformed Standard German words into dialect forms. That second route supplied linguistic information explicitly. A rule could propose how a form would appear in a particular dialect, giving the system something to look for in the text. A learned fragment-based system instead has to discover associations between written patterns and dialect labels in its examples. Both word sequences and character sequences are instances of the [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/).

Scherrer and Rambow also discussed the difficulty of imposing categories on a dialect continuum. The shared task gives the software a definite set of answers and gives the evaluator a way to score each prediction. The underlying linguistic problem remains broader. A word can be shared across regions, and a feature that characterizes a variety can also occur elsewhere. A useful classifier must work with overlapping evidence while still selecting one of the available labels for each utterance.

For the team’s starting point, the paper draws on a tradition of assigning categories to texts from features extracted from their contents. A bag of features records which fragments a text contributes without preserving their order across the text as a whole. A regularized linear classifier can learn which fragments tend to support each label while controlling the influence of individual features. The authors describe this combination as both easy to implement with available software and competitive in earlier language identification tasks. They situate it within the literature surveyed in [Machine Learning in Automated Text Categorization](https://md.research.elamur.ai/free/en/papers/sebastiani-2002-machine-learning-automated-text-categorization/).

Character fragments are particularly natural when regional variants share much of their spelling. A fragment can recur in several different words, allowing the classifier to use evidence from words it has seen when it encounters an unfamiliar form. Counting fragments within each word also allows the authors to change what constitutes a character for feature extraction. A frequent spelling composed of several letters can be represented as a single unit, changing which surrounding letters fall within the same fragment.

The paper also places its experiment alongside work that learned representations from sequences. It cites recurrent networks used for word-level text classification and an efficient character-level recurrent approach to document classification. It points to convolutional networks as another established route to classifying documents from characters. A convolutional filter can learn to respond to a local character pattern through training. That differs from enumerating fragments in advance and then learning weights for each of them. The cited precedent is [Character-level Convolutional Networks for Text Classification](https://md.research.elamur.ai/free/en/papers/zhang-2015-character-level-convolutional-networks-text/).

CLUZH’s comparison brings several of these questions together. The Naïve Bayes entry pools fragments across an utterance. The conditional random field starts with word-level evidence and uses the sequence of dialect tags. The recurrent experiments preserve the character sequence through to the final prediction. Each arrangement gives the learner a different way of putting local evidence together, within the same basic task of deciding which regional label fits the transcript.

### The method, step by step

#### Prepare the utterances and choose what to preserve

The systems began with labeled transcriptions. The text was already lower-case, so there was no variation in letter case to resolve or use as a signal. The submitted classifiers extracted character fragments separately from the individual words. This choice lets a classifier use short patterns within a word while keeping fragments from accidentally spanning a space between unrelated words. The recurrent experiments instead processed an utterance as a character sequence.

The authors examined which utterance lengths occurred in the training and official test sets. Very short examples were present in training, while the official test began at four words. They addressed the mismatch by filtering very short training utterances in their submitted work. Removing an utterance takes away both its potentially useful evidence and the influence it would otherwise have during fitting. The paper discusses the choice as a simple form of weighting by length, with the excluded examples effectively given no weight. The recurrent experiments used a separate filtering and augmentation procedure.

The other preparation concerned spellings. The authors tried substitutions for some accented characters and replacements that treated common letter groups as single units. A substitution for a complex diacritic represents that written distinction with a different character sequence. Collapsing a group such as `sch` gives subsequent processing a different notion of adjacency and length. Because both the fragment extractors and the recurrent systems operate on sequences of characters, a change at this stage can affect the evidence available later. The final preparation differed by run.

From transcribed speech to a submitted dialect prediction The steps in order.

#### Run 1 pools fragments across words

The team called its Naïve Bayes entry Run 1. In the submitted configuration, it discarded short training utterances and excluded one-character words from the feature representation. The spelling preparation substituted character combinations for some characters with complex diacritics. It also replaced `ch` and `sch` with individual characters before extracting features. These operations change the strings passed to the extractor, so the lengths of the resulting fragments refer to the prepared text.

The extractor used fragments from bigrams through six-grams. A bigram covers a pair of adjacent characters. A six-gram covers a longer contiguous stretch and can capture a more specific spelling pattern. An utterance contributes fragments from all of its retained words to a single bag. If two utterances contain the same words in a different order, reordering those words leaves the bag unchanged. The character order inside each extracted fragment still matters.

This representation gives the classifier a way to share evidence across word forms. An exact word might appear too rarely for its frequency to be dependable. Its fragments can also occur in other words, and the classifier can learn from those repetitions. The chosen range lets shorter, more reusable patterns coexist with longer ones that may tell the dialects apart more sharply. The team evaluated alternative configurations, including different ranges of fragment lengths, and selected the setup with the highest average validation accuracy among those it tried.

Naïve Bayes assigns each dialect a score from its prior frequency and the evidence contributed by the observed features. It treats the features as conditionally independent given the dialect. Character fragments overlap in practice, so the same stretch of spelling can yield several related features. The independence assumption is what lets the classifier combine their evidence with a simple calculation. It is a property of the decision rule rather than a linguistic claim about how words are formed.

The authors fit the classifier with add-one smoothing. The idea is to give an unseen fragment some probability even where the training examples for a dialect supplied no occurrence. Without that adjustment, a new fragment could give a class a zero likelihood through the way Naïve Bayes combines feature probabilities. Smoothing lets the remaining fragments still contribute to the decision. The full pipeline used scikit-learn.

This entry provides a demanding reference point for the other CLUZH systems. It includes several deliberate choices about filtering and representation, and the authors selected its settings by validation. When the paper calls Naïve Bayes a baseline, it means a competitive system against which to judge the added complexity. The official evaluation also reports a separate majority-class baseline, which uses no spelling evidence.

#### Run 2 learns to tag words together

A conditional random field, or CRF, assigns labels to a sequence in light of the observed input. The authors used the linear-chain implementation in Wapiti for Run 2. In a linear chain, the transition features concern neighboring labels. The system can score a candidate tag sequence using evidence from the words and evidence about which tags occur next to each other. The sequence arrangement matters even though the evaluation calls for a single dialect label.

The training conversion was simple. The authors took the known dialect of each utterance and copied it onto every word in that utterance. In their Zurich example, the word `jaa` at the start and `ja` at the end both receive ZH, as do the intervening words. The copied tags express the utterance’s shared label. They are derived from the task annotation, so they have a different interpretation from independent judgments about the dialect origin of each word. This distinction matters when interpreting what the system learns from [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

The word features give evidence for particular tags at particular positions. The transition features give evidence for combinations of tags across neighboring positions. All training utterances have matching tags throughout, so a change of tag within an utterance receives no support from those training sequences. At prediction time, the authors observed that the chosen tags were always homogeneous within an utterance. They returned the first word’s tag as the utterance’s label. The decision to use that position comes after the sequence has been scored, so the first word can carry a label supported by the other words.

The output transition feature is called a bigram feature because it concerns a pair of successive labels. It is distinct from the bigrams extracted from the letters of an input word. The authors also tried a unigram output feature for the overall distribution of labels and found it unhelpful. For features derived from a particular word, they used Wapiti’s current-position templates. Those features supply evidence about the tag of that word, while the transition feature supplies evidence about the adjacent pair. The authors therefore kept the connection between a word’s visible form and its local tag separate from the mechanism that favors agreement across the utterance.

#### Represent a word in several ways

For the CRF the authors retained the replacements for `ch` and `sch`. They experimented with diacritic substitutions and settled on a final representation without them. After preparation, a word could contribute evidence through its complete form, through jointly represented beginnings and endings, through character fragments and through vowel and consonant patterns.

The complete written form is useful when the same distinctive item appears repeatedly. Prefix and suffix features capture a different possibility. A particular beginning together with a particular ending can recur across words with different interiors. The paper constructs each of these combined features from a prefix and a suffix, using from 1 to 3 characters on each side depending on the word’s length. For `vernoo`, the example includes `vo`, which brings the first and last letters together, and `veoo`, which joins a longer beginning to a longer ending. The resulting feature records a relationship between the edges of one [word form](https://md.research.elamur.ai/free/en/concepts/word-form/).

For ordinary character fragments, the CRF used lengths from 1 to 6 characters. It placed `A` at the start of a word and `Z` at the end before extracting them. These are boundary markers, which are distinguishable from the lower-case letters in the data. A fragment with `A` records a beginning. A fragment with `Z` records an ending. In the paper’s example, `Av` marks the initial `v` of `vernoo`, while `ooZ` specifically marks its final `oo`. A fragment without a marker can recur inside other spellings as well.

The vowel and consonant features offer a way to share evidence between words whose full forms differ. Some features retain the vowels or consonants in their original order. Others retain the set of distinct letters in each group, so repeated occurrences are represented once in that set. In `vernoo`, the ordered vowels are `eoo` and the corresponding set is represented as `eo`. One representation can distinguish an extra occurrence of a letter, and the other allows words that differ in repetition to share a feature.

The word shapes use substitutions to preserve some parts of a spelling while abstracting over others. In the example, `vVrnVV` retains the consonants and replaces the vowels with a category marker. `CeCCoo` retains the vowels and masks the consonants. `CVCCVV` records the alternation of consonant and vowel positions while omitting the identity of the individual letters. A classifier can therefore use the actual letters, their arrangement by character class or both, depending on which associations it learns from the training data.

These representations deliberately overlap. A distinctive ending might be available as a boundary-marked fragment, as part of a prefix and suffix feature and through one of the shapes. When the whole form is unfamiliar, some of its component features may still occur in training. The amount of overlap also creates a large candidate inventory. A typical fold using 90% of the training data generated about 540,000 candidates. After thirty five epochs with Elastic Net regularization, around 90,000 features remained active.

Elastic Net controls how much the fit relies on its weights and can leave many candidates with no active weight. The paper describes choosing the maximum number of epochs for the L-BFGS optimizer as the main tuning decision. An epoch is a training pass. The authors used a development portion of 10% of the training data to watch for overfitting and to select a training budget. Their preferred setting capped training at thirty five epochs. They observed an irregular path to convergence, and changes to the other Wapiti settings yielded no consistent improvement.

#### Run 3 votes across classifiers

The third submitted entry combined the predictions of Run 1, Run 2 and a linear support vector machine, or SVM. The SVM used the same character-fragment representation as Naïve Bayes. It learned a linear decision rule from those features with scikit-learn’s stochastic gradient descent implementation. The authors searched for a regularization value that gave the highest average cross-validation accuracy. Although the two classifiers received the same type of input, their training rules could lead them to different decisions about which evidence to favor.

The ensemble gives each component a vote. When more than one component chooses the same label, that label wins. When every component chooses a different label, the ensemble uses the prediction from Naïve Bayes. Its role is thus both that of a voting member and that of the designated fallback. The same rule applies to any dialect. It uses the selected labels directly, so it can combine classifiers that arrive at those labels through quite different scoring procedures.

A vote can help when two systems recognize evidence that the other mishandles. It can also displace the decision of the most effective individual system on a particular utterance. Because Naïve Bayes and the SVM share an input representation, they may agree on the same cues or make related mistakes. The CRF contributes a view based on words, word shapes and tag transitions. The reported comparison measures the net result of putting these particular systems together under the chosen decision rule.

#### Train the recurrent alternatives

In the recurrent experiments, the authors supplied an utterance’s characters in sequence to a Long Short-Term Memory network, or LSTM. A recurrent layer updates its internal state as it advances through the input. Information from earlier positions can therefore influence what the layer represents at a later position. The CLUZH implementation used the hidden state at the final character to produce its classification. A softmax output converted the final scores into a distribution over the dialect labels.

The team compared configurations that began with a character embedding layer to those that omitted it. An embedding is a learned numerical representation of a character. When present, the layer’s size was set to two thirds of the input size, leading to twenty five or twenty nine units depending on the character replacements in use. The LSTM layer had ninety hidden units. The smallest configuration had 41,760 parameters and the largest had 48,600. The authors report that adding the embedding layer reduced the number of parameters by 9% on average, and that reducing the set of character types shrank it by another 4%.

The authors also tried replacements of individual characters and letter groups in these experiments. Collapsing letter groups can shorten an utterance as the recurrent layer sees it. That reduces the number of character positions the layer must process. A smaller character inventory can affect the size of the input representation as well. These are reasons to examine training speed separately from accuracy. A more compact input can be quicker to process even when the information it gives the classifier is less favorable.

The networks trained in one direction. The authors considered bidirectional LSTMs, which would process the character sequence in both directions, and decided that the greater training cost would interfere with trying multiple configurations. They built the networks in Keras and used its default RMSProp settings to train them for between 100 and 300 epochs. RMSProp adjusts the training updates using a running estimate of recent gradient magnitudes. For regularization they used [dropout](https://md.research.elamur.ai/free/en/papers/srivastava-2014-dropout-simple-way-prevent/).

#### Make more training examples from long utterances

The team’s augmentation experiment grew out of its observation that the original baseline was better at classifying longer utterances. A long stretch of speech can contain useful pieces of evidence far apart from one another. The authors proposed replacing long training examples with shorter chunks, each carrying the dialect label of its source utterance. That gives the recurrent network additional labeled sequences and exposes it to examples where the useful evidence has to be recovered from less text at a time.

The paper describes two ways of slicing. For the shorter of the two length bands covered by augmentation, it makes a chunk from the first 3/4 of the words and another from the last 3/4. These chunks preserve the original word order and share part of the original segment. For longer utterances, the rule uses the first 2/3, the last 2/3 and a 1/3 middle portion. The condition printed for that longer band is:

```
l ≥ 15
```

The symbol `l` means the utterance length in words. The sign `≥` includes lengths equal to or greater than the threshold, and `15` is that threshold in words. The paper’s inequality for the other band places the endpoints in an inconsistent order. Its worked example shows how the first and last chunks are formed, while the exact boundary of that band is unclear from the inequality.

The source utterance is replaced by its chunks, so augmentation changes which sequences the learner encounters as well as how many it encounters. It retains the dialect assignment and reuses language already in the training data. Chunks from the same source can overlap, and one long utterance can contribute several examples. For the recurrent experiments, the authors also removed utterances of one or two words. In the internal evaluation setup, the training collection grew from 11,726 utterances to 15,340 after augmentation.

The central assumption is that shortening an utterance preserves its dialect label even if it removes some of the words that made the label easy to infer. In this respect, chunking gives the learner another mixture of easy and ambiguous cases. It can expose a spelling pattern in multiple contexts or give a long source utterance more influence by producing several training examples from it. The paper reports both the augmented and unaugmented configurations so the effect can be assessed empirically. The authors made their shared-task code available.

### Experiments and results

#### The task data and the comparison points

The full training set contained 14,478 utterances and the official test set contained 3638. In training, Bern had 3889 examples, Basel had 3411, Lucerne had 3214 and Zurich had 3964. The official test counts were 906 for Bern, 939 for Basel, 916 for Lucerne and 877 for Zurich. The paper characterizes both splits as roughly balanced, but the most frequent label changes from Zurich in training to Basel in the test. The least frequent label changes from Lucerne in training to Zurich in the test.

The length distribution differed visibly. The training set contained 2,052 utterances of one, two or three words, accounting for 14% of that split. Every example in the official test contained at least four words. At the long end of the distribution, the paper’s `10+` category contained 4405 training utterances and 1010 test utterances. These accounted for 30% of training and 28% of test. The length mismatch therefore included the complete absence of the shortest training categories from the official test, even though both splits contained many longer examples.

The authors also emphasize how sparsely many word forms occur. Of the 14,065 word types they count, 9,372 occur once, 2,032 occur twice and 929 occur three times. A word type is a distinct written form. This frequency distribution makes it difficult to estimate how typical every full form is of each dialect. Patterns inside words and patterns formed by abstracting over some of their letters provide alternatives when exact forms are infrequent. The paper characterizes the frequency distribution in terms of [Zipf’s law](https://md.research.elamur.ai/free/en/concepts/zipfs-law/).

There are two meanings of baseline in the results. The official table includes a rule that predicts the majority class and achieves 25.80 accuracy. This gives a reference for a system without informative features. The authors also call their tuned Naïve Bayes system a baseline because it gives their alternative methods a considerably stronger point of comparison. Its settings were chosen using validation, and its results show how much the team could achieve with a fragment representation and an off-the-shelf classifier.

#### How the scores were measured

Accuracy is the proportion of utterances assigned to their recorded dialect. Dialect-level precision asks how frequently a prediction of a given label is correct. Dialect-level recall asks how frequently utterances belonging to that dialect receive its label. A system can have good precision and poor recall for a dialect if it predicts that label sparingly and usually succeeds when it does. F1 combines precision and recall, taking both into account so that a weak value on either limits the resulting score.

Macro F1 averages the dialect-level F1 scores with equal weight for each dialect. Weighted F1 gives more influence to the dialects with more examples in the evaluated split. Micro F1 pools the decisions before calculating F1. In this evaluation, each utterance has one reference label and one predicted label, and the paper reports that micro F1 agrees with accuracy when all classes are included. The distinction among these metrics matters because success can vary substantially by dialect. These are complementary views of performance on an [evaluation benchmark](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/).

The official test results answer how well the submitted systems did on the shared evaluation. The authors also report ten-fold stratified cross-validation on the training corpus. In that procedure the training corpus is divided into folds with similar label proportions, and each fold serves in turn as a validation portion for a system fitted on the others. The resulting mean describes performance across those partitions, and the reported standard deviation describes how scores varied between them. A separate stratified internal evaluation portion, one tenth the size of the training corpus, let the authors compare their submitted approaches with the post-submission recurrent experiments.

#### The official test favors different entries under different metrics

Accuracy of CLUZH submissions and the majority baseline on the official GDI test The voting system has the highest accuracy, with the conditional random field close behind.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Majority-class baseline | 25.80 |
| Run 1 Naïve Bayes | 63.50 |
| Run 2 conditional random field | 67.07 |
| Run 3 majority vote (this paper) | 67.34 |

The vote had the team’s highest official accuracy and ranked second in the shared task on that measure. The CRF led the CLUZH entries on F1. Its macro F1 was 65.38 and its weighted F1 was 65.31. The ensemble reached 65.34 macro F1 and 65.27 weighted F1. Naïve Bayes reached 61.65 macro F1 and 61.56 weighted F1. The CRF ranked third overall by weighted F1.

Weighted F1 of the CLUZH submissions on the official GDI test The conditional random field leads the vote by a narrow margin on weighted F1.

**The numbers**

| System or setting | weighted F1 |
| --- | --- |
| Run 1 Naïve Bayes | 61.56 |
| Run 2 conditional random field (this paper) | 65.31 |
| Run 3 majority vote | 65.27 |

Both charts describe the same predictions on the same split. They put different emphasis on those predictions. The vote labels more utterances correctly overall. The CRF fares slightly better when precision and recall are combined for each dialect and those F1 values are averaged. The paper’s two rankings refer to distinct outcomes, so a claim about which run led needs to travel with its metric.

The dialect breakdown explains why the distinction matters. Zurich’s recall was 92 for Naïve Bayes, 92 for the CRF and 93 for the vote. Lucerne’s recall was 30, 34 and 32 in the same order. The CRF’s Lucerne precision was 73 and its Lucerne F1 was 47. The vote’s Lucerne precision was 76 and its Lucerne F1 was 45. The improved precision of the vote coincided with lower recall than the CRF for that dialect. Lucerne remained much harder to recover than the headline scores alone would suggest.

The confusion counts show where the missed Lucerne examples went. Of the true Lucerne utterances, Naïve Bayes assigned 260 to Basel and 222 to Zurich. The CRF assigned 268 to Basel and 196 to Zurich. The vote assigned 233 to Basel and 208 to Zurich. These are counts of individual assignment errors on the official test. They can be identified by checking the class totals in the confusion matrix, which align the true classes with the columns of counts in the published table.

Bern shows another side of the comparison. On the official test, the CRF correctly assigned 623 Bern utterances, while the ensemble assigned 660 correctly. The corresponding recalls were 69 and 73. The ensemble’s Bern precision was 71, compared with 73 for the CRF. A change in the voting decision can thus improve recall for one dialect while having a different effect on the precision or recall of another. The accuracy gain reflects the total correct assignments across dialects. The F1 comparison also depends on how correct and incorrect assignments are distributed across the labels.

#### Performance inside the training corpus

Accuracy on the stratified internal GDI evaluation set The vote leads a closely grouped set of submitted classifiers, and the best recurrent configuration falls below them.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Linear SVM | 82.39 |
| Recurrent LSTM | 83.49 |
| Run 2 conditional random field | 85.01 |
| Run 1 Naïve Bayes | 85.43 |
| Run 3 majority vote (this paper) | 85.50 |

The cross-validation ranking puts the vote first as well. Its mean accuracy was 85.70, with a standard deviation of 0.59 across folds. Naïve Bayes reached a mean of 85.10 with a standard deviation of 0.82, and the CRF reached 83.96 with a standard deviation of 0.68. The stand-alone SVM reached 82.46 with a standard deviation of 0.59. The paper gives no cross-validation score for the LSTM in this comparison. Its post-submission result belongs to the separate internal evaluation.

On that internal split, the LSTM reached 83.49 accuracy, 83.30 macro F1 and 83.46 weighted F1. It was ahead of the individual SVM under those metrics. The internal comparison also shows how close the vote and Naïve Bayes were. The vote scored 85.50 on accuracy and 85.50 on weighted F1. Naïve Bayes scored 85.43 on accuracy and 85.44 on weighted F1. These are point results on the particular held-out portion.

The discussion gives another view of the size of the gap to the official test, describing the expected accuracy as about 88% after short sequences are removed, compared with 67% on the official data. That description refers to cross-validation with short sequences removed. The system-by-system cross-validation scores above come from the paper’s separate tabulation of its internal comparisons. The shared conclusion is that results drawn from within the training corpus substantially overestimated performance on the official split.

The ranking also changed in a consequential way. The CRF was behind Naïve Bayes in the reported cross-validation and internal evaluation, yet ahead of it on the official test. The ensemble was competitive in both settings and slightly exceeded the CRF in official accuracy. The authors interpret the reversal between the individual systems as evidence that the CRF may have generalized better under the sampling change. The results compare entire systems, so what drove that difference requires a closer look at the individual experiments.

### What the ablations show

#### Word shapes add evidence to the CRF

The CRF comparison isolates a particular family of word features. Adding the vowel and consonant shapes increased accuracy by about one percentage point in the authors’ experiments. Other features already included full spellings, character fragments and combinations of beginnings and endings. The shapes allowed words to share a feature even when some of their letters differed. The result supports the use of that abstraction in the tested configuration.

The aggregate effect does not say which specific shape mattered most. A consonant pattern and an ordered vowel sequence, for example, encode different properties of the same word. The reported gain covers the feature family. Its size is given as an approximate accuracy improvement, with no separate per-dialect breakdown or result identifying which of the shape templates drove it.

The authors also report that the global label feature was unhelpful. With the CRF’s transition feature and word evidence in use, adding an explicit feature for the overall distribution of class labels yielded no benefit worth retaining. The transition feature plays a different role. It gives the learner a way to favor neighboring tags that agree, and the predicted sequences were homogeneous. The paper gives no score from running the same CRF without the transition feature, so the size of its contribution to accuracy remains open.

The regularization and optimizer experiments answer a more practical question about configuration. Adjustments to Wapiti’s default settings failed to improve results consistently. Development monitoring led the authors to choose a cap of thirty five epochs even though the training behavior did not settle into a smooth pattern. This supports the reported stopping choice for the experiments. It leaves room for results to vary with the training sample or with other ways of controlling the fit.

#### Augmentation gives the clearest average recurrent gain

The recurrent experiments vary augmentation, character replacements and embeddings. The report gives development and internal evaluation results for combinations of those choices. That design lets the authors summarize the average effect of a change across several settings, while the individual configurations show whether a change has the same effect every time.

Training on pieces of long utterances was the most consistently favorable change in the reported averages. Across the three metrics, the authors report an average improvement of 0.7% on the development set and 1.5% on the internal evaluation set from augmentation. The best internal evaluation accuracy, 83.49, came from a configuration with augmentation and a character embedding layer, without the character replacements. The reported effects support the training procedure on those splits. The overall comparison gives no measured result for recurrent augmentation on the official test.

Chunking changes several properties of the training data together. The classifier sees more labeled examples, their lengths change and sections of the original speech can occur in overlapping chunks. The effect therefore belongs to this particular augmentation procedure as a whole. A plausible interpretation is that exposure to shorter pieces helped a recurrent network learn from evidence appearing in different parts of long input sequences. The experiment does not separate that explanation from the change in the number and weighting of examples.

The development and internal evaluation sets also favor somewhat different settings. The highest reported development accuracy among the recurrent configurations is 82.82, while the configuration with the highest internal evaluation accuracy has 82.52 development accuracy. This provides a concrete example of configuration rankings varying across held-out portions even inside the same training corpus. It also gives a reason to keep the development and internal results distinct when describing the effect of augmentation.

#### Faster character processing and better classification can diverge

Character replacement generally hurt the recurrent scores. The authors report average drops of 0.2% on the development set and 0.9% on the internal evaluation set. Substituting a shorter encoding for a spelling changes both the input inventory and the sequence of positions processed by the network. The network may train more quickly, while the altered representation can make some distinctions harder to learn or change how they interact with nearby characters. The average drops establish the observed direction in these experiments. They do not identify any one replacement as the cause.

The embedding layer had mixed effects. The paper reports an average change of -0.2% on development and +0.3% on the internal evaluation. Embeddings reduced the parameter count in the tested architecture, and the authors observed that configurations with embeddings, character replacements or both reached higher accuracy levels more quickly during training. This distinction between learning speed and attained score matters when weighing the training choices. The paper found a computational benefit more readily than a uniform advantage on the reported evaluation metrics.

The comparison concerns the character representations considered for this particular recurrent network. The submitted CRF and Naïve Bayes systems made their own choices about substitutions and used a different mechanism to extract evidence from the prepared input. There is no reason to attribute the recurrent result to all forms of character normalization. In the CRF, for example, the phonetically motivated replacements are followed by explicit templates for word beginnings, endings and shapes. In the LSTM, a replacement changes the sequence the recurrent layer receives directly.

#### Error patterns qualify the overall ranking

The authors examined the baseline’s predictions by utterance length and found that longer examples were more likely to be correct. They also observed increasing performance with length in the recurrent experiments. That relationship helped motivate chunking. It identifies a difficulty the authors could see in the predictions, though length co-varies with what the utterance contains. Longer examples can supply more chances for distinctive expressions and may have other properties that affect recognition.

The official confusion analysis shows that a generally balanced set of labels can still yield markedly uneven recognition. Lucerne has low recall in all submitted runs. Zurich, in contrast, has high recall, and the errors from Lucerne often land in Zurich or Basel. The authors point to a possible relationship with the filtered training distribution, in which Zurich made up 27% of utterances and Lucerne 23%. A more frequent training label can receive more support during learning, but the confusions can also reflect the variety of forms in the utterances. The tables give the pattern of errors, and the frequency explanation remains a hypothesis.

The vote adds a different kind of comparison. Its aggregate accuracy gain over the CRF coincides with changes in dialect-level precision and recall. In particular, the ensemble recognized more Bern examples than the CRF, while the CRF recovered more Lucerne examples. The paper reports the component results and the ensemble result, without a separate experiment removing each voter or changing the fallback rule. Consequently, the measured gain belongs to the specific combination, and its distribution across dialects is more informative than treating the vote as a uniform improvement.

### Limitations

#### Limits the authors identify

The authors emphasize the discrepancy between cross-validation and the official test. Training and test were sampled differently in observable ways, and replication of the training-corpus conditions in cross-validation gave a substantially more optimistic picture. The official test excluded the shortest utterances even though the authors found that short inputs were especially difficult. This makes length an important difference between the splits, while leaving other sources of the performance gap to be explained.

They also acknowledge the methodological issue raised by using knowledge of the official input lengths to decide which training examples to remove. The filter responded to a distributional property of the test inputs, without using their dialect labels. Some reviewers regarded inspecting the official test inputs for training decisions as a problem. The authors describe whether that form of unsupervised adaptation is legitimate as a matter for the evaluation rules. The tradeoff is specific to this experiment. Adapting to observed inputs can make training conditions more similar to the intended evaluation, while a protocol can also require that those inputs remain untouched until prediction.

The stratified internal evaluation comes with a separate qualification. Settings for the submitted methods had already been selected using the full training corpus, from which the internal evaluation portion was then set aside. The systems were retrained on the remaining portion, but the earlier tuning process had already had access to the corpus used to construct the holdout. The authors flag a possible upward bias for those systems and distinguish the LSTM from them on this point. The internal numbers are useful for comparing the implemented configurations, with that difference in prior access taken into account.

Training time limited the recurrent investigations. The authors did not pursue bidirectional LSTMs because the additional training cost would have narrowed the set of experiments they could run. They also left unfinished a proposed integration of a character-level convolutional word predictor with the CRF. Their view that the fast feature-based systems were a better use of time reflects the alternatives they tried and the resources they had available. The official results concern the submitted classifiers, since the recurrent experiments were left out of that evaluation.

The authors also describe uncertainty about CRF convergence and propose that training on resampled data or subsets of features might produce a broader ensemble. The experiments report a practical stopping setting and document the lack of consistent gains from other tuning changes. The value of such a broader ensemble remains a research question. Similarly, their suggestion to examine whether other shared-task systems favor Zurich over Lucerne identifies a question left open by the CLUZH runs.

#### Limits of the comparisons

A shift in the ranking supports a claim about the behavior of the tested systems under these evaluation conditions. It gives much weaker evidence about which design decision made the difference. The Naïve Bayes entry and the CRF vary in their representation, spelling preparation and training rule. The CRF also handles the input as a sequence of words with linked tags. A comparison between complete runs leaves these choices intertwined. The word-shape experiment provides some direct evidence about one feature family, and the overall test advantage combines all of the differences between the entries.

The size of the gap between the official test and cross-validation also deserves care in interpretation. The authors document differences in class proportions and length. They do not provide a matched comparison that holds those properties constant and then investigates what remains. A source of error such as unfamiliar forms can be plausible given the frequency distribution, but plausibility is separate from a measurement that traces the official drop to a particular kind of input. The official test provides an important check on the ranking without furnishing a complete explanation of the change.

The near tie between the CRF and the ensemble on official F1 is a point comparison. The cross-validation standard deviations describe variation across internal folds. The official table gives scores for one test set, with no corresponding uncertainty estimates. The ordering recorded by each metric is clear. Whether the very small margins between the top CLUZH entries would recur under another sample remains undetermined.

The confusion counts similarly establish who gets mistaken for whom in the evaluated corpus. They do not establish that Lucerne is intrinsically harder to identify. The examples, the transcripts, the learned representations and the fixed set of labels all contribute to the measured difficulty. The result also depends on how many cues an utterance contains. The most direct conclusion is that the tested classifiers recovered Lucerne much less reliably than Zurich under this particular setup.

The transcript-based task limits what the system’s predictions can stand for. The outputs concern the regional categories assigned to manually transcribed segments. Direct audio recognition would supply a different input, and a setting with additional regional labels would change the available decisions. The CRF’s homogeneous prediction is appropriate when every word in a segment should receive the utterance label. For a task that permits multiple varieties in the same segment, copying one tag onto every word would encode a different assumption from the one needed for evaluation.

The augmentation experiment also has a limited evidential scope. The additional chunks increase the number of utterance examples in the training collection. Because those chunks reuse words from the same sources, that numerical increase does not measure an equivalent increase in independent speech material. Augmentation can still be effective, as the internal results indicate. The distinction matters for interpreting the gain and for judging what might happen with newly collected examples.

### What came after

Later citing work took up language and dialect identification at different scales. The titles of these works establish their subject and approach, and their citations connect them to the CLUZH study. The precise use each made of CLUZH’s results or implementation remains unspecified. The connections below concern the questions the works address and where those questions meet the earlier experiment.

A subsequent study on German dialect identification took a character-level convolutional approach. It returns to the closest task in the later work and keeps the character as the unit from which a classifier can build evidence. In CLUZH’s submitted runs, a prepared word supplies fragments and shapes chosen in advance. In the convolutional approach named by the later work, local character patterns are learned through convolution. This is also the direction the CLUZH authors raised when discussing a possible character-based word predictor for their CRF. The later study’s title establishes its use of convolution at character level, while the details of any connection to the proposed CRF integration are unspecified. [Character Level Convolutional Neural Network for German Dialect Identification](https://md.research.elamur.ai/free/en/papers/ali-2018-character-level-convolutional-neural-network-w18-3919/).

Another citing paper investigated machine learning methods for identifying languages and dialects in cuneiform texts. Its stated scope carries the classification question into a different textual setting. The relationship to CLUZH lies in the comparative question of which methods can recover a language or dialect label from the written evidence available. A character sequence in a modern dialect transcript is shaped by the transcription conventions used for speech. A study of cuneiform texts begins from material of a different kind. The CLUZH scores and the apparent value of particular Swiss German spelling features belong to the former setting. The cuneiform paper’s title establishes the extension of the research question to [Akkadian and cuneiform NLP](https://md.research.elamur.ai/free/en/topics/akkadian-cuneiform-nlp/). [Language and Dialect Identification of Cuneiform Texts](https://md.research.elamur.ai/free/en/papers/doostmohammadi-2019-investigating-machine-learning-methods-language/).

A survey of automatic language identification in texts cites CLUZH from a broader perspective. Its subject includes the general problem of predicting language from text, of which the assignment of closely related regional varieties is a concrete instance. CLUZH supplies an example with a fixed set of dialect labels, more than one way of representing character evidence, and a ranking that changes with the evaluation sample and metric. That example illustrates an issue a general account of identification has to accommodate. Results depend on the categories the evaluator asks a system to distinguish and on the inputs used to test it. The citation establishes the experiment’s place in the survey’s literature, without specifying how the survey weighs the individual findings. [Automatic Language Identification in Texts](https://md.research.elamur.ai/free/en/papers/jauhiainen-2019-automatic-language-identification-texts/).

Together, these works connect the shared-task experiment to a learned character representation for German dialects, to classification across languages and dialects in cuneiform text, and to a survey of identification in text generally. The CLUZH paper gives those connections a specific empirical starting point. A fitted character-fragment baseline was strong within the training corpus, a word-sequence classifier held up better on the official test, and the vote’s edge depended on the chosen score. Those details establish which aspects of the result can inform comparisons in another setting and which depend on the original data.

## Cite

Cite as Simon Clematide and Peter Makarov. 2017. CLUZH at VarDial GDI 2017: Testing a Variety of Machine Learning Tools for the Classification of Swiss German Dialects. Proceedings of the Fourth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/w17-1221](https://doi.org/10.18653/v1/w17-1221)

```bibtex
@inproceedings{clematide2017cluzh,
  title = {{CLUZH at VarDial GDI 2017: Testing a Variety of Machine Learning Tools for the Classification of Swiss German Dialects}},
  author = {Simon Clematide and Peter Makarov},
  booktitle = {Proceedings of the Fourth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial)},
  year = {2017},
  doi = {10.18653/v1/w17-1221},
  url = {https://doi.org/10.18653/v1/w17-1221}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
