Normalization of Different Swedish Dialects Spoken in Finland
Paper · 2020 · Mika Hamalainen, Niko Partanen and Khalid Alnajjar
Summary
An interview transcript can follow a speaker’s pronunciation closely enough that familiar words look unfamiliar in writing. That is valuable when studying dialect, but it can make the transcript difficult for software designed around standard spelling to process. The authors ask how much of the standard written form can be recovered automatically from transcripts of Swedish spoken in Finland. They use interviews from Nyland, Åland, Österbotten, Åboland, Kymmenedalen and Birkaland. Human transcribers produced the pronunciation-based text, and human editors supplied its counterpart in standard written Finland Swedish. The longer-term aim is to make the material easier to analyze with existing tools for natural language processing.
The authors first make the paired texts comparable. For instance, when a number appears as letters in the dialect transcript and as digits in the standard version, they spell it out in the standard version too. They remove punctuation, put both sides in lower-case and establish correspondences where the spoken and written forms have different word boundaries. They then train a system to read a sequence of characters and generate the corresponding standard text. A character sequence can represent a word even if that whole spelling is new to the system. The authors adapt this approach from machine translation.
The central experiment changes how much of the transcript the system receives together, from one dialect word through five. On the Finland Swedish test split, the single-word setting performs best. Its word error rate is 28.58, compared with 76.45 for the starting transcription. The paper contrasts this result with earlier research on dialectal Finnish, in which chunks of 3 words yielded the lowest word error rate. The authors propose that their smaller supply of training material made longer sequences harder to learn. The effect of training-data size remains an open question because the experiment varies the length of the input.
Even the strongest setting sometimes chooses a plausible vowel that disagrees with standard spelling or omits part of a long compound. The paper illustrates more disruptive failures in longer chunks, where a prediction can lose track of several words. The authors distribute their normalizer in the Python package Murre and release the prepared training data on Zenodo. The study gives subsequent experiments a benchmark for recovering written forms from these interviews. Whether the changes also improve the performance of software that analyzes Swedish remains to be tested on the normalized output.
Deep dive: Normalization of Different Swedish Dialects Spoken in Finland
This study tests how to turn Finland Swedish dialect transcripts into standard writing and finds the lowest error when processing one word at a time. · about 36 minutes to read
The problem and its context
Why the same interview has a dialect and a standard version
A person reading a transcript for evidence about speech may care about the very details that cause difficulty for a program trained on written text. Spelling a form as it sounds can preserve a local pronunciation. A standard rendering can make its written identity easier to recognize. For normalization, the author of the dialect transcription has already made the decisions involved in representing the recording as text. The computational task begins with those decisions in place and asks how to recover the written counterpart that a human editor would supply.
The distinction matters for what qualifies as an error. The spelling in the dialect transcript can be entirely appropriate for the purpose of representing speech. Its disagreement with a standard form becomes an error only in an evaluation whose goal is to produce that standard form. The authors can set up such an evaluation because the interviews have parallel written versions. On one side is an account of how the participant spoke. On the other is a rendition prepared according to standard Finland Swedish writing. The latter provides an observable target for a system that otherwise would have to infer what its output ought to look like.
Swedish has official status in Finland and is spoken by a minority there. The authors describe differences between Swedish as used in Finland and in Sweden that extend from pronunciation to vocabulary and parts of grammar. They also stress the differences among varieties of Swedish within Finland. In their account, Swedish-speaking communities are spread over a large geographical area in a country with low population density. A system for the interview collection consequently faces varied input even though the desired written convention is shared. The paper presents this as a comparatively little studied setting in computational work on language.
The name of the target language matters here. The training pairs give the system evidence about how an expression is written in standard Finland Swedish. They do so through the decisions of the people who normalized the transcripts. The paper therefore sets a concrete target for what could otherwise be a broad instruction to make dialect text more standard. Its unit of evidence is a dialect expression paired with its actual written rendering. How much has to change is a property of the pair. Some pairs may be recoverable through a small adjustment in spelling. Others can require the system to produce a different distribution of letters or a different grouping into words.
Why another text-processing tool might benefit
The immediate purpose of the task is to place the text closer to the kind of writing that existing Swedish tools expect. Consider software that labels each word with a grammatical category such as verb or noun. If it encounters a pronunciation-oriented spelling that rarely occurs in its training material, it may have difficulty recognizing a word that would be familiar in conventional writing. Restoring the conventional form gives that tool an opportunity to use the evidence it already has. The authors cite research on English as motivation for expecting such a benefit in part-of-speech tagging.
There is a practical reason to put the normalization step first. Once a transcript has a standard written counterpart, that counterpart can serve as input to more than one existing tool. The pronunciation-oriented text can still serve its original purpose as a record of speech. The prospective benefit for researchers working with the interviews is access to analyses built for the standard version of the language. The prospective benefit for processing colloquial text is similar. The paper mentions social media, forums and blogs as places where people write colloquial Swedish and where conventional tools can have difficulty with the resulting forms.
The interviews give the authors a specific way to investigate this broader problem. Their paired transcriptions supply targets against which an automatic output can be checked. Online writing motivates interest in a normalizer, while the paired interview versions define the experiment. That distinction matters because the original forms in the collection result from a transcription practice. Writers on a forum make choices about spelling and spacing under different circumstances. A method that learns the regularities of the interviews may therefore have captured some conventions specific to their preparation, along with correspondences that are more widely useful.
How earlier research represented the task
The paper places dialect work alongside the normalization of historical writing and noisy text written by users. The sources of variation differ. Historical writing can reflect established practices from another period. Noisy online writing can include accidental deviations. A dialect transcription can deliberately preserve features of speech. Each application nonetheless gives researchers a similar computational problem when a preferred rendering is available. They can look for a way to get from the observed expression to that rendering, and examples of the relationship can be used to build or test the procedure.
The authors use Bollmann’s account of historical normalization to describe the main families of techniques. One is to store known correspondences in a substitution list. VARD and Norma appear in the paper’s account of that approach. A stored correspondence is direct evidence for the treatment of a form already in the list. A second approach is to write rules that apply across forms, so that the same operation can make sense in several words. Methods based on edit distance offer another way to generalize. They use the changes necessary to get from one spelling to another as evidence about which candidate might fit. These approaches differ in whether they draw evidence from a stored form, a reusable transformation or the resemblance between strings.
Statistical and neural approaches form the other families in the review. The paper emphasizes the connection between statistical normalization and translation. If a research corpus gives both the observed writing and the desired writing, the two can be treated as source and target sequences. At character level, a source word and its target can share much of their form even when they would count as entirely different labels in a vocabulary of whole words. The authors point to earlier applications of statistical translation to historical material and to contemporary Swiss German. The precedent for the Finland Swedish work is the use of paired strings to learn regularities in a rewriting task.
The move to neural translation kept the source and target framing and changed how the correspondence was learned. In the historical German work discussed by the authors, a recurrent network read characters, with information moving in both directions within the input. The paper reports that the neural approaches in that study did better than conditional random fields and Norma. The best accuracy there came from training that also used additional data in a multitask setup. The example establishes a precedent for learning from characters and illustrates one way researchers had tried to supplement the evidence in the primary normalization task.
The review also describes research in which the scarcity of paired material prompted a different approach. The Uyghur work began with roughly 200 sentences drawn from social networks and normalized. Its authors produced further examples by introducing random errors into online text. That method makes the construction of the source text part of the experimental design. The Finland Swedish project starts from a collection in which the distinction between a pronunciation-based spelling and its standard counterpart was already recorded by people. Its preparation focuses on making that relationship usable for training. The paper also describes a recurrent approach to code-mixed text, where material from different languages occurs in the same writing. There the cited normalization accuracy was 90.27%, a result for the code-mixed study’s own evaluation.
In the paper’s discussion of historical English, processing the input in both directions had been more accurate than processing it in one direction. The studies of additional depth and different attention choices yielded no further gain there, and including metadata reduced accuracy. The authors read those findings as a reason to consider what could be done after a character-based system generated its output. That earlier experience also supplies context for the present design. More information may be available, such as metadata associated with a recording, yet its value depends on how the procedure uses it. The Finland Swedish experiment focuses on one readily defined source of additional information, the other words in the same input chunk.
Why dialectal Finnish was the closest precedent
The study of dialectal Finnish discussed in the paper offered a precedent with the same broad structure. A character-based network read dialect text and learned to produce a standard written counterpart. Its recurrent encoder operated in both directions. The Finnish training corpus contained nearly 700,000 normalized word tokens. Here a token is one occurrence of a word in the running text. A word occurring many times contributes many tokens, so the count measures the extent of the training material and gives no direct count of its distinct spellings.
That work raised a question about how much input the system should handle in each prediction. Some dialect spellings can be understood from the letters within the word. For an ambiguous form, a neighboring word may indicate the meaning or grammatical role that fits the passage, and that interpretation can affect the expected standard form. Giving the system those neighbors also lengthens the job. It must use the additional input while producing the corresponding written sequence for the words presented together. The Finland Swedish authors adopt this way of varying the input and examine it on their own paired interviews.
The method, step by step
From recordings to parallel text
The recordings were collected between 2005 and 2008. The authors obtain the collection from Finna, where it is hosted by the Society of Swedish Literature in Finland under a CC-BY license. The collection associates the interviews with coordinates for the places where the material was gathered. The system’s textual input comes from the hand transcriptions of the interviews. The answer it learns to produce comes from the manual normalizations into standard Finland Swedish.
The collection uses a speaking turn as its line unit. A brief answer can occupy a line with a single word, and an extended contribution can contain several sentences on a line. The two versions can thus be paired at the level of the turn before the author of the experiment tries to match any smaller pieces. The paper distinguishes the number of lines from the number of words in describing the regional material. A region’s count of turns describes participation as represented in the collection. Its count of words describes the amount of running text those turns provide. The authors’ comparison of the counts indicates that some regional contributions contain considerably more speech than others.
A speaking turn is a practical unit for storing paired transcripts, but its length is too variable for the question the authors want to ask about input size. To make a short example from it, they need to know which piece on the standard side goes with the part they select on the dialect side. They also need to decide which differences between the texts belong in the task. The resulting training example depends on both decisions. Its input must contain the intended amount of dialect material, and its target must represent that material under the same writing conventions used in evaluation.
How paired interviews become normalization examples and predictions
The steps in order.
Make the differences comparable
The authors inspect the collection manually for characters outside the Swedish alphabet. This reveals a pattern in how the human normalizations represent numbers and currency. The dialect transcript generally spells out the expression, while the standard side sometimes uses digits or the euro sign. A person interprets these forms as referring to the same quantity or currency. A system learning from character strings would see a much more abrupt change than in a pair where both expressions are spelled out. It would also be asked to learn when to produce a different system of notation.
One example is nittånhondratrettitvåå. The original standard text represents that number as 1932. In the prepared material, the standard side instead reads nittonhundratrettitvå. Placing the two spelled forms alongside each other exposes their similarities and lets the differences serve as examples of dialect normalization. The target still contains the number in the sense that a reader can recover its value. It expresses that number in the same general kind of representation as the source. The paper describes applying this treatment systematically to the numerical cases and attending to the inconsistent use of the currency symbol.
The authors also convert both versions to lower-case and remove punctuation. Their stated reason for removing punctuation is that the dialect and standard versions used it inconsistently. Those mismatches could cause a learner to treat editing decisions as part of the spelling correspondence. With common casing and punctuation removed, the prepared reference defines what a successful output should contain more narrowly. Its value as a target lies in the standard wording under those conventions. The formatting choices apply even where the source and the target already agree word for word.
The prepared lines are divided into tokens using NLTK. This is the step that makes the size of a source chunk countable. It also shows where the two versions organize a turn differently at the level of written words. A transcription can represent a group of sounds as a single unit even though the standard orthography uses a space inside the corresponding expression. The process of establishing the written units is called tokenization.
Establish word correspondences before cutting short chunks
Most paired lines have equal word counts after preparation. The authors find 1253 lines whose token counts differ. The pair såhäna and sådana här illustrates why. The dialect form groups the expression into one token. The target divides it into two. A position-by-position pairing would leave one part of the standard expression unmatched and could shift the correspondence of subsequent words in the turn. To train on a short section of that line, the authors first need to identify the target section that belongs with it.
They use Fast align ng, a statistical word aligner. The aligner learns from the paired texts and estimates which pieces correspond. This is a familiar problem in translation because the units of expression on the source side and the target side can cover different spans. Here the difference is between forms of Swedish as represented in the two transcripts. The training signal comes from the collection of paired lines as a whole, while the output of the aligner is used on the subset where token counts disagree. That lets the authors move from an association between entire turns to smaller source–target examples.
The aligner and the normalizer operate at different stages and use different evidence. The aligner has both texts. It helps assign an existing stretch of standard writing to a stretch of dialect transcription. The normalizer is subsequently trained to generate standard writing from the dialect characters. Given a source expression at prediction time, it has to supply what the reference contains. This distinction explains why the alignment operation can use the human normalizations during preparation and why agreement with those normalizations can still serve as a separate measure of the trained system’s predictions.
The order of operations is important. The authors fit the aligner using the entire dataset and apply it to the unequal-length pairs. They then shuffle and partition the data. The training share for the normalizer is 70%, and the evaluation share is 30 %. The resulting evaluation set is held out from the training of the normalizers. Information from the paired collection as a whole has already been used to fit the earlier alignment procedure. This describes what is shared across the input-length settings and what is kept aside for scoring.
Decide which source words the system can see
The authors use a chunk of dialect text as an example for prediction. Its size is specified by the number of dialect words it contains, with the aligned standard text providing the desired output. The experiments start with single dialect words, then increase the input through five words. A separate system is trained for each size. That arrangement lets each system learn on the kind of example it will also see at test time. The experiment consequently compares trained settings for different input lengths, instead of a single trained system presented with successively longer samples.
The size of a chunk is a statement about the source. The corresponding standard text can have a different word count. Returning to såhäna, there is one dialect input token and a space in the standard output sådana här. If those pieces are paired for a one-word example, both parts of the standard expression belong in its target. The source count is therefore a way of describing how much material is presented to the system, while the alignment determines the extent of what that material should become. The same distinction applies to scoring, where a reference word can be missing or an extra word can occur.
With a single input word, the context available to the encoder consists of the characters within that word. Their order can be informative. A sequence of letters can be typical of a particular written form even if one of those letters needs to change. In a chunk containing neighboring words, their characters add another possible source of evidence. That added evidence can help only if the system learns to connect it to the relevant choice in the target. Longer input also means keeping more source material available while producing a prediction for a larger piece of text. The authors use the chunk comparison to see how those demands balance on the interviews.
Chunk length is a simple way to make the contrast measurable because it can be assigned directly from the tokenized dialect text. A designated number of words can contain very different numbers of characters. A single long compound can give the encoder a substantial string, and a chunk with several short words can be modest in characters while containing multiple word boundaries. The paper’s comparison is defined in words because that is the unit used to add neighboring material. The internal sequence remains a character sequence in every setting, so the character lengths of actual examples can vary within any one setting.
Represent the chunk so the system can learn spelling changes
On both sides of a training pair, the words are divided into characters. An underscore, _, marks a boundary where one word ends and the next begins. The marker gives the system access to spacing information even though each position in its sequence is a character or a boundary symbol. Without a representation of boundaries, strings containing the same letters in the same order could collapse into the same sequence despite differences in grouping. In this representation the positions of the boundaries themselves can be learned as part of the correspondence between dialect and standard writing.
The benefit the authors seek is the ability to share evidence across word forms. A word treated as a single vocabulary item has to be represented as a complete unit. As a sequence of characters, an unfamiliar spelling can contain pieces the system has seen many times. If training has established a regularity linking some of those pieces to standard writing, the system can use that regularity in a new combination. This explains the authors’ interest in words outside the training vocabulary. Processing the spelling is possible even when the whole word has no entry learned from an identical example. How often that yields the correct spelling is a separate empirical question.
Characters also let the output combine retained and altered material. In the prepared number example, the expected target contains letter sequences that resemble parts of the dialect input and other sequences that differ. The same representation can express both. When a target contains a boundary that the source lacks, the system can generate the underscore as part of the target string. Thus the formulation works for the local spelling changes that motivate the task and has a way to express the spacing differences that motivated word alignment. The character representation and the word pairing solve separate parts of the preparation problem.
Read the dialect string and generate its counterpart
The authors train with OpenNMT-py, which supplies the translation machinery. The encoder reads the dialect input and builds an internal representation of its characters. The decoder uses that representation to generate characters for the standard output. The training examples give the decoder a target sequence for each encoded source sequence. Through repeated examples, the system can learn correspondences that extend beyond memorizing how a single observed word was written. This is the role of the translation framework in the study. OpenNMT
The recurrent architecture is based on long short-term memory, abbreviated LSTM. Recurrence carries information along a sequence through a state that is updated as the system processes successive positions. The authors select a bidirectional recurrent neural network, or BRNN, for the encoder in place of the toolkit’s default recurrent encoder. The bidirectional encoder processes the input in both directions, so the representation at a position can draw on characters before and after it within the source. In the shortest setting the available evidence from both directions is still confined to the current dialect word.
The encoder and decoder each use two layers, following the reported defaults. The decoder also uses the toolkit’s general global attention. Attention allows it to draw on different encoded positions as it generates different parts of the output. The global mechanism makes the whole encoded input available to that calculation. This can matter within a single word, where the characters that help explain a target spelling may occur in different parts of the input. With a multiword chunk, positions in neighboring words are available as well. The paper uses the mechanism described in Effective Approaches to Attention-based Neural Machine Translation.
Although the statistical aligner and the attention mechanism both concern relationships between positions, their jobs differ. Word alignment prepares an example by consulting both the human dialect transcript and the written reference. Attention operates during generation, when the standard output has to be produced. It lets the decoder use the encoded input at successive points in that prediction. A training alignment between words is therefore useful for establishing which passages belong together. It leaves the encoder and decoder to learn how to generate the characters for the resulting example.
Every chunk setting is trained for 100,000 steps, which the paper identifies as the default training duration. The authors use 3435 as the random seed across settings. A seed determines the starting state for pseudorandom operations, making it possible to use the same specified starting condition in the different runs. The encoder choice, layer counts and attention mechanism are also shared. A longer input still produces a different collection of training sequences. A common step budget imposes the same limit on training in units of steps while allowing the examples processed during those steps to differ in length and organization.
The authors use the highest-ranked output when evaluating predictions. In practical terms, the system has to settle on the spelling and segmentation that it gives the evaluator. Other candidates may be possible, but their quality plays no role in the reported score. This makes the result a measure of the decisions made by each trained setting under its own input condition. It also gives a clear point at which a future selection procedure could intervene, by keeping several predictions available before deciding which one goes into the normalized text.
Turn differences from the reference into a score
The normalizer works in characters, and the main error rate is defined over words. The evaluation compares the words in the prediction with the words in the standard reference. An edit alignment identifies how the sequences can be brought into agreement by substitutions, deletions and insertions. Word error rate uses the count of those edits in relation to the amount of reference text. The paper gives the following formula.
WER = (S + D + I) / (S + D + C)
WER means word error rate. S is the number of substitutions, where the prediction has a different word in place of a reference word. D counts deletions, where the prediction leaves a reference word out. I counts insertions, where the prediction includes a word in excess of the reference. C counts words matched correctly. The plus signs add counts within each group, the parentheses mark the groups, the slash divides the first total by the second, and the equals sign defines the score. The first group is the edit count. The second is the reference word count, since each reference word is matched, substituted or deleted in the edit alignment.
The paper derives the measure from Levenshtein edit distance. For this application, a word with a single incorrect letter can be a substitution in the same sense as a replacement by an completely different word. A boundary difference may also affect the number of words the alignment has to match. This gives the measure a way to handle the range of outputs the system can generate, including those with too little or too much material. It gives character changes weight according to their effects on the sequence of words expected by the reference.
Experiments and results
What the comparison measures
The experiment uses the prepared interview material, with the standard side of the evaluation split as the reference. Every trained setting works with sequences of characters and uses the same basic architecture. The experimental change is how many dialect words are processed together. The starting dialect transcription supplies the direct baseline for word error rate. Comparing it with the standard side gives a measure of the discrepancy present before automatic normalization. Comparing the predictions with that same standard gives a measure of the discrepancy that remains after the system has acted.
The paper names accuracy and word error rate as its evaluation measures. It specifies the edit calculation for word error rate, which is also the metric for its headline numerical comparison. A match between a predicted word and the reference is evidence that the written form has been recovered. Outputs that contain missing or extra words also need a way to account for the difference in length. Word error rate incorporates both cases through deletions and insertions. The resulting score reflects how much work remains to turn the system’s predicted words into the intended reference words.
There are two comparisons to keep in view when reading the result. The starting rate and the best result quantify the change from the original form to the strongest automatic prediction. The comparison among trained settings identifies which amount of source text was most effective under this training procedure. The earlier Finnish work provides a separate comparison of preferred input lengths across studies. Its corpus is distinct, so it supplies a precedent for choosing input lengths and a point of comparison for the ranking they produce.
The best setting uses one dialect word
The starting word error rate is 76.45 on the Finland Swedish test material. Normalization with the single-word setting gives a word error rate of 28.58 on that evaluation. Among the tested chunk sizes, it gives the strongest overall result. This means that the system recovered many of the words that had differed from the standard reference and that a substantial residue of disagreement remained. The reported rate measures word edits relative to the reference, so the residual includes both local spelling mistakes and errors involving whole words or boundaries.
Baseline and best word error rate on the Finland Swedish test split
The shortest normalization setting reduces word error rate against the standard reference.
The numbers
| System or setting | WER |
|---|---|
| Starting dialect transcription | 76.45 |
| Single-word normalization (this paper) | 28.58 |
In the earlier Finnish study, the lowest word error rate came from input chunks of 3 words. The change in which setting wins is the empirical point of comparison. Input length was a useful choice to revisit on the Swedish interviews even though the authors borrowed the general character-based technique from the Finnish study. The paper attributes the different outcomes tentatively to how much training data was available. That explanation is compatible with the result, since longer sequences present more material to learn to map within a prediction. Establishing the role of data volume would require a comparison designed around that variable.
What remains wrong in a good prediction
The authors’ inspection of the single-word output finds many words that appear correct or close. Their example teevlingar is useful because the system makes progress toward the written form and still misses it. It produces tevlingar, while the expected form is tävlingar, meaning contests. The source’s doubled vowel is reduced, and most of the rest of the form agrees with the standard spelling. The system selects e where the convention requires ä. A reader can recognize the intended word in the result, but the error contributes a substitution at word level.
The paper reports difficulty with ä as the most common problem the authors noticed in the best output. They point out an overlap in the way e and ä are pronounced in Swedish. In their interpretation, learning the correct letter here requires evidence about written conventions that a pronunciation-oriented form may leave uncertain. Additional examples could help establish such a spelling. A numerical estimate for that category would require counting vowel errors across the evaluation, including the cases where the system successfully chooses between those letters.
Long words can present another problem even in the shortest setting. For såmmararbeetare, the prediction is sommarbetare. The reference is sommararbetare, meaning summer worker. The prediction has retained recognizable material at the beginning and end while losing part of the compound. An analysis limited to checking whether the output resembles the source would miss the significance of the lost material. The paper points to compound segmentation as a possible way to address this problem. That would change what the system has to process within a word by breaking a long form into smaller parts before normalization.
What changes in the longer examples
The paper looks again at teevlingar in the two-word input teevlingar att. The prediction is tällev att and the desired output is tävlingar att. The short word att is retained, but the first word is much further from the target than it was when normalized alone. Putting the examples beside each other shows the difference between choosing the wrong vowel within a recognizable word and producing a form that has lost more of its structure. The result on this example represents the action of a system trained on two-word chunks, including everything that changes when training is organized in those units.
In another two-word example, i låågstaadie becomes i låstade. The desired output is i lågstadiet, glossed in the paper as referring to elementary school. Again, the brief neighboring word survives and the longer word is damaged. These cases illustrate that an input can be only a few words long and still contain a demanding character sequence. Additional words can give the encoder context for the difficult form. The decoder must also generate the whole standard chunk, including the neighboring words and the relevant boundary.
For the longer settings the paper uses the input i låågstaadie jåå to illustrate what happens when the result departs more substantially from the source. The setting for chunks of 3 words gives iog och då då. The setting for 4 words gives och då och, and the setting for 5 words gives så var var. Each has multiple elements whose relationship to the source is difficult to recover. Repetition in these outputs and loss of recognizable material show why inspecting only the correctness of individual letters would give an incomplete picture. In the evaluation, the predicted sequence is compared with the reference at every word position through the edit alignment.
These examples give different meanings to the residual error recorded by the same metric. A plausible spelling with an incorrect vowel, an incomplete compound and a sequence that has lost track of much of its input can all add edits to the total. The score lets the authors compare settings on a common scale. Looking directly at the predictions shows what the edits correspond to in the writing. The ranking concerns the full evaluation split, while the examples illustrate particular routes to disagreement with the reference.
What the ablations show
The controlled comparison changes the unit of prediction
The paper offers no component-removal ablation. It provides a controlled comparison of chunk lengths, together with a qualitative examination of errors. Across the lengths, the authors keep the character representation, encoder choice, layer counts, attention mechanism, training-step budget and seed as reported. The result establishes that, among these versions of the same procedure, giving the system more words to normalize together failed to improve on the single-word setting. The measured treatment includes the change in what the system learns to generate alongside the change in what it can read.
This distinction is central to understanding the outcome. Giving the encoder a neighboring word can in principle make a difficult spelling easier to interpret. At the same time, the target now has to include the standard rendering of that neighbor at the appropriate position. Any advantage in resolving the difficult spelling has to coexist with the demands of producing the rest of the chunk. The comparison measures the net result across the test set. It leaves open the possibility that some forms benefit from their neighbors even when the complete multiword system makes more mistakes overall.
Context also operates at more than one scale in the design. The short setting lets the encoder use evidence to the left and right of a character within a word. The other settings extend that access over word boundaries. A victory for the shortest setting therefore says something specific about adding neighboring words in a joint prediction. It leaves a distinct question about giving the system additional context while asking it to predict only the current form. That question follows from the design because it would vary how much input the encoder receives while holding the scope of the decoder’s immediate job more nearly fixed.
The amount of data is a second variable that the published comparison leaves open. The authors propose that their corpus was too small for the longer settings to reach the potential seen in the Finnish work. They test larger chunks using the same Finland Swedish collection. That shows what happens under the available training conditions. The Finnish comparison changes the language and the source material as well as the amount of data, and possible differences in the relation between dialect forms and standard writing remain in play. The preferred input length in each study is observed. The contribution of each cross-study difference remains undetermined.
The examples help locate the failures
The pair of examples containing teevlingar is the closest the paper comes to inspecting how the same spelling looks as the context changes. With the short input, the mismatch can be traced to the choice of vowel. With att included, the larger chunk contains a recognizable att and a first word that diverges more severely. This demonstrates that a longer chunk can hurt the treatment of a word even when some of the additional material is handled correctly. The comparison is illustrative. Establishing how frequently this happens would require following the same forms across settings throughout the evaluation.
The såmmararbeetare example makes the internal length and structure of a word visible as another issue. Even with neighboring material excluded, the system can have trouble preserving enough of a compound to produce the expected written form. This bears on how the chunk comparison is interpreted. Word count controls the number of source tokens, but a word can contain a lengthy character sequence on its own. Segmenting a compound would change the internal unit being normalized. Taking a neighboring word away would change the external context. The paper identifies the former as a possible response to the kind of loss illustrated by the compound.
The examples built around låågstaadie add evidence about more severe failures. In the two-word case the prediction still follows recognizable parts of the phrase. In the longer settings the relation of the output to the source becomes harder to see. The error analysis can therefore describe a range of difficulties, from a poor choice among plausible written characters to omission and replacement over several words. The selected passages give concrete evidence of each phenomenon. The relative contribution of each kind of mistake to the overall ranking would take a count organized by error type and input setting.
The experiment keeps the representation and the architecture together as a common design. It evaluates the complete character-based procedure and gives reasons for choosing its parts based on earlier work. A separate comparison would be necessary to estimate the gain from the bidirectional encoder, from using characters in place of whole words, or from the specified form of attention. In particular, the ability to represent a new spelling as characters follows from the design. Its performance advantage on unseen spellings would be a measured claim about a subset of the test data, beyond the aggregate comparison reported here.
The shared preparation also matters to interpretation. Spelling out a number on both sides makes the mapping more like other character correspondences. Aligning a form that splits in the standard version makes it possible to give a short source chunk a meaningful target. These steps explain how the authors obtained their training task. Their individual effects on prediction are unmeasured. A comparison of preparation choices would have to distinguish an improvement in learning from a change in what counts as the desired answer, especially if an alternative left digit forms or punctuation in the reference.
Limitations
Questions the authors identify
The authors leave the ideal amount and type of training material open. Their Finland Swedish collection supports a useful reduction in word error rate with the chosen procedure. Its size may also have contributed to the preference for the shortest setting. The conditions under which a longer sequence would become useful remain to be determined. To attribute a change to volume, it would be necessary to observe the behavior as the amount of available evidence changes within a comparable setup. The composition of that evidence is a related question. A corpus can grow by repeating familiar correspondences or by adding examples of forms and contexts that the system would otherwise rarely encounter.
The authors also identify linguistic distance as an influence on difficulty that they leave unevaluated. A dialect spelling may be close to the written form through much of a word, or it may require a less predictable transformation. Those relationships can vary among dialects and according to the orthography used as a target. The geographical spread of the interviews establishes that the system encounters material from diverse regions. It gives no measure of how distance from the target affects accuracy, or whether the same input length would be best for each dialect considered separately. The authors also identify Swedish dialects spoken outside Finland as a topic for subsequent work.
The paper proposes a different allocation of work between word normalization and contextual interpretation. Since the current evaluation uses the leading candidate, a future procedure could retain several possible spellings. A system trained on standard text could then assess how those candidates fit the surrounding writing. The proposal addresses the possibility that a good spelling is among the alternatives even when the first choice is wrong. Its viability depends both on generating appropriate candidates and on using context to select them. The current results measure only the quality of the highest-ranked prediction in the original setup.
Compound segmentation is also a proposal, prompted by observed losses inside long forms. Its effect would depend on producing parts that are easier to normalize and retaining the information necessary to reassemble the standard compound. The example identifies a case where working with the whole source word yielded an incomplete form. It supplies a reason to investigate a smaller unit of processing. The effect of introducing such a unit, including how it would interact with word boundaries and scoring, remains an empirical question.
What the data preparation and split allow a reader to infer
The reported split is a shuffled partition of the prepared data. The description leaves the grouping of speakers, interviews and localities across that partition unspecified. Those details determine which kind of generalization the evaluation measures. A system can be tested on text held out from its training examples while still encountering the same speaker or variety in both portions of the collection. A test organized around unseen speakers or regions would pose a different question. For the reported score, the firm conclusion is performance on the reserved portion of the interview material under the stated preparation.
The aligner was trained on the full paired collection before that partition. The normalizer then trains on its designated share and is evaluated on the reserved share. Because the earlier alignment procedure uses all the data to learn token correspondences, the holdout applies to normalization training with those correspondences already prepared. Fitting the aligner on the training portion alone would produce a different evaluation protocol. The paper leaves the quantitative effect of that change open. The important point for interpreting the current result is to identify which learned operation had access to which part of the material.
Some details of example construction also matter for reproduction. A turn can be shorter than a nominal chunk size or leave a short remainder when divided into chunks, and the two sides of an aligned example can have different numbers of tokens. The paper specifies the main steps and the lengths used in the comparison. The exact handling of such boundaries and remainders is left implicit in its account. That could affect how much material each setting uses and the distribution of example lengths it sees. The examples establish the intended mapping from short pieces of dialect text to standard text. They leave some choices about forming those pieces unresolved in the prose description.
Another issue is the distribution of evidence across regions. The paper distinguishes turns from words in part because the amount of speech in a turn can vary considerably. In a pooled edit score, a portion of the collection that contributes more reference words can have more influence on the resulting rate. The headline score therefore describes performance across the combined test material. Establishing how evenly the improvement extends across regions would require regional results. Assessing the ability to generalize to a variety held out of training would additionally require a partition designed to keep that variety separate.
The same distinction between capability and measurement applies to unseen word forms. A character-based procedure can accept a new arrangement of characters without requiring the entire spelling to have appeared as a training item. The aggregate result includes whatever mix of familiar and unfamiliar forms the split contains. To find out how well the procedure handles new forms specifically, the evaluation would need to distinguish words observed in training from those encountered for the first time in the test data. The authors’ reason for choosing characters makes this a natural question, while the reported score answers the broader question of how closely the system reproduced the combined reference.
What agreement with this reference establishes
The reference defines a particular output. It is the manual normalization after the authors standardize the treatment of numbers and currency, remove punctuation and lower-case the text. A strong result therefore means that the system recovers that form of standard written Finland Swedish. A fully edited transcript that restored punctuation and capitalization, or formatted quantities as digits when appropriate, would require evidence about additional output decisions. The normalization comparison isolates the part of that work that the authors prepared as their prediction task.
Scoring against the human reference also makes the exact written form important. The tevlingar example is close enough to be recognizable, yet the expected spelling provides a precise reason to score it as a substitution. Other substitutions can be much more disruptive. The same edit operation records both. If a different standard rendering were acceptable in a particular passage, a single-reference score would still measure agreement with the one used in the test. The paper’s qualitative examples help interpret the observed edit counts. A study of acceptable variants or of the effect of errors on comprehension would need judgments beyond those counts.
The proposed downstream benefit likewise remains distinct from reference recovery. The authors can show how much closer the outputs are to the written versions that a Swedish tool is designed to handle. To establish an improvement in grammatical tagging, for instance, they would need to run that task and evaluate its decisions on the relevant material. Some improvements in spelling may help the analysis directly, and others may occur where the analyzer was already able to assign the desired label. Some remaining normalization errors may matter more to it than others. Word error rate gives a common measure of reference recovery while leaving those effects to be measured on the application itself.
Applying the result to social media or other informal writing involves a further change of source. The training text was produced by people following speech in interviews. Online text is produced by the people composing the messages, with conventions and circumstances of its own. The paper makes colloquial writing part of the motivation and tests the method on paired interview versions. A claim about online performance would need an evaluation that specifies the intended standard forms for that material and checks whether the learned correspondences carry over.
Finally, the ranking of input lengths comes from a common architecture, a fixed training-step budget and the specified seed. It is evidence for the settings the authors actually compared. Using a shared seed makes the setup more comparable in that respect. It leaves run-to-run variation unmeasured, and equal training steps can still expose systems to different sequences when the training examples are organized differently. The conclusion about a one-word input is consequently strongest as a baseline for this prepared corpus and this way of extending context. The amount of context that would help under another training budget or a different prediction setup remains open.
What came after
The documented continuation is the release of the materials. The authors distribute their normalization software through Murre, a Python package, and release the training data they prepared on Zenodo. The prepared version is important because it records the task after the choices about written numbers, punctuation and correspondence between tokens. Together, the releases give later comparisons a concrete starting point. A subsequent experiment can use the same definition of the target and distinguish changes in prediction from changes in the preparation of the evidence.
The paper also sets out a follow-up in which the character-based system would generate several spellings and a separate procedure would choose among them with the help of surrounding standard text. This would allow the evaluation to locate a failure more precisely. The intended spelling might be missing from the candidate set, or it might be present and lose to another spelling during selection. The published experiment measures the result after a single leading candidate has been chosen. The proposed extension would let the quality of candidate generation and the contribution of contextual selection be studied separately.
Other directions raised by the authors concern how much and what kind of data is needed, the relation between dialect distance and normalization difficulty, and the treatment of Swedish dialects outside Finland. These are research directions identified by the paper. The established result they can build on is a comparison on paired Finland Swedish interviews in which the shortest tested input yielded the lowest word error rate. A follow-up that changes the training material, target orthography or role of context can use that baseline to specify exactly what has changed.
Cite
Cite as Mika Hamalainen, Niko Partanen and Khalid Alnajjar. 2020. Normalization of Different Swedish Dialects Spoken in Finland. arXiv:2012.05318.
@misc{hamalainen2020normalization,
title = {{Normalization of Different Swedish Dialects Spoken in Finland}},
author = {Mika Hamalainen, Niko Partanen and Khalid Alnajjar},
year = {2020},
doi = {10.1145/3423337.3429435},
eprint = {2012.05318},
archivePrefix = {arXiv},
url = {https://doi.org/10.1145/3423337.3429435}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/hamalainen-2020-normalization-different-swedish-dialects-spoken/
References
- authorpersonMarilisa Amoia and personJose Manuel Martinez. year2013. Using comparable collections of historical texts for building a diachronic dictionary for spelling normalization. In booktitleProceedings of the 7th workshop on language technology for cultural heritage, social sciences, and humanities. pages84–89. our card
- authorpersonAlistair Baron and personPaul Rayson. year2008. VARD2: A tool for dealing with spelling variation in historical corpora. In booktitlePostgraduate conference in corpus linguistics. OpenAlex ↗ · Scholar ↗
- authorpersonSteven Bird, personEwan Klein, and personEdward Loper. year2009. booktitleNatural Language Processing with Python. publisherO'Reilly Media. OpenAlex ↗ · Scholar ↗
- authorpersonMarcel Bollmann. year2012. (Semi-)Automatic Normalization of Historical Texts Using Distance Measures and the Norma Tool. In booktitleProceedings of the Second Workshop on Annotation of Corpora for Research in the Humanities (ACRH-2). addressLisbon, Portugal. https://marcel.bollmann.me/pub/acrh12.pdf OpenAlex ↗ · Scholar ↗
- authorpersonMarcel Bollmann. year2019. A Large-Scale Comparison of Historical Text Normalization Systems. In booktitleProceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). publisherAssociation for Computational Linguistics, addressMinneapolis, Minnesota, pages3885–3898. https://doi.org/10.18653/v1/N19-1389 our card
- authorpersonMarcel Bollmann and personAnders Søgaard. year2016. Improving historical spelling normalization with bi-directional LSTMs and multi-task learning. In booktitleProceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers. publisherThe COLING 2016 Organizing Committee, addressOsaka, Japan, pages131–139. https://www.aclweb.org/anthology/C16-1013 our card
- authorpersonChris Dyer, personVictor Chahuneau, and personNoah A. Smith. year2013. A Simple, Fast, and Effective Reparameterization of IBM Model 2. In booktitleProceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. publisherAssociation for Computational Linguistics, addressAtlanta, Georgia, pages644–648. https://www.aclweb.org/anthology/N13-1073 OpenAlex ↗ · Scholar ↗
- authorpersonDouwe Gelling and personTrevor Cohn. year2014. Simple extensions and POS Tags for a reparameterised IBM Model 2. In booktitleProceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers). publisherAssociation for Computational Linguistics, addressBaltimore, Maryland, pages150–154. https://doi.org/10.3115/v1/P14-2025 OpenAlex ↗ · Scholar ↗
- authorpersonMika Hämäläinen and personSimon Hengchen. year2019. From the Paft to the Fiiture: a Fully Automatic NMT and Word Embeddings Method for OCR Post-Correction. In booktitleRecent Advances in Natural Language Processing. INCOMA, pages432–437. OpenAlex ↗ · Scholar ↗
- authorpersonMika Hämäläinen, personTanja Säily, personJack Rueter, personJörg Tiedemann, and personEetu Mäkelä. year2018. Normalizing early English letters to present-day English spelling. In booktitleProceedings of the Second Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature. pages87–96. our card
- authorpersonMika Hämäläinen, personTanja Säily, personJack Rueter, personJörg Tiedemann, and personEetu Mäkelä. year2019. Revisiting NMT for Normalization of Early English Letters. In booktitleProceedings of the 3rd Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature. publisherAssociation for Computational Linguistics, addressMinneapolis, USA, pages71–75. https://doi.org/10.18653/v1/W19-2509 OpenAlex ↗ · Scholar ↗
- authorpersonAndreas W Hauser and personKlaus U Schulz. year2007. Unsupervised learning of edit distance weights for retrieving historical spelling variations. In booktitleProceedings of the First Workshop on Finite-State Techniques and Approximate Search. pages1–6. OpenAlex ↗ · Scholar ↗
- authorpersonSepp Hochreiter and personJürgen Schmidhuber. year1997. Long short-term memory. journalNeural computation volume9, number8 (year1997), pages1735–1780. OpenAlex ↗ · Scholar ↗
- authorpersonAnn-Marie Ivars and personLisa Södergård. year2007. Spara det finlandssvenska talet. journalNordisk dialektologi og sociolingvistik (year2007). OpenAlex ↗ · Scholar ↗
- authorpersonGuillaume Klein, personYoon Kim, personYuntian Deng, personJean Senellart, and personAlexander M. Rush. year2017. OpenNMT: Open-Source Toolkit for Neural Machine Translation. In booktitleProc. ACL. https://doi.org/10.18653/v1/P17-4012 our card
- authorpersonVladimir I. Levenshtein. year1966. Binary Codes Capable of Correcting Deletions, Insertions, and Reversals. journalSoviets Physics Doklady volume10, number8 (year1966), pages707–710. OpenAlex ↗ · Scholar ↗
- authorpersonMinh-Thang Luong, personHieu Pham, and personChristopher D Manning. year2015. Effective approaches to attention-based neural machine translation. journalarXiv preprint arXiv:1508.04025 (year2015). our card
- authorpersonSoumil Mandal and personKarthick Nanmaran. year2018. Normalization of Transliterated Words in Code-Mixed Data Using Seq2Seq Model & Levenshtein Distance. In booktitleProceedings of the 2018 EMNLP Workshop W-NUT: The 4th Workshop on Noisy User-generated Text. publisherAssociation for Computational Linguistics, addressBrussels, Belgium, pages49–53. https://doi.org/10.18653/v1/W18-6107 OpenAlex ↗ · Scholar ↗
- authorpersonNiko Partanen, personMika Hämäläinen, and personKhalid Alnajjar. year2019. Dialect Text Normalization to Normative Standard Finnish. In booktitleProceedings of the 5th Workshop on Noisy User-generated Text (W-NUT 2019). pages141–146. our card
- authorpersonEva Pettersson, personBeáta Megyesi, and personJörg Tiedemann. year2013. An SMT approach to automatic annotation of historical text. In booktitleProceedings of the workshop on computational historical linguistics at NODALIDA 2013; May 22-24; 2013; Oslo; Norway. NEALT Proceedings Series 18. Linköping University Electronic Press, pages54–69. OpenAlex ↗ · Scholar ↗
- authorpersonJordi Porta, personJosé-Luis Sancho, and personJavier Gómez. year2013. Edit transducers for spelling variation in Old Spanish. In booktitleProceedings of the workshop on computational historical linguistics at NODALIDA 2013; May 22-24; 2013; Oslo; Norway. NEALT Proceedings Series 18. Linköping University Electronic Press, pages70–79. OpenAlex ↗ · Scholar ↗
- authorpersonPaul Rayson, personDawn Archer, and personNicholas Smith. year2005. VARD versus WORD: A comparison of the UCREL variant detector and modern spellcheckers on English historical corpora. journalCorpus Linguistics 2005 (year2005). OpenAlex ↗ · Scholar ↗
- authorpersonTanja Samardzic, personYves Scherrer, and personElvira Glaser. year2015. Normalising orthographic and dialectal variants for the automatic processing of Swiss German. In booktitleProceedings of the 7th Language and Technology Conference. ID: unige:82397. OpenAlex ↗ · Scholar ↗
- authorpersonMike Schuster and personKuldip K Paliwal. year1997. Bidirectional recurrent neural networks. journalIEEE transactions on Signal Processing volume45, number11 (year1997), pages2673–2681. OpenAlex ↗ · Scholar ↗
- authorpersonOsman Tursun and personRuket Cakici. year2017. Noisy Uyghur Text Normalization. In booktitleProceedings of the 3rd Workshop on Noisy User-generated Text. publisherAssociation for Computational Linguistics, addressCopenhagen, Denmark, pages85–93. https://doi.org/10.18653/v1/W17-4412 OpenAlex ↗ · Scholar ↗
- authorpersonRob van der Goot, personBarbara Plank, and personMalvina Nissim. year2017. To normalize, or not to normalize: The impact of normalization on Part-of-Speech tagging. In booktitleProceedings of the 3rd Workshop on Noisy User-generated Text. pages31–39. OpenAlex ↗ · Scholar ↗