Elamur Research

WordSeg: Standardizing unsupervised word form segmentation from text

Paper · 2019 · Mathieu Bernard, Roland Thiollière, Amanda Saksida et al.

Summary

Speech gives a child sequences of sounds, with few reliable pauses that say where a word ends and the next begins. One way to study this problem is to take a phonological transcript, remove its word boundaries, and ask what an algorithm can recover. The answer depends on the algorithm, but it also depends on how the transcript represents sounds, which utterances it contains, and how a successful recovery is counted. WordSeg brings these decisions into a common workflow for studying word forms in child-directed speech.

The authors built an open-source package that describes a corpus, prepares versions with phones or syllables as the basic units, runs different segmentation algorithms, and compares their output with a reference. Some algorithms look for pairs of sounds that are unlikely to occur inside a word. Others try to build a vocabulary from recurring stretches of speech. A hybrid method remembers chunks and checks whether their surroundings resemble plausible word edges. The package also supplies baselines, including a rule that treats every syllable as a word, and scores that capture different outcomes. Recovering a familiar form somewhere in the corpus, for instance, is easier than recovering it at every position where it occurs.

The authors demonstrate WordSeg on 74 transcripts from five children in the Providence corpus of American English. The pairing of algorithm and input unit mattered greatly. The same change from phones to syllables helped a transitional-probability algorithm with a corpus-wide threshold and hurt it with a local threshold. Cutting at every syllable also did well, which gives a more demanding point of comparison for this particular corpus than a random segmentation alone. A regression that included the algorithm, the unit, their interaction, and transcript identity explained 98% of the variation in token F-scores. In a separate analysis that joined successive transcripts for each child, scores for most configurations were fairly stable between roughly 5,000 and 15,000 word tokens. PUDDLE with syllable input was an exception to that pattern.

WordSeg makes it possible to reproduce these comparisons and to examine why a result changes when a design choice changes. Its documented interfaces allow researchers to add another segmenter while keeping preparation and scoring consistent. The demonstration measures agreement with adult word divisions in transcribed speech. Whether a segmentation helps explain what infants actually recognize or learn remains a separate empirical question.

Deep dive: WordSeg: Standardizing unsupervised word form segmentation from text

WordSeg standardizes how researchers test whether algorithms can recover word boundaries from transcripts of speech without word breaks. · about 38 minutes to read

The problem and its context

A familiar stream of sounds with unfamiliar boundaries

A listener who knows a language can hear a sentence as a sequence of words, even when a speaker runs those words together. For a learner, that experience poses a problem. Many of the reusable pieces of speech have to be discovered before they can help make sense of later utterances. Long pauses can signal some edges, but silence does not systematically identify the boundary after each word. A learner may therefore have to use cues that are informative across many utterances, even when they leave individual cases open to interpretation. This is the problem of word segmentation as the paper approaches it within psycholinguistics.

One kind of cue concerns the sounds immediately around a possible break. A pair may be frequent within words, for instance, or a particular sound sequence may occur mainly at word edges. The authors call these cues sublexical because the calculation can concern sounds or syllables without first identifying whole words. Another kind of cue becomes available when a learner begins to treat recurring sequences as possible words. A familiar chunk can help anchor a new utterance, and regularities among successive words can provide further evidence. The paper calls approaches that discover and reuse word-sized pieces lexical. The distinction concerns what the algorithm represents and uses. A single procedure can combine evidence from both levels.

The computational setup starts from speech that has already been transcribed. A researcher supplies a phonological representation, removes the known word divisions, and leaves the stretches of speech grouped into utterances. A segmentation algorithm proposes where the breaks should go. The original divisions are kept separately as the gold segmentation, the reference against which those proposals are scored. Here, tokenization has two distinct roles. Preparing the input establishes the smaller units an algorithm can see. Segmenting the input groups those units into candidate words.

Earlier studies used this setup for several purposes. They asked whether a particular source of evidence could support word discovery at all and compared procedures that made different assumptions about that evidence. Some compared languages to see whether their speech differed in ease of segmentation. Others compared speech directed at children with speech directed at adults. The paper also describes early work connecting segmentation output with what infants appear to know about words. Some of those comparisons suggested that output from a segmenter could be informative beyond knowing whether a form is an adult word or how often it occurs. These were reasons to take the computational results seriously and to make their conditions easier to inspect.

Why scores from different studies were hard to compare

The authors reviewed 46 journal articles or theses reporting word-segmentation experiments between 1993 and 2015. The actual range of procedures was larger than the number of publications, especially when alternative parameter settings were treated as substantive variations. A study could use a particular corpus, a particular representation, and a particular score, while a study of a competing procedure made different choices in all those respects. A comparison between their published scores would then combine several effects. Even identifying the choice responsible for a large difference could be difficult.

The amount of input was one source of variation. The paper contrasts earlier work using around 10,000 words with work drawing on 750,000 words. For a procedure that estimates the frequency of sound pairs, more input can change which pairs are observed and how reliably their frequencies are estimated. For a procedure that stores reusable words, the extra input can change which forms it has encountered by the time it gets to a difficult utterance. Earlier experiments with adaptor grammars had also found that the effect of input size could be nonlinear and could vary with the grammar. Those findings complicate any attempt to infer what a procedure would do on a different corpus size from a score at a single size.

The source of the input was another difference. The authors discuss experiments with invented material and with transcripts of broadcast or adult-directed speech. For questions about infancy, they favor transcripts from recordings made around children, such as those available through CHILDES. These can include both speech addressed to children and speech they could overhear. Access to transcripts in the same collection still leaves choices about speakers, sessions, and which lines count as utterances. Those choices matter because a line break is already a visible division for the segmenter.

The paper gives an example of how far utterance conventions can diverge. Some transcripts appear to group material by breath or conversational turn and can place 10–20 words on a line. Others appear to use shorter syntactic or prosodic groupings, with a mean of about three words per utterance. A transcript made up of short lines exposes more edges and breaks up the sound stream into smaller search problems. It can also offer more opportunities to encounter a complete word in isolation. Those properties can help a procedure that relies on utterance edges or that remembers an intact line when it cannot divide it. Grouping sessions from children of different ages can introduce further variation in utterance length, complexity, and vocabulary.

Input granularity changes the search problem in a different way. A phone represents an individual speech sound in the transcript. A syllable groups sounds into a larger unit. If the input treats syllables as indivisible, the algorithm considers only the gaps between syllables, and each utterance offers fewer possible break positions than its phone representation might offer. On the other hand, a syllable pair may provide a useful regularity that is less apparent in statistics over individual sounds. Earlier work discussed in the paper frequently found higher scores with syllables, but there were exceptions. Comparisons that crossed algorithms with both units also found that the choice could change the ranking among procedures.

Evaluation adds another layer. A segmenter might recover a broad inventory of words while missing many repeated occurrences. Another might recover common words at their correct locations but struggle to find a diverse vocabulary. A method can also find many correct breaks and still make errors that prevent the stretches between those breaks from matching whole words. Studies differed in whether they emphasized word types, individual occurrences, boundaries, precision, or recall. The authors wanted these perspectives to be available together, so that a research question could determine which score to emphasize and other readers could still compare the result on a common basis.

A common workflow for different segmentation assumptions

WordSeg fixes the interfaces between stages of the experiment. A research group can give several segmenters the same prepared input and run their outputs through the same evaluator. If a comparison changes the input unit, both versions can come from the same utterances and use the same underlying word divisions. Corpus description gives readers a way to see whether two uses of the workflow actually began with comparable material. Standardization here makes the choices visible and repeatable while leaving the researcher in control of the corpus, assumptions, and settings.

The authors also distinguish access to code from the ability to use it in a new study. A publicly available implementation may depend on a particular environment or leave the expected input and settings unclear. WordSeg addresses those problems with defined formats, documentation for both command-line and Python use, and a Docker installation option for keeping the software environment stable. The analyses accompanying the paper are set up to be rerun. The common interfaces also let a researcher add an alternative segmenter and compare it with existing procedures under shared conditions. Those features serve both people developing algorithms and researchers who mainly want to ask a linguistic question of a corpus.

The method, step by step

Prepare the material before asking for boundaries

WordSeg starts with utterances written in phonological form. Each line represents an utterance, and delimiters mark the word boundaries and the basic units that the experiment will use. The source can mark phones, syllables, or both. A typical transcription from CHILDES includes other material, such as comments and speaker information. The researcher decides which speakers and utterances belong in the study, cleans the transcript, and supplies the phonological representation. The suite provides resources for parts of that preparation, but the workflow assumes that these corpus-specific decisions have already been made.

Converting an orthographic transcript into sound units usually involves choosing pronunciations and, for a syllable-based run, assigning syllable divisions. The paper discusses dictionary-based phonemization, rules for converting spelling to sound, and a syllabification procedure that puts as many consonants at the beginning of a syllable as the language allows. The last decision can produce different groupings for the same written sequence of sounds in different languages. The grouping is part of the evidence made available to a segmenter. A syllable-based run inherits the supplied syllable boundaries, and a phone-based run inherits the supplied inventory and sequence of phones.

The experiments used FESTIVAL to turn Providence transcripts into phonological strings with syllable divisions. It looked up pronunciations in a dictionary and used spelling-to-sound rules for items outside that dictionary. In the paper’s example, the gold phonological form of the word mommy is maamiy. The tagged representation preserves the smaller sound units and the division between its syllables. Preparing phone input exposes the phones, while preparing syllable input keeps the phones grouped into syllables. The gold version keeps the entire form together as the reference word. This makes it possible to compare the two input representations without changing what counts as a correct word recovery.

From phonological transcript to segmentation scores

The steps in order.

From phonological transcript to segmentation scoresStep 1: Select and clean the utterances1. Select and clean the utterancesStep 2: Mark phones, syllables, and reference word divisions2. Mark phones, syllables, and reference word divisionsStep 3: Describe the tagged corpus3. Describe the tagged corpusStep 4: Prepare input units and save gold words4. Prepare input units and save gold wordsStep 5: Run the chosen segmenter5. Run the chosen segmenterStep 6: Compare proposed words and boundaries with gold6. Compare proposed words and boundaries with goldStep 7: Inspect scores and item-level errors7. Inspect scores and item-level errors

Describe what the segmenter will receive

The corpus-description program, wordseg-stats, counts utterances and identifies those that contain a single gold word. It also reports counts for phones, syllables, and words at different levels. A token is an occurrence, so a word repeated in an utterance contributes each time it appears. A type is a distinct form, so repetitions of that same form share a type. A hapax is a type with a single occurrence in the corpus. Together the counts describe how much input there is, how many different pieces occur in it, and how much of that variety consists of forms the segmenter encounters only once.

The program reports a moving average type–token ratio as a measure of lexical diversity. An ordinary type–token ratio is sensitive to corpus size because a longer sample gives previously encountered words more opportunities to recur. WordSeg instead counts distinct word forms within a window of 10 word tokens, moves the window forward by one token, and averages the resulting ratios. This gives each local ratio the same denominator and lets the resulting statistic describe lexical diversity over comparable stretches of input.

The corpus descriptor also reports entropy as an indication of ambiguity. It uses the vocabulary found in the gold divisions and asks how much room the utterances leave for different parses using those forms. If a sequence can be covered by separately attested pieces and can also be covered by a single attested longer form, the known vocabulary alone leaves its segmentation open. The paper illustrates that kind of ambiguity with ice cream and icecream. A higher value indicates more ambiguity under this measure. It characterizes possible analyses of the prepared corpus, whereas evaluation measures the decisions an actual segmenter makes.

These statistics are taken from the tagged corpus, where the researcher still has the reference words. They can be reported even when a segmenter sees an input without word boundaries. This distinction is important for reproducibility. Information available to describe an experiment can be kept apart from information used to make a decision. Some configurations explicitly use reference-derived statistics, so the description of a run needs to identify when that happens.

Make the input and the reference from the same lines

The preparation program, wordseg-prep, creates a unitized version of the transcript and a gold version. In the unitized version, spaces separate the selected phones or syllables and line breaks preserve utterances. The program removes the markings that group units into words. In the gold version, spaces separate the reference words, and the smaller units inside each word are joined. The two versions therefore represent the same stretches of speech with different divisions. A segmentation output can be compared directly with the gold because both are anchored to the same lines and sound sequences.

A segmenter receives the prepared text, its parameter settings, and any extra input that its particular procedure needs. With an algorithm that estimates probabilities from adjacent units, the prepared text can be sufficient. With the diphone-based segmenter, the run also uses statistics from a corpus supplied for estimation. With an adaptor grammar, the researcher can supply a grammar or use the simple grammar that WordSeg generates. These differences are part of the experiment. A common interface makes them easier to document while preserving the information each procedure requires.

Establish what simple boundary rules can recover

The random baseline gives every available internal gap the same chance of receiving a break. A researcher can set that probability and supply a seed so the random choices can be reproduced. WordSeg uses 0.5 by default. At 0, the baseline outputs each utterance as a single word. At 1, it makes every basic unit a separate word. These extreme settings provide information about the structure of the input. The utterance rule rewards reference words already spoken in isolation. The unit rule rewards words that coincide with a single phone or syllable, depending on the input.

The authors also describe an oracle random baseline. In the syllable example, it uses the following corpus-wide setting.

p = nᵥ / nₛ

Here p is the probability of adding a break in the random procedure. The notation nᵥ denotes the count of reference word tokens and nₛ the count of syllable tokens. The slash denotes division. The reference supplies the relative abundance of words and syllables. Random placement still leaves the algorithm without the location of the gold boundaries, and the realized count can vary in a random run. This setting asks how well untargeted cuts can do when their overall frequency is informed by the reference.

Use local evidence from pairs of sounds

The diphone-based segmenter, DiBS, assigns a probability to the gap between adjacent sounds within an utterance. An ordered pair of adjacent units is a bigram, the simplest multi-unit case used here of an n-gram. DiBS uses the overall frequencies of pairs and estimates of how likely each sound is at the beginning or end of a chunk. It also needs a probability for an internal word break. A pair that is uncommon in running speech can support a break, particularly if its earlier sound is plausible at a chunk ending and its later sound is plausible at a chunk beginning. The procedure then converts the resulting probabilities into break decisions.

What counts as a chunk depends on the DiBS variant. DiBS-gold uses actual words when estimating how chunks begin and end. The authors regard it as a supervised reference for what this approach can do with that information. DiBS-phrasal uses utterances as chunks, so their available edges stand in for the word edges the segmenter is trying to infer. DiBS-lexical instead uses entries from a supplied seed vocabulary. The authors suggest that such entries might represent words frequently heard in isolation, common words, or words a child is thought to know. The variants differ in where their evidence about plausible beginnings and endings comes from.

By default, the prior probability of an internal break comes from the tagged corpus. For phone input, its calculation is:

p = (W − U) / (H − U)

Here p is the probability of a word boundary at a position inside an utterance, W is the number of gold word tokens, U is the number of utterances, and H is the number of phone tokens. Subtraction removes the contribution of the utterance divisions from the counts. The numerator counts reference breaks inside utterances, and the denominator counts the available phone gaps inside them. The slash divides these quantities. WordSeg also lets the researcher supply a different prior. The package extends the procedure to syllable input even though DiBS was designed around phones.

The transitional-probability segmenter, TP, also works with adjoining units, but it estimates their association from unit sequences and does not require a prior taken from gold word divisions. The intuition is that a pair spanning a word break may be less cohesive than a pair inside a word. The package offers several definitions of association, so a weak link can depend on whether the researcher asks how often one sound leads to the next, how often the later sound follows the earlier one when looking backward, or how frequently the pair appears relative to the frequencies of both sounds.

Tꜰ(X,Y) = f(XY) / f(X)

Here Tꜰ denotes the forward transitional probability, X is the earlier unit, and Y is the following unit. The function f gives a frequency. XY denotes the ordered pair, and X on its own denotes the earlier unit wherever it occurs. The slash is division. The formula expresses how often encountering X is followed by Y.

Tʙ(X,Y) = f(XY) / f(Y)

Here Tʙ is the backward transitional probability. X and Y again identify the earlier and later units, XY identifies their ordered pairing, and f denotes frequency. The slash divides the pair frequency by the frequency of Y. The denominator changes the question to how often Y is preceded by X.

I(X,Y) = log₂(f(XY) / (f(X) × f(Y)))

Here I denotes the mutual-information association score used for the pair. X and Y are the adjacent units in order, XY is their joint occurrence, and f gives the corresponding frequency of a pair or individual unit. The multiplication sign × combines the two individual frequencies, the slash denotes division, and log₂ is the logarithm in base 2. The frequency of the observed pairing is judged relative to how common its component units are.

TP turns these scores into cuts using either a relative or an absolute threshold. The relative version looks for a dip between the neighboring pair scores.

T(X,Y) < T(W,X) and T(X,Y) < T(Y,Z)

Here W, X, Y, and Z are successive units in an utterance, and T is the selected association measure applied to the two units inside each pair of parentheses. The symbol < means strictly lower. The word and requires both comparisons to hold before the procedure inserts a break between X and Y. The absolute version uses the average association score across the corpus as its cutoff. It can assess a pair without seeing another pair on both sides. Both options obtain the scores and the threshold from unit sequences without marked word divisions.

Let remembered sequences guide later cuts

PUDDLE combines a growing vocabulary with information about allowable edges. It begins with empty stores for remembered chunks, beginnings, and endings. It then proceeds through the utterances in their presentation order. When it encounters a stretch that matches something in its vocabulary, it checks whether the surrounding material could form plausible edges. Material immediately before the match must have an ending consistent with the stored endings when that check applies. Material immediately after it must have a beginning consistent with the stored beginnings. A vocabulary match is therefore only part of the decision.

The paper illustrates this with an utterance beginning with this, a form the procedure has already stored. It can recognize that candidate at the beginning and still decline to cut there because the remainder begins with a sequence that the procedure has yet to see as an allowable beginning. When it finds no usable match, it stores the whole utterance as a chunk and records its edges. These chunks may be longer than adult words. They are material the algorithm can draw on later, and new utterances may give it evidence for making distinctions it could not make earlier.

This feedback makes the order of presentation consequential. An utterance that is hard to divide near the start of a run might be easier after related examples have entered the vocabulary. The tests of plausible beginnings and endings also constrain how far recurrent fragments can drive the procedure toward smaller and smaller pieces. The authors explain that without this constraint the procedure would eventually divide the corpus into its basic units. WordSeg lets the researcher choose how many units count as an edge pattern. A two-phone pattern and a two-syllable pattern use the same window setting but make different demands on the strings under consideration.

Infer a vocabulary through a grammar

Adaptor grammars approach segmentation as an explanation of how the utterances could be made from reusable words. WordSeg can generate a simple grammar automatically, and users can supply other grammars. In the default kind of grammar, a sentence is built from words and a word from basic units. A terminal is a basic symbol in the input. In the paper’s small illustration, the terminal symbols are a and b.

Sentence → Word⁺

Sentence is the category for an utterance, and Word is the category for a candidate word. The arrow means that the category on the left can be expanded as the expression on the right. The superscript ⁺ allows one or more occurrences of that category.

Word → Sound⁺

Word is the category the procedure tries to infer and reuse. Sound is a basic input unit in this example. The arrow is the expansion relation, and ⁺ again allows one or more occurrences.

Sound → a | b

Sound is an abstract unit category, a and b are the possible terminals, and the arrow expands that category to a terminal. The vertical bar indicates alternatives. In an actual run, the terminal inventory corresponds to the basic units of the supplied representation.

The grammar can do more than license a division of each utterance. It can also store an expansion derived during parsing and reuse it. A recurring sequence such as ba can acquire a stored expansion of the Word category. Subsequent parses can reuse that expansion if it fits. There can also be more than one stored expansion with the same surface form, which allows the grammar to represent homophones. The distribution over possible analyses balances the creation of new expansions with reuse of ones already available. A Pitman–Yor process governs that balance, and the concentration parameter affects the relative cost of proposing a new expansion.

Inference proceeds in stages. The procedure first parses the corpus repeatedly under the grammar and the possible stored expansions. Each pass is called a sweep. It discards sweeps at the beginning and end of a run and retains only selected sweeps from the rest. The retained analyses are then applied to the corpus to generate alternative segmentations. A stored analysis can make a break available while still leaving room for other parses. Finally, a minimum Bayes risk decision uses the sampled alternatives to choose a segmentation. The authors describe the selection in terms of finding the segmentations that recur most frequently among the samples.

Among the defaults reported for adaptor grammars are 8 runs and 2000 sweeps per run. The pruning discards 100 sweeps at the beginning and end, and 9 in every 10 in between. The reported Pitman–Yor values are 0.0001 for a and 10000 for b. Rule probabilities, denoted by theta, are estimated with a Dirichlet prior, a prior over the set of possible rule probabilities. The authors present these settings as a starting point informed by earlier experiments, and the package leaves both the grammar and the inference settings open to variation.

Compare boundaries, word occurrences, and the vocabulary

The evaluator aligns the proposed segmentation with the reference over the same utterances. For a boundary score, a predicted break is correct when it falls at a reference break. The evaluator reports a version with utterance edges included and another limited to internal positions. Utterance edges are available in the input, so including them credits a segmenter for known positions. For a token score, the proposal has to recover the whole word occurrence in the right place. An internal cut through a gold word prevents exact recovery even if its outer boundaries are present. The type score compares the distinct word forms in the output with the distinct forms in the reference.

At any of these levels, the evaluator computes precision and recall. Precision starts from the algorithm’s proposals and asks what share agree with the reference.

P = TP / (TP + FP)

Here P is precision, TP counts true positives, and FP counts false positives. A true positive is a proposed item that agrees with the reference at the evaluation level in question. A false positive is a proposed item that lacks such a match. The plus sign adds the two counts to give the total proposals, and the slash divides by that total.

Recall starts from the reference and asks what share the algorithm has recovered.

R = TP / (TP + FN)

Here R is recall, TP again counts true positives, and FN counts false negatives, or gold items absent from the predicted set at the chosen level. The sum in parentheses gives the number of reference items, and the slash divides the correctly recovered count by that total.

WordSeg reports the harmonic mean of precision and recall as its F-score.

F₁ = 2PR / (P + R)

Here F₁ is the F-score used in the paper, P is precision, and R is recall. The numerator multiplies P and R and scales their product by 2. The denominator adds them, and the slash divides the two expressions. The harmonic mean gives a low value when either component is low, so a segmenter needs to recover many gold items while keeping mistaken proposals under control.

The evaluation also offers an adjusted form of the Rand Index. The paper gives the unadjusted calculation before describing the correction.

RI = (TP + TN) / (TP + TN + FP + FN)

Here RI is the Rand Index, TP and TN are the true positive and true negative counts, and FP and FN are the false positive and false negative counts. A true negative is a correct negative decision in the comparison. The numerator adds correct decisions of both kinds. The denominator adds all the decisions, and the slash divides the first count by the second. WordSeg adjusts agreement for chance using resampling, as the authors describe it.

The paper’s example shows why several views can be worth keeping even when scores are correlated in a corpus. A predicted thedog merges an occurrence of the with an occurrence of dog. The output still has separate instances of both forms elsewhere. The example therefore has type recall of 1 alongside token recall of 0.6. Its type F-score is 0.86 and its token F-score is 0.67. The boundary F-score is 0.91 with utterance edges and 0.86 when those edges are excluded. Each measurement answers a different question about the same mistake.

The evaluator can also count errors for each gold word. It records how frequently the word was recovered, joined to neighboring material, divided into smaller pieces, or otherwise mis-segmented. This output helps distinguish a problem concentrated in a few recurring words from one spread throughout the vocabulary. It also supports questions about particular forms. A researcher interested in names or other socially relevant words can check which of their occurrences survive segmentation as complete words, even when the overall token F-scores of several procedures look similar.

Compare incremental output after a period of exposure

An incremental procedure may make different decisions early and late in a corpus because its stored knowledge changes. WordSeg offers a rotation scheme to make its output easier to compare with batch procedures, which can use information from across the input. The default uses five folds. In the first run, the input stays in its original order and the evaluator retains the final 20% of the output. The procedure then moves that final block to the front, shifting a different part of the corpus into the final position.

The retained block in the next run covers the original 60% to 80% interval. Further rotations put the 40–60%, 20–40%, and 0–20% portions in the final position. The retained results are put back in their original order and scored together. Every portion used in the final score thus comes from a stage at which the procedure has already encountered the preceding material in that rotation. It can still learn during each retained portion. The score measures output after substantial exposure, including any learning in the portion being scored, rather than generalization with learning frozen.

Experiments and results

Which Providence transcripts entered the comparison

The demonstration uses the Providence corpus from CHILDES. It contains transcripts of recordings from six children learning American English. Recordings began after the children were reported by their parents to be saying at least four words, around one year of age. The authors describe about one hour of recorded interaction every 1–2 weeks until around 3 years of age. The resulting collection offered enough material to analyze transcripts individually and then to examine how results changed when sessions from the same child were joined.

The study uses 74 transcripts from five children. Sessions qualified when the child was no older than two years, only one adult was present, and that adult produced at least 300 utterances. Restricting the adult speakers this way reduced the chance of including speech addressed to another adult. The researchers removed the children’s own utterances and transcript comments. FESTIVAL then supplied phones and syllable divisions for the remaining adult speech. The experiment’s target was recovery of the original adult word divisions after this phonological preparation.

The individual transcripts averaged 3,720.28 word tokens and 700.27 utterances. The mean counts were 11,463.22 phone tokens and 4,581.11 syllable tokens. These describe the same transcribed speech at different levels. On average, the transcripts contained 3.08 phones per word and 1.23 syllables per word. The mean proportions of single-word utterances and word types occurring once were 0.14 and 0.43, respectively. The mean length of an utterance was 5.38 words, with a standard deviation of 0.93 for this transcript-level statistic. The authors emphasize the amount of variation that remains within a single collection and after restricting the ages represented.

Other descriptive values give context for the comparisons. The mean moving average type–token ratio across individual transcripts was 0.89, with a standard deviation of 0.04. The mean entropy measure was 0.018, with a standard deviation of 0.002. These values describe lexical diversity and segmentation ambiguity for the selected material. The experiment does not assign a separate performance effect to each descriptor. They make the input more fully specified and give readers some basis for assessing whether another corpus presents a similar segmentation problem.

What the researchers held fixed and what they changed

Each selected transcript was prepared both as a sequence of phones and as a sequence of syllables. The experiment ran the segmenters on each representation and evaluated the results against the reference words from the same transcript. The baselines cut only at utterance edges, made random cuts with probability 0.5, or cut at every permitted position. These settings expose how well a simple response to the structure of the input can score. The upper extreme of the cut probability is especially informative for syllable input because a one-syllable word can be recovered by placing a break at each of its syllable edges.

The TP comparisons used forward transitional probabilities with either the relative dip or the corpus-wide cutoff. The phrasal DiBS configuration drew on utterance-edge information, with bigram statistics extracted from the full corpus in the example procedure. The adaptor grammar ran with the simple automatically generated grammar. PUDDLE used a context window of 2 for beginnings and endings. Applying that setting to both input representations kept the numeric window fixed while changing the amount and kind of linguistic material represented by the window.

The package can produce boundary, token, and type scores, with precision and recall at each level. The authors report that the measures correlated strongly in these runs and use token F-scores for the main comparisons. Each plotted result for an individual transcript represents the performance of an algorithm and unit combination on that transcript. The plot thus shows variation across sessions as well as differences between conditions. The paper describes the principal score patterns from those distributions and reports regression results to quantify their dependence on the configured factors.

What happened on individual transcripts

A striking baseline result was the strong token F-score pattern when every syllable was treated as a word. The descriptive corpus statistics help explain why that rule has a chance of succeeding. The mean syllables-per-word value is 1.23 on these transcripts, and a cut at every syllable can recover individual reference words that already match a single syllable. The same rule splits longer forms and cannot adapt to the difference between them. Its performance shows how closely the supplied syllable divisions align with many of the desired word divisions in this particular sample. A comparison with more elaborate procedures must account for the part of the task that this representation has already made easy.

There was no consistent advantage for one input unit across methods. Syllables gave higher token F-scores for TP with the absolute threshold, whereas phones gave higher scores for TP with the relative threshold. Phones also gave better scores for PUDDLE under the edge window used in the experiment. These comparisons show why a statement that syllables make segmentation easier is incomplete unless it specifies how the algorithm uses them. A change that supplies a useful chunk to one scoring rule may remove the neighboring evidence needed by another.

To quantify the pattern, the authors regressed token F-score on algorithm, unit, and their interaction, with transcript identity as a blocking factor. Blocking by transcript lets the configuration comparisons account for the fact that each transcript contributes repeated observations. The regression explained 98% of the variance in token F-scores. The authors report that both main effects and the interaction were highly significant. The interaction captures the fact that the score difference between phones and syllables depended on the segmentation procedure. The percentage describes variance explained by the fitted regression on these data. It is distinct from the proportion of word tokens recovered by any segmenter.

What happened when transcripts were joined

The second experiment increased the amount of speech available within a run by concatenating transcripts from the same child in recorded order. The first point used the first included transcript. The next point used the first transcript followed by the next included transcript, and the authors continued until all selected sessions for that child were in the input. The successive inputs therefore overlap heavily. They show what happens as more of the available material is added to a common beginning. Both the amount and the composition of the input change as each session is incorporated.

The plotted trajectories changed substantially towards the short end of the range. Some scores rose and others fell as material was added, and movement appeared even in the baselines. The authors suggest that properties of the particular early transcripts may help explain those changes. Over roughly 5,000 to 15,000 word tokens, most algorithm and unit combinations were relatively stable. PUDDLE showed more distinctive trajectories. With phones its performance improved quickly at first, reached a peak, and declined slightly afterwards. With syllables it showed a more gradual upward trend across the range. The authors’ conclusion about stability singles out PUDDLE with syllable input as an exception.

The regression at the final concatenated sample for each child asked how much explanatory value remained for corpus length after accounting for the configuration. It used token F-score as the dependent measure and blocked by child. With algorithm, unit, and their interaction, it explained 99.2% of the variance. Adding the number of words in interaction with algorithm raised the explained variance to 99.3%. The authors report that the addition was statistically insignificant in their chi-square comparison.

Variance explained in Providence token F-scores at each child's final corpus size

Adding corpus length by algorithm barely changes the variance explained.

Variance explained in Providence token F-scores at each child's final corpus sizeAlgorithm and unit with their interaction: 99.2Algorithm and unit with theirinteraction99.2Same predictors plus word count by algorithm (this paper): 99.3Same predictors plus word count byalgorithm (this paper)99.3
The numbers
System or settingvariance explained %
Algorithm and unit with their interaction99.2
Same predictors plus word count by algorithm (this paper)99.3

The chart compares two fits to the final cumulative samples. The plotted quantity is the share of variation in token F-scores explained by the regression. The earlier result from individual transcripts comes from a different fit, with transcripts as blocks and observations at individual session lengths. Taken together, these analyses establish that algorithm and unit account for much of the variation in the Providence demonstration. The cumulative trajectories then supply information that a regression on final samples cannot convey, including the larger changes at short lengths and PUDDLE’s pattern as sessions were added.

What the ablations show

A unit choice can change which gaps are eligible

The central controlled comparison changes the representation of the same transcript while retaining its utterances and reference words. With TP and a relative threshold, a cut requires the score of the candidate pair to be lower than both of its neighbors. A sequence needs at least 4 units in a row for that comparison to be possible. A short utterance can have enough phones for an internal dip while containing too few syllables for any gap to pass the relative test. Even an intuitively weak syllable association cannot trigger the rule if one of the comparison pairs is absent.

The absolute-threshold configuration of TP makes the contrast instructive. It uses a corpus-wide cutoff, so an internal pair can be scored in a short utterance without waiting for a neighboring pair on each side. Syllable input did better in that configuration. The same representation that removes some candidate positions from the relative test can still supply useful evidence for the absolute test. The crossed comparison identifies a difference in outcomes for these settings. The explanation in terms of short utterances follows from the rules and is the mechanism the authors propose. The paper does not estimate how much of the score reversal is attributable to those utterances alone.

PUDDLE’s input-unit comparison illustrates a related effect. The window is expressed in basic units, and the authors used a window of 2 in both runs. A beginning or ending that spans two syllables consumes more of a short utterance than one that spans two phones. Consequently the same numerical setting can leave fewer plausible divisions in syllable input. The authors attribute some of the poorer performance with syllables to that constraint. Trying different edge lengths for a fixed unit would be a separate controlled comparison. The reported result concerns the particular windows used here.

These experiments help explain the statistical interaction. The procedures act on more than a different alphabet when the units change. They count different pairs, judge different amounts of surrounding context, and can lose or gain candidate gaps. Holding the unit and the rule together gives the scientific comparison a concrete interpretation. An aggregate score for phone input pooled across all procedures would conceal precisely the reversals that make this experiment informative.

A baseline can expose how much the representation already supplies

The every-syllable baseline tests a feature of the corpus and representation directly. It uses no vocabulary or estimated associations. Its ability to match a gold word depends on whether that word aligns with an entire syllable and whether the automatic pronunciation representation has made the relevant division available. The strong scores show that knowing syllable divisions already gets a segmenter a substantial part of the way toward this corpus’s adult word divisions. This makes the full-cut baseline an important comparison when interpreting the performance of more elaborate syllable-based procedures.

The utterance-only baseline tests a different feature. It recovers utterances that are already whole words and has trouble with every utterance containing several gold words. The random setting supplies breaks inside utterances without targeting any pattern in the local sequence. Together the baselines distinguish several ways to gain credit for the task. A segmenter can benefit from utterance boundaries, from the choice of smaller units, or from evidence about where among the available gaps to place a cut. The baselines make those contributions easier to recognize in an output score, even though the experiment does not estimate a separate numerical contribution for each.

The paper also describes the role of PUDDLE’s edge constraint. If the procedure accepted matches to stored fragments without checking the adjoining material, the authors explain that it would eventually cut down to the level of the input units. This explains why remembering recurring strings alone is insufficient for the intended procedure. It is a description of how the algorithm behaves when deprived of that constraint. The Providence comparisons do not report a separate score for a PUDDLE run with that check disabled. The measured PUDDLE comparisons concern its input units and its behavior over cumulative transcripts.

More exposure changed some configurations more than others

The cumulative analysis is a comparison over increasing exposure, with the original ordering of the selected material retained for each child. This matters especially for PUDDLE, whose vocabulary and allowable edges evolve with experience. Later transcripts arrive after the procedure has already had an opportunity to collect chunks and edge patterns from earlier transcripts in the same run. Its phone-based curve shows that an initial improvement in that setup need not continue as more material is added. The syllable-based trajectory shows a steadier improvement. The analyses locate those differences in the observed curves while leaving open which changes in the stored vocabulary or the input caused them.

Some movement over the shortest cumulative samples also appears in the baselines. That provides a check on the interpretation of early gains. A baseline that cuts every syllable cannot have learned better sound associations from the added material. A change in its score can come from the added transcript containing a different mix of words and utterance structures. The same compositional effect can occur in the output of a procedure that does learn. In this design a trajectory records the combined consequences of more material and the particular material added.

For much of the range the gains and losses were modest for the batch algorithms, and adding corpus length to the regression on final samples contributed little once the algorithm and unit were included. The fit at the final samples and the shapes of the full trajectories address different questions. The fit compares the last cumulative samples across children and procedures. The curves capture changes within a child’s material, including ones that rise and fall before the final point. A small contribution from length in the final fit is quite compatible with visible changes earlier in a curve or with an exception in one configuration.

Several scoring perspectives converged in this sample

The authors checked whether the choice among their evaluation measures affected the broad picture. The reported high correlations made token F-score a reasonable way to present the Providence comparisons in the main analysis. Where a method tended to score well under one view of the gold segmentation, it also tended to score well under the others here. This helped the authors concentrate on the interaction between segmentation procedure and basic unit.

The worked evaluation example shows why the measures still have distinct uses. A single erroneous merge can suppress a word occurrence while leaving both constituent forms in the predicted inventory somewhere else. For a question about what forms are available to a learner, the inventory matters. For a question about how often a word is successfully isolated, the individual occurrences matter. The observed correlations tell readers about these transcripts and settings. The scoring definitions explain why differences could be larger for another corpus or for a comparison limited to particular word forms.

Limitations

Limits the authors identify

The authors explicitly distinguish recovery of gold word forms from evidence about infant behavior. The reference reflects adult word divisions carried over from a transcript. A procedure can match those divisions often while extracting pieces that bear little resemblance to what a child recognizes at a particular point in development. The paper describes earlier work on an English sample in which agreement with adult segmentation had essentially zero correlation with how much variation in infant word knowledge the algorithms explained. The Providence scores are therefore evidence about recoverability under the experimental conditions. Explaining infant learning requires a separate comparison with human performance.

The authors also identify the steps before segmentation as a major area for improvement. A transcript can contain speech that a transcriber could not make out, repetitions, nonlexical material, onomatopoeia, and forms outside a pronunciation dictionary. Removing such material can bring two words into artificial adjacency or remove difficult pieces altogether. For example, deleting an unintelligible stretch between other words produces a phonological input in which the words on either side appear to have followed each other directly. A statistic over adjacent units then incorporates a relationship created by cleaning. The toolkit standardizes what happens once a tagged phonological representation exists, and the researchers remain responsible for the consequences of how they obtained it.

Phonological conversion raises its own issues. A dictionary and rules can supply pronunciations for many written forms, but the sounds supplied to a segmenter can differ from how the words were actually spoken in context. The authors discuss more realistic treatment of processes such as assimilation and reduction as a direction for further work. They also distinguish full segmentation of prepared text from discovery in raw speech. The package includes neither raw-speech segmenters nor neural-network procedures. An experiment with WordSeg already has discrete units and utterance divisions, so its evidence is about finding larger pieces from that starting point.

Adult words are also only one possible target. A useful piece for a learner might be smaller than an adult word or cover a familiar sequence of words heard together. A reference sensitive to morphology could credit meaningful pieces inside a word. A reference designed around multiword expressions could credit a recurrent combination that an adult word-level reference would count as a merge. The preparation and evaluation stages can accommodate alternative separators if the researcher supplies the necessary annotations throughout the corpus. The Providence demonstration evaluates adult word divisions, so the behavior of the procedures under these other targets remains outside its results.

Finally, the authors identify an unresolved problem in comparing complete algorithm families. Choices about how to represent possible words, how to weigh sound patterns, and when to update knowledge frequently come bundled together. PUDDLE stores chunks and uses a list of possible edges. DiBS uses probabilities over the relevant sounds. Comparing those procedures directly cannot isolate the effect of storage, edge representation, or processing order. The authors suggest that future experiments could recombine such components and examine edge handling and incremental processing independently. The package makes it possible to add such procedures, but the paper does not report those recombination experiments.

Limits that follow from the experimental setup

The broad variance results come from a particular selection of American English transcripts and a particular set of parameters. The benefit of cutting at syllable boundaries depends on how often a reference word is already an entire syllable in those transcripts. The effect of the relative TP threshold depends partly on how many units are available within an utterance. A corpus with different word lengths, different utterance conventions, or a different method for assigning syllables could alter both comparisons. The fitted variance shares describe the Providence observations under the chosen design. They give no direct estimate of the corresponding shares in another language or collection.

The same caution applies to the length experiment. Each new transcript adds a specific speaker session’s material to a sequence, and children contribute different numbers of eligible sessions. A run with more words can also have different patterns of repetition, utterance lengths, or vocabulary. The observed stability is informative about the range of cumulative corpora tested. Isolating the effect of word count while holding corpus composition constant would require a different design. Likewise, the regression on the final cumulative sample for each child does not establish how a configuration behaves throughout an arbitrary range of input lengths.

Access to information differs among the procedures. The TP settings derive their decisions from unsegmented unit strings. In DiBS, the default estimate of the rate of internal word boundaries comes from gold counts unless the user supplies a different value. The phrasal variant uses available utterance edges for its chunk statistics, whereas the gold variant has access to marked words. An oracle baseline also receives information about the expected density of cuts. A comparison is interpretable when readers know exactly which of these sources were available to each run. The shared workflow exposes those choices but does not make the underlying evidence identical.

The rotation scheme for incremental procedures measures output in a late part of a run where continued learning is permitted. Consequently the scores cannot be interpreted as results on unseen utterances presented to a procedure whose knowledge is fixed. The rotations also change which transcript material precedes the scored block, a choice that matters for a procedure driven by presentation order. They are a way of reducing the dominance of early behavior in the overall evaluation. Questions about what a learner would know at a particular point in the original chronology call for interpreting its output in that chronology.

The performance comparisons concern segmentation quality under the reported evaluation measures. The paper does not standardize measurements of memory use or processing time. This leaves open practical comparisons among implementations and prevents the scores from being interpreted as a quality-versus-cost tradeoff. It also leaves room for parameter choices to alter rankings. PUDDLE’s common edge-window setting makes the representation comparison easy to describe while illustrating that a fixed number of units is a different constraint for phones and syllables. Adaptor grammars likewise admit other grammars and inference settings that could change their output. The reported experiments show what happened with specified configurations under common preparation and evaluation.

What came after

No subsequent study is identified as extending or applying WordSeg. The paper itself leaves open whether its output predicts human word knowledge, how its comparisons would change with alternative reference units, and what recombining individual algorithm components would reveal. These are directions the authors set out for further research.

Cite

Cite as Mathieu Bernard, Roland Thiollière, Amanda Saksida, Georgia R. Loukatou, Elin Larsen, Mark S. Johnson, Laia Fibla, Emmanuel Dupoux A, Robert Daland, Xuan Cao and Alejandrina Cristià. 2019. WordSeg: Standardizing unsupervised word form segmentation from text. Behavior Research Methods.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3758/s13428-019-01223-3

@inproceedings{bernard2019wordseg,
  title = {{WordSeg: Standardizing unsupervised word form segmentation from text}},
  author = {Mathieu Bernard, Roland Thiollière, Amanda Saksida, Georgia R. Loukatou, Elin Larsen, Mark S. Johnson, Laia Fibla, Emmanuel Dupoux A, Robert Daland, Xuan Cao and Alejandrina Cristià},
  booktitle = {Behavior Research Methods},
  year = {2019},
  doi = {10.3758/s13428-019-01223-3},
  url = {https://doi.org/10.3758/s13428-019-01223-3}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bernard-2019-wordseg-standardizing-unsupervised-word-form/