MNLP-L03: Morphology and Word Formation
In short
Word-level models learn meaning from context (embeddings, CBOW), but store move and moved as unrelated row numbers and have nothing for an unseen word such as hammered. So: where do words come from, and what is inside them?
Where words come from: Chinese, Japanese or Thai do not mark word boundaries, so they must be computed: greedily, by maximum matching against a dictionary, or statistically, by tagging each character Begin, Middle, End or Single with an HMM decoded by Viterbi.
What is inside them: morphemes, combined by inflection, derivation and compounding, and packaged in four ways: isolating, agglutinative, fusional, polysynthetic. In rich languages one lemma has thousands of forms, so a fixed word vocabulary explodes or maps much of the language to
<unk>. The practical fix is subword tokenization (next lecture).The sample exam has no question on this lecture; expect statements on maximum matching, BMES tagging with HMMs, inflection against derivation, and the four morphological types.
Vocabularies, lexicons and dictionaries
Assume for now that words are given: separated by white space (after splitting off punctuation), or produced by word segmentation (also called tokenization) for languages that do not mark word boundaries (Chinese, Thai). Collect every word in a tokenized corpus and you have a vocabulary.
Vocabulary, lexicon, dictionary
- A vocabulary is the inventory of words in a language (or a corpus, or known to a person): a list of forms.
- A lexicon stores the meanings and functions of words.
- A dictionary is a written (published or digital) version of a lexicon.
Should an NLP vocabulary contain typos, rare words, all variants (book, books, booking, booked) or just book? Be language-specific, or limited in size? There is no clean answer, and these are mostly questions about morphology (how words are built from smaller meaningful parts).
Word meaning from context: embeddings and CBOW
Word meaning is classically defined through relations: synonyms (purchase :: acquire), hyponyms (car :: vehicle, is-a), meronyms (wheel :: car, part-whole), antonyms (small :: large). These need hand-crafted resources such as WordNet, which are expensive, incomplete and language-specific. The alternative is to learn relations automatically and quantify them: .
Word embeddings
Distributed representations of words as vectors that are
- low dimensional (e.g. 512, against a vocabulary size in the hundreds of thousands),
- dense (no zeros, unlike a one-hot vector),
- continuous (, where is the vector for word and its dimension),
- learned by performing a task (a prediction task).
The best-known older method is Word2Vec, with two variants: Continuous Bag of Words (CBOW), described here, and Skip-Gram, which does the reverse (predicts each context word from the centre word; see L05).
The CBOW task
Given a position in a sentence, the words to its left and the words to its right , predict the word at position :
the man X the road, withX = ?
With this would be an ordinary language model: predict the next word from the words before it. CBOW also sees the words after the gap, because it is not trying to be a language model; prediction is only the means of learning embeddings. Hence a simple feed-forward network with three layers: the input layer takes the context words, the projection layer looks up each word’s embedding and sums them (the formula in MNLP-L05 - Static Embeddings divides the sum by the number of context words, so it is the average; either way, word order is lost), and the output layer (a softmax over the vocabulary) predicts the centre word. There is no non-linear hidden layer: the embedding layer sits right next to the output, so the embeddings do most of the work. Typically , with .
A sum ignores order, so the man X the road and road the X man the give the same projection: the context is a bag of words, hence the name.
The fixed vocabulary and the <unk> token
In neural models every weight matrix has a fixed size, including the input embeddings and the output layer, and the output layer (one row per vocabulary word, a softmax over at every position) contributes much of the memory footprint. Realistic vocabularies are large: a Russian one is about five times the size of an English one, because Russian inflects far more, for example marking case (the noun’s role in the sentence: subject, object, instrument) on every noun.
Short-list
The quick fix: ignore rare words and keep only the most frequent words. Every rare word is mapped to one special token,
<unk>. Typical sizes run from about ten thousand to a couple of hundred thousand words.
The disadvantage: all rare words receive equal probability in a given context, because they are the same token: in She ___ the nail, hammered and doomscrolled are both <unk>.
What context cannot give you
From She moved the desk into her office and He moved the table into the office, embedding models learn that desk and table occur in similar contexts, though internally both are just indices. But move (2863) and moved (87542) are also unrelated indices, so each such pair must be learned separately from data, and an unseen word such as hammered gets nothing.
Why morphology matters for unseen words
Word-internal structure (morphology) can help induce meaning for unseen words: knowing hammered = hammer + -ed, a model could build a representation from a known stem and suffix. A word-level index throws that structure away.
Before looking inside words, there is a prior question: where the words are.
Word boundaries and subword units
For languages with spaces around words, splitting text into words is easy, with exceptions (Mr. Smith should not become Mr . Smith). Two different problems remain:
- No word boundaries in the script (Chinese, Japanese, Thai, Burmese): boundaries must be established before any further processing. This is word segmentation or tokenization, covered below.
- Morphologically rich languages blow up fixed vocabularies with huge numbers of inflected forms. Splitting already delimited words into smaller units is sub-word segmentation.
Word segmentation must happen before part-of-speech (POS) tagging, parsing or anything else, and is a task in its own right (benchmarked in the SIGHAN bake-offs). It is not trivial, because one string often has more than one valid segmentation:
One string, two readings
研究生活动
- 研究生 | 活动: “graduate-student activities”
- 研究 | 生活 | 动: “research on life activities”
A string of characters has gaps, each a boundary or not, so the space of segmentations is huge:
Only a few are valid, and checking all is out of the question. Approaches are rule-based or data-driven (statistical).
Rule-based segmentation: maximum matching
Given a pre-compiled vocabulary of known words, walk through the string and at each position take the longest known word. Greedy, simple and a surprisingly strong baseline, still used for preprocessing or as a fast fallback. It runs in either direction, Forward Maximum Matching (FMM, left to right) or Backward Maximum Matching (BMM, right to left), and the two often disagree on ambiguous strings.
Forward Maximum Matching (FMM)
────────────────────────────────────
Input: string S, vocabulary V,
max word length L
Output: list of words
i ← 0
output ← []
while i < length(S):
// longest candidate first
for l ← min(L, length(S) − i) down to 1:
w ← S[i : i+l]
// one char is always accepted
if w ∈ V or l == 1:
append w to output
i ← i + l
break
return outputThe inner loop counts down, so the first hit is the longest match. The or l == 1 clause accepts a single character even if it is not in , so the scan always terminates; it is also where unknown words end up, chopped into single characters. Cost: dictionary lookups.
Backward Maximum Matching (BMM)
────────────────────────────────────
Input: string S, vocabulary V,
max word length L
Output: list of words
i ← length(S)
output ← []
while i > 0:
for l ← min(L, i) down to 1:
// substring ending at i
w ← S[i−l : i]
if w ∈ V or l == 1:
// prepend keeps reading order
prepend w to output
i ← i − l
break
return outputBMM mirrors FMM: start at the end, take the substring ending at , prepend each word.
FMM and BMM on 研究生活, with = {研究, 研究生, 生活, 生, 活} and
FMM. At : 研究生活 is not in ; 研究生 (3 characters) is, so emit it. At : 活 is in . Result: 研究生 | 活.
BMM. At : 研究生活 and 究生活 are not in ; 生活 (2 characters) is, so prepend it. At : 研究 is in . Result: 研究 | 生活.
Same string, same dictionary, different answers: the string is ambiguous, and each greedy scan commits to one reading.
Bidirectional matching runs both. If they agree, accept the result with high confidence. If they disagree, apply a tie-breaking heuristic; two common choices, each used on its own, are fewer total words and fewer single-character words (proxies for less fragmentation). On the example the fewer-words rule cannot decide (two words each); the fewer-single-characters rule picks BMM’s 研究 | 生活 (none) over FMM’s 研究生 | 活 (one).
Limits of maximum matching (bidirectional included)
- It assumes a precompiled vocabulary, which is labour-intensive to compile with good coverage. Genuinely new words (names, typos) cannot be matched at all, and they break silently: chopped into single characters or greedily mismatched, with nothing in the output to flag it.
- No mechanism to exploit data: more text does not make it better. This motivates statistical methods.
- The ambiguity is in the language itself: some strings have several correct segmentations depending on meaning and context, so no direction-based rule is right in general.
Statistical segmentation: tagging characters with BMES
The statistical move: instead of asking where to cut, ask what role each character plays in its word.
BMES tags
- B (Begin): first character of a multi-character word
- M (Middle): interior character of a word with 3 or more characters
- E (End): last character of a multi-character word
- S (Single): a character that is a complete one-character word by itself
Once every character has a label, the segmentation falls out: insert a word boundary after every E and every S.
For illustration, 研/B 究/E 生/S 活/S gives 研究 | 生 | 活, and 研/B 究/E 生/B 活/E gives BMM’s 研究 | 生活. Segmentation is now ordinary sequence labelling, solvable by any sequence labelling method.
The HMM
A hidden Markov model (HMM) assumes that a hidden sequence of tags (B/M/E/S) generated the observed sequence of characters. Its parameters:
- Transition probabilities : how likely one tag follows another (tag bigrams).
- Emission probabilities : how likely a tag “produces” a given character, the character given the tag. For example, is much larger than , since 究 usually closes 研究. (“究 is usually tagged E” would be the reverse, .)
The tag definitions rule out half of the 16 possible transitions, and training on segmented text learns these zeros from the counts. After B or M you are inside a word, so only M or E can follow (B is never followed by B or S). After E or S a word has just ended, so only B or S can follow. (Outside the course material, by the same logic: the first tag can only be B or S, the last only E or S.)
The best tag sequence for characters is
where is the -th character, its tag, a sentence-start symbol, a transition and an emission probability.
Training ideally uses labelled data, a segmented corpus, and estimates the probabilities from counts (simple maximum likelihood estimates):
where counts occurrences in the tagged corpus. Inference: given an unsegmented string, find the most probable tag sequence.
Viterbi decoding
Scoring every labelling is intractable: with tags there are sequences. The Viterbi algorithm uses dynamic programming (storing intermediate results instead of recomputing them). Cell holds the probability of the best path that ends at position with tag :
where ranges over the tags at position . The best path to passes through some tag at , and only the best path into that tag can be part of it, so each cell compares just four candidates. Backpointers record which won, so the path is recovered at the end without recomputing it.
Viterbi decoding for BMES tags
────────────────────────────────────
Input: characters c_1..c_n
tags T = {B, M, E, S}
transitions P(t | t')
emissions P(c | t)
start symbol <s>
Output: best tags t_1..t_n
for each tag t in T:
score[1][t] ← P(t|<s>) × P(c_1|t)
for i ← 2 to n:
for each tag t in T:
score[i][t] ← max over t' of
score[i−1][t'] × P(t|t')
× P(c_i|t)
// backpointer
back[i][t] ← the best t'
// a word must be closed at the end
t_n ← argmax over t in {E, S}
of score[n][t]
// backtrace
for i ← n down to 2:
t_{i−1} ← back[i][t_i]
return t_1..t_n(Restricting the final tag to E or S is from outside the course material; without it the path could end mid-word.)
Complexity: : at each of positions, each of tags compares predecessors. With four tags that is 16 per character, linear in sentence length, against for brute force.
What the HMM gains, and what it still lacks
Advantages over FMM and BMM:
- No fixed dictionary of possible words is required: the model works on characters, so an unseen word is just a character sequence with a plausible tag path.
- Ambiguity is resolved with probabilistic evidence instead of tie-breaking heuristics.
- Trainable directly from any segmented corpus, even one from a different domain.
Shortcomings:
- Narrow Markov assumption. In a first-order HMM each tag is generated from the preceding tag alone, and each character from its own tag. Put the other way round, as the course does: a tag depends only on the immediately preceding tag and the current character. Higher orders are possible but more involved (outside the course material: transition parameters grow as for order ).
- No longer-range context, such as the word two positions back or a whole phrase. This motivates conditional random fields (CRFs), which can condition on features of the whole input, and beyond them any neural sequence labeller (LSTM, Transformer).
- Unsupervised training costs quality. HMMs can be trained fully unsupervised with Baum-Welch (an instance of EM), but quality drops.
What happens inside a word: inflection, derivation, compounding
A word’s core meaning sits in its stem, root or lemma, which this course treats as one idea. Strictly (outside the course material), the root is the core morpheme, the stem is what inflections attach to, and the lemma is the dictionary form standing for all inflected forms (see for saw, seen). Three processes build words.
Inflection makes another form of the same word: see, saw (tense), book, books (number). Derivation makes a new word: happy → happiness (noun), happily (adverb) changes the POS, while function → disfunction (standard spelling dysfunction) and perfect → imperfect change only the meaning. Compounding joins words, and not only nouns: German Tisch + Bein = Tischbein (noun + noun, table leg), sicher + gehen = sichergehen (adjective + verb, sure + go, “make sure”).
The three processes
- Inflection: retains the POS, but changes features such as number and tense.
- Derivation: changes the POS and/or the meaning.
- Compounding: combines several words into one word.
These processes are very productive: they apply iteratively and in new combinations, which leads to a large increase in vocabulary size. doomscrolling, doomscrolled, doomscrolls, doomscroller is a recent compound already carrying inflection (-ing, -ed, -s) and derivation (-er), so no fixed vocabulary is ever complete.
Inflection in English and elsewhere
English inflects little. A verb has five forms: present (see), simple past (saw), past participle (seen), present participle (seeing) and 3rd person singular (sees). Regular verbs use one form for both the simple past and the past participle (called). Nouns inflect only for number (book, books); case survives only on pronouns (he, him, his, them, their).
Many languages inflect far more. Russian has more cases and marks them on all nouns. German marks mood (fact, hypothetical or command): kommt (indicative), käme (subjunctive), komm (imperative). Slavic languages (Russian, Czech, Polish) mark aspect: Russian sdelat’ (perfective, completed) against delat’ (imperfective, ongoing). Features are independent slots, so forms per word multiply (number times case times possessive marking such as Turkish -iniz “your”): that is how one lemma reaches thousands of forms.
Derivation in English
By what the affix does:
- Nominalization (makes a noun): derive + -ation, kill + -er, happy + -ness.
- Adjectivization (makes an adjective): account + -able, colony + -al = colonial, office + -al = official.
- Negation (changes meaning, keeps POS): un- (unseen), mis- (misjudge), dis- (disfunctional), im- (implausible), in- (indifferent).
colonial and official show that spelling can change where morphemes meet.
Morphemes and affixes
Morpheme
The smallest meaning-carrying parts of words.
disproportionally = dis + proportion + al + ly = prefix + stem + suffix + suffix
- A root is a free morpheme (it can stand alone as a word) that determines the basic meaning of a word: proportion. (The course’s definition; it fits English, but the Arabic root k-t-b below never stands alone.)
- An affix is a bound morpheme (it cannot stand alone) attached to change meaning or grammatical function: dis-, -al, -ly.
Affixes by position:
- Prefix: attaches to the front. English words mostly have only one.
- Suffix: attaches to the end. There can be more than one (-al, -ly).
- Infix: inserted in the middle: passerby → passersby. More common in other languages.
- Circumfix: attaches to front and back simultaneously: German ge-seh-en (past participle of sehen, “see”). ge- and -en are one morpheme, so neither half can be stripped on its own.
All of these are concatenative: the word is a sequence of morphemes. Non-concatenative morphology changes the root itself, as in apophony, a vowel change in the stem: German Buch → Bücher (book, books), Haus → Häuser. No cut in Bücher separates “book” from “plural”. Any method that cuts strings into contiguous pieces, from maximum matching to subword tokenization, can only fully capture the concatenative case.
Morphological types: how languages package morphemes
Morphological typology
- Isolating (Chinese, Vietnamese): words tend not to change form at all; grammatical relations come from word order; particles express additional modification.
- Agglutinative (Turkish, Finnish): words are built by stringing morphemes together (potentially with character modifications); each morpheme contributes one clear piece of meaning.
- Fusional (Russian, Spanish, Arabic): a single suffix simultaneously encodes several grammatical features that often cannot be cleanly separated.
- Polysynthetic (Inuktitut, Mohawk): multiple grammatical roles (verb, subject, object) and various modifiers (negation, tense, mood, instrument, location) are fused or agglutinated into a single word.
Isolating. Chinese 我 昨天 看 了 一 本 书, “I read a book yesterday” (I, yesterday, read, PFV, one, CL, book): the verb 看 (kàn) never changes form; pastness comes from 昨天 “yesterday” and the perfective particle 了 (PFV, completed action); 本 is a classifier (CL). Word order is plain SVO (subject, verb, object). Vietnamese Tôi đã đi học, “I went to study”: đi (go) and học (study) do not change; đã is a past (completed-action) particle.
Agglutinative. Turkish evlerinizden, “from your houses” = ev-ler-iniz-den = house + plural + your + from. Finnish taloissamme, “in our houses” = talo-i-ssa-mme = house + plural + inessive + our. The inessive is a locative case (“in”). Each suffix is clearly separable and reusable across many other nouns. A suffix may change its spelling to fit the stem, but the meanings still split cleanly even when the characters at the join vary.
Fusional. Russian knigami, “with books” = knig-ami, glossed book + instrumental.plural.feminine: one suffix fuses case, number and gender into a single unsegmentable morpheme. This is the course’s gloss; answer by it. (Outside the course material: -ami is used for all three genders, so strictly it fuses only case and number.)
Spanish hablé, “I spoke” = habl-é: the single vowel -é fuses person (1st), number (singular), tense (preterite, past) and aspect (preterite, completed).
Arabic yaktubu, “he writes”: the consonant root k-t-b (C1 C2 C3, “write”) is poured into the pattern ya-C1C2-u-C3-u, which fuses person (3rd), gender (masculine) and aspect (not completed). The vowels are not written in regular Arabic, so part of the grammar is missing from the string; and since root and pattern interleave, the word is non-concatenative.
Polysynthetic. Inuktitut Qangatasuukkuvimmuuriaqalaaqtunga, “I will have to go to the airport” = qangata- (fly) + -suukkuvik (-suu- “habitually” + -kkuvik “place”: the place of habitual flying, the airport) + -mut (to, allative case) + -uq- (go to) + -riaqaq- (have to) + -laaq- (future) + -tunga (1st person singular). One word holds a whole English sentence: verb, subject, object (here the destination), tense and modal meaning, all fused together. The morphemes also change shape where they meet (-k-mut-uq becomes -mmuu-), so cutting the string cannot recover them. (Outside the course material: they stay in sequence, so this is concatenative morphology with blurred joins.)
| type | morphemes per word | one feature per affix? | examples |
|---|---|---|---|
| Isolating | about one | nothing to split | Chinese, Vietnamese |
| Agglutinative | many | yes, separable | Turkish, Finnish |
| Fusional | few | no, fused | Russian, Spanish, Arabic |
| Polysynthetic | very many | fused or agglutinated | Inuktitut, Mohawk |
(Outside the course material: isolating and polysynthetic are the two ends of a scale of how much meaning one word carries.)
Agglutinative against fusional
Both put several features into one word through affixes. The defining difference is separability: Turkish -ler is plural and nothing else; Spanish -é is person, number, tense and aspect at once, with no part meaning any one of them. Agglutinative words do tend to have more morphemes per word (ev-ler-iniz-den has four, knig-ami two), because each feature gets its own morpheme; that follows from separability, which is the definition.
Why word-level vocabularies break
Morphology is common to most languages, and rich morphology encodes inside one word what English spreads over separate words and word order: Turkish evlerinizden and “from your houses” carry the same information.
Word-level vocabularies blow up or become extremely restrictive. A single lemma can surface as thousands of word forms (surface forms). Keep them all and , with the embedding matrix and output softmax, explodes. Keep a fixed vocabulary sized for English and other languages get massive out-of-vocabulary (OOV) rates, every unknown form becoming <unk>. A vocabulary shared across languages spreads its fixed budget thinner, and the rich languages, with the most forms, suffer most.
These problems are the main motivation for morphological analysers (tools that split words into morphemes). But morphological analysis is highly language dependent, so each language needs its own, built with linguistic expertise. Modern approaches build on data-driven methods, and the practical compromise is subword tokenization: statistically useful pieces learned from data, language-independently, instead of linguistically correct morphemes. Falling back to single characters leaves very few words out of vocabulary, though not zero: a character never seen in training stays unknown, and only byte-level vocabularies remove that. Rich languages still get split into many more pieces per word than English, and the pieces only sometimes line up with morphemes (they cannot capture Bücher or Arabic root-and-pattern words). That is L04.
What to be able to answer
- The four properties of word embeddings; CBOW’s task, layers and why it is a “bag”.
- What a short-list does, and why all rare words then get equal probability.
- Word segmentation against subword segmentation, and which languages need which.
- FMM and BMM by hand; the two tie-breaking heuristics; the limits of maximum matching.
- BMES tags and impossible transitions; emission direction ; the Viterbi recursion, backpointers and ; what HMMs gain and lack.
- Inflection, derivation, compounding; productivity; free and bound morphemes; affix types; apophony.
- The four morphological types with example languages and words; agglutinative against fusional (separability defines it; more morphemes per word follows).
- Why fixed word vocabularies fail for rich languages, and why subword tokenization is the compromise (very low OOV, not zero).
Model answers are in the exam questions below.
Exam questions
Name the four morphological types, give example languages for each, and illustrate each with one analysed word or sentence. What distinguishes agglutinative from fusional?
Key points: isolating: no inflection, word order and particles (Chinese, Vietnamese); agglutinative: one morpheme, one meaning (Turkish ev-ler-iniz-den); fusional: one affix, several fused features (Russian knig-ami); polysynthetic: a sentence in one word (Inuktitut); agglutinative and fusional are defined by separability; agglutinative words tend to have more morphemes as a consequence.
- Isolating (Chinese, Vietnamese): words do not change form; grammar comes from word order and particles. Chinese 我 昨天 看 了 一 本 书 “I read a book yesterday”: 看 never changes, past comes from the particle 了 (PFV) and 昨天 “yesterday”.
- Agglutinative (Turkish, Finnish): morphemes strung together, one morpheme, one meaning, visible boundaries. Turkish ev-ler-iniz-den = house + plural + your + from, “from your houses”.
- Fusional (Russian, Spanish, Arabic): one affix encodes several features that cannot be separated. Russian knig-ami “with books”: -ami fuses, in the course’s gloss, case (instrumental), number (plural) and gender (feminine). Spanish habl-é: person, number, tense, aspect in one vowel.
- Polysynthetic (Inuktitut, Mohawk): verb, subject, object (or destination) and modifiers (negation, tense, mood, instrument, location) packed into one word. Qangatasuukkuvimmuuriaqalaaqtunga “I will have to go to the airport”.
- The axis (outside the course material): isolating and polysynthetic are the two ends of a scale of how much meaning one word carries; agglutinative and fusional differ on a separate question, whether the packed meaning can be cut apart.
The usual mistake: defining agglutinative as “more morphemes”. The definition is separable morphemes, one feature each; that agglutinative words end up with more morphemes per word than fusional ones is a consequence.
Why do fixed word-level vocabularies break for morphologically rich languages and for multilingual models, and what is the practical fix?
Key points: fixed-size matrices and softmax make drive memory; inflection multiplies forms and productivity keeps the vocabulary open; either explodes or OOV soars with every rare form as
<unk>; a shared multilingual vocabulary fragments rich languages; fix: subword tokenization, with very low (not zero) OOV.
- Neural weight matrices are fixed size; the output layer is a matrix ( the embedding dimension) plus a softmax over at every position, so drives memory.
- A realistic Russian vocabulary is about five times the English one, because Russian inflects far more (case on every noun, among much else), so each lemma has many more surface forms.
- Inflectional features multiply: forms per lemma = product of slot sizes. Productivity (doomscrolling, doomscrolled, doomscrolls, doomscroller) means no vocabulary can be closed, so OOV never goes away.
- Two horns: keep all forms and explodes (embedding matrix and softmax with it); or use a vocabulary sized for English and get massive OOV rates, with every rare form mapped to
<unk>and given equal probability.- Word indices hide relations (move 2863 vs moved 87542) and give nothing for unseen words (hammered). Morphology could build meaning for unseen words; context alone cannot.
- Multilingual: a word vocabulary shared across languages spreads its fixed budget thinner, and the rich languages suffer most; even with subwords they get split into many more pieces per word than English.
- Fix: morphological analysers are language dependent and need per-language expertise, so the practical compromise is subword tokenization: statistically useful pieces, language-agnostic, learned from data. Falling back to characters makes OOV very rare but not zero: an unseen character is still unknown (only byte-level vocabularies remove that).
Run Forward and Backward Maximum Matching on 研究生活 with vocabulary {研究, 研究生, 生活, 生, 活}. Why do the results differ, how does bidirectional matching resolve it, and what are the method's limits?
Key points: FMM gives 研究生 | 活; BMM gives 研究 | 生活; genuine ambiguity leaks through the greedy scan direction; bidirectional: accept if they agree, else prefer fewer words or fewer single-character words; limits: fixed vocabulary, OOV silently split, no learning from data.
- FMM: at , 研究生活 is not in , 研究生 is (3 chars), emit it. At , 活 is in . Result 研究生 | 活.
- BMM: at , the longest suffix in is 生活 (2 chars), prepend it. At , 研究 is in . Result 研究 | 生活.
- Why: same string, same dictionary, only the scan direction changed. The string is ambiguous and each greedy rule commits to one reading. Neither algorithm is buggy.
- Bidirectional: if FMM and BMM agree, accept with high confidence. If not, apply a tie-breaking heuristic; two common choices are fewer total words, or fewer single-character words. Here the fewer-words rule cannot decide (2 words each); the fewer-single-characters rule picks BMM (0 against FMM’s 1, 活).
- Limits: needs a precompiled per-language vocabulary; new words (names, neologisms, typos) can never be matched; cannot improve from data; OOV words are silently chopped into single characters; real ambiguity in the language cannot be fixed by any direction heuristic.
Reformulate Chinese word segmentation as sequence labelling and explain how an HMM with Viterbi solves it. Give the recursion, the complexity, and what the approach still cannot do.
Key points: BMES tags with a boundary after every E and S; hidden tags emit characters, transitions and emissions estimated by MLE; Viterbi recursion with backpointers; against ; first-order, no long-range context (CRFs), unsupervised training worse.
- BMES tags: B (first char of multi-char word), M (interior of 3+ char word), E (last char of multi-char word), S (single-char word). Boundary after every E and S.
- HMM: hidden tag sequence generates the observed characters. Transitions ; emissions , the character given the tag. B can only be followed by M or E; E and S only by B or S. Decode .
- Training: MLE counts from a segmented corpus: , .
- Viterbi: , with a backpointer to the winning ; backtrace from the best final cell whose tag is E or S.
- Complexity: , i.e. for 4 tags, against brute-force tag sequences.
- Gains over maximum matching: no fixed dictionary, ambiguity resolved by probabilistic evidence, trainable from any segmented corpus.
- Still cannot: first-order Markov assumption, each tag generated from the previous tag alone (higher orders are more involved); no longer-range context (motivates CRFs, and beyond them neural labellers such as LSTMs and Transformers); unsupervised Baum-Welch (EM) training degrades quality.
Distinguish inflection, derivation and compounding with examples, and explain why productivity of these processes matters for NLP.
Key points: inflection keeps POS, changes features (see, saw); derivation changes POS and/or meaning (happy, happiness; perfect, imperfect); compounding joins words (Tischbein); productivity means no vocabulary can be closed, so OOV never goes away.
- Inflection: keeps the part of speech, changes grammatical features (tense, number). see, saw, seen; book, books. Another form of the same dictionary entry.
- Derivation: changes POS and/or meaning, giving a new dictionary entry. happy → happiness (noun), happy → happily (adverb); perfect → imperfect (meaning only).
- Test: is the result a new word with its own dictionary entry? A changed part of speech means derivation (happy / happiness), but derivation can also keep it (perfect / imperfect), so a kept part of speech alone does not prove inflection.
- Compounding: several words into one, not only nouns. German Tisch + Bein = Tischbein “table leg” (noun + noun); sicher + gehen = sichergehen “make sure” (adjective + verb). German writes it as one token where English uses two.
- Productivity: the processes apply iteratively and to new combinations. doomscroll is a new compound already carrying inflection (-ing, -ed, -s) and derivation (-er). No fixed vocabulary can be closed over a productive process, which is why OOV never disappears.
What is non-concatenative morphology, and why can no string-cutting segmenter (from maximum matching to subword tokenization) fully handle it? Use German and Arabic, and say how the Inuktitut problem differs.
Key points: change inside the root (apophony, Buch/Bücher); circumfix ge-…-en is one morpheme in two pieces; Arabic interleaves root and pattern and leaves the vowels unwritten; Inuktitut morphemes stay in sequence but change shape where they meet (a different problem); segmenters cut contiguous pieces, so they fully handle only the concatenative case.
- Concatenative: word = concatenation of morphemes; string splitting can recover them.
- Non-concatenative: the change happens inside the root. Apophony: German Buch → Bücher, Haus → Häuser (vowel change plus suffix). No cut separates “book” from “plural” in Bücher.
- Circumfix (related problem): German ge-seh-en: ge- and -en are one morpheme in two pieces, so neither stripping the prefix nor the suffix alone works.
- Arabic: consonantal root k-t-b “write” poured into a pattern ya- C1 C2 -u- C3 -u = yaktubu “he writes”. Root and pattern are interleaved, and the pattern’s vowels are not written in regular Arabic, so part of the information is absent from the string.
- Inuktitut (a different problem, classed outside the course material): the morphemes are still in sequence, so this is concatenative, but they change shape where they meet (-k-mut-uq surfaces as -mmuu-). The boundaries are blurred, so cutting the string cannot recover them either. Agglutinative languages show the same kind of join change.
- Every segmentation method cuts a string into contiguous pieces, so subword segmentation can only fully capture the concatenative case.
Word segmentation and subword segmentation are often confused. Define each, give a language where each is needed, and say how they are solved.
Key points: word segmentation finds boundaries in unmarked scripts (Chinese, Thai); solved by maximum matching or BMES labelling (HMM, CRF, neural); subword segmentation splits delimited words in rich languages (Finnish); solved by statistical subword tokenization learned from data; same cutting problem, different target units.
- Word segmentation (tokenization): establishing word boundaries in scripts that do not mark them (Chinese, Japanese, Thai, Burmese). Must happen before POS tagging, parsing or anything else. Solved by maximum matching (FMM, BMM, bidirectional) or statistical BMES labelling (HMM plus Viterbi, CRFs, neural taggers). Benchmarked in the SIGHAN bake-offs.
- Subword segmentation: splitting words that are already well delimited into units smaller than the word, because morphologically rich languages (Finnish) blow up fixed vocabularies. Solved by statistical, language-independent subword tokenization (next lecture).
- Both decide where to cut a character string; they differ in what the pieces are meant to be: whole words against units smaller than words.
Flashcards
What is the difference between a vocabulary and a lexicon?
A vocabulary is an inventory of word forms; a lexicon also stores the meanings and functions of the words.
What is the difference between word segmentation and subword segmentation?
Word segmentation finds word boundaries in scripts that do not mark them (Chinese); subword segmentation splits already delimited words into smaller units (Finnish).
Why are hand-built lexical resources like WordNet a poor basis for word meaning at scale?
They are expensive (every relation entered by hand), incomplete, and language-specific.
What four properties define word embeddings?
Low dimensional, dense, continuous, and learned by performing a prediction task.
How does the CBOW task differ from n-gram language modelling?
A language model sees only the left context; CBOW sees both sides, because its goal is embeddings and prediction is only the means.
Why does vocabulary size drive the memory footprint of a neural model?
Weight matrices are fixed size, and the output layer has one row per vocabulary word plus a softmax over at every position.
What is a vocabulary short-list?
Keeping only the most frequent words and mapping every rare word to a single
<unk>token.
Why can a word-level model not see that move and moved are related?
They are unrelated indices, so the relation must be learned from data separately for every inflected pair.
How could morphology give a representation for an unseen word like hammered?
Compose it from known parts: an embedding for hammer plus what -ed does to a verb. Context cannot help, since the word was never seen.
How does Backward Maximum Matching differ from Forward Maximum Matching?
It starts at the end, takes the substring ending at position , and prepends each word so output stays in reading order.
With vocabulary {研究, 研究生, 生活, 生, 活}, what does Forward Maximum Matching return for 研究生活?
研究生 | 活
With vocabulary {研究, 研究生, 生活, 生, 活}, what does Backward Maximum Matching return for 研究生活?
研究 | 生活
How does bidirectional maximum matching decide when FMM and BMM disagree?
A tie-breaking heuristic: prefer fewer total words or fewer single-character words. If they agree, accept with high confidence.
Why can no direction-based heuristic segment correctly in general?
Some strings have several correct segmentations depending on meaning and context, which a scan direction cannot know.
How is word segmentation reformulated for statistical methods?
As sequence labelling: tag each character with its role in a word (BMES).
What do the BMES tags stand for?
Begin, Middle, End, Single.
Which BMES tag only occurs in words of three or more characters?
M (Middle), for an interior character.
In an HMM word segmenter, which sequence is hidden?
The BMES tag sequence, which generates the observed characters.
How are BMES HMM parameters estimated from a segmented corpus?
Maximum likelihood from counts: e.g. a transition is the tag-bigram count divided by the count of the previous tag.
Why can no fixed vocabulary be closed over morphology?
Morphological processes are productive: they apply iteratively and to new combinations (doomscrolled), so new forms keep appearing.
What is a morpheme?
The smallest meaning-carrying part of a word.
What is the difference between free and bound morphemes?
Free morphemes can stand alone as words (book); bound morphemes cannot (dis-, -ed).
Why can a circumfix like German ge-seh-en not be analysed by stripping a prefix or a suffix?
ge- and -en are one morpheme in two pieces, attached front and back simultaneously, so neither half can be stripped alone.
In an isolating language, what carries the grammatical relations?
Word order, with particles for additional modification.
Which morphological type has a single suffix encode several grammatical features that cannot be separated?
Fusional (Russian, Spanish, Arabic).
Which morphological type packs verb, subject, object and modifiers into a single word?
Polysynthetic (Inuktitut, Mohawk).
Are agglutinative morpheme boundaries always clean at the character level?
No: a suffix may change spelling to fit the stem; the meanings still split cleanly.
Why are morphological analysers not the general fix for vocabulary blow-up?
They are highly language dependent: one per language, each built with linguistic expertise.
True or false: CBOW's projection layer loses the order of the context words.
True. It sums the vectors, and summation is commutative.
True or false: Forward and Backward Maximum Matching always produce the same segmentation given the same vocabulary.
False. On ambiguous strings they often disagree (研究生 | 活 against 研究 | 生活).
True or false: Maximum matching flags out-of-vocabulary words in its output.
False. OOV words are silently chopped into single characters or mismatched.
True or false: Viterbi decoding of BMES tags runs in time linear in the sentence length.
True. It is , and is fixed.
True or false: In a BMES HMM, the emission probability is the probability of the character given the tag.
True. Emission is , not the tag given the character.
True or false: A fixed word vocabulary sized for English produces massive OOV rates for morphologically rich languages.
True. Each lemma has many surface forms, so most forms fall outside the vocabulary.
True or false: Agglutinative languages differ from fusional languages mainly in having more morphemes per word.
False. The defining difference is separability; more morphemes per word is only a consequence.
True or false: Subword segmentation recovers the morphemes of non-concatenative forms such as German Bücher.
False. It only cuts contiguous pieces, so it fully handles only the concatenative case.
True or false: An HMM word segmenter needs a fixed dictionary of possible words.
False. It works over characters; maximum matching is the method that needs a dictionary.
True or false: Inflection keeps a word's part of speech.
True. It changes only features such as number and tense.
True or false: Apophony is a kind of concatenative morphology.
False. It changes a vowel inside the root (Buch → Bücher), so it is non-concatenative.
True or false: Arabic is classed as a fusional language.
True. One root-and-pattern template fuses person, gender and aspect.
True or false: With a vocabulary short-list, rare words keep distinct probabilities in a given context.
False. They all map to
<unk>, so all rare words receive equal probability.
True or false: In CBOW the summed context vectors go from the projection layer straight to the output layer.
True. There is no non-linear hidden layer in between.
True or false: Subword tokenization that falls back to single characters guarantees a zero OOV rate.
False. OOV becomes very rare, but unseen characters stay unknown; only byte-level vocabularies guarantee zero.
Multiple selection: which are true of Forward Maximum Matching? (A) It takes the longest vocabulary word at each position (B) It improves as it sees more text (C) It always terminates because a single character is emitted as fallback (D) It needs no precompiled vocabulary
A and C. B: it has no mechanism to exploit data. D: it depends entirely on a precompiled vocabulary.
Multiple selection: which are true of BMES tagging with an HMM? (A) A word boundary follows every E and every S (B) B can be followed by another B (C) Viterbi keeps a backpointer to each cell's best predecessor (D) The model conditions on arbitrary features of the whole input
A and C. B: a word opened by B must continue with M or close with E. D: that describes CRFs; the HMM is first-order.
Multiple selection: which are true of morphological types? (A) In Turkish, each agglutinative suffix carries one meaning (B) Russian -ami fuses instrumental case and plural (C) Isolating languages mark tense mainly by inflecting the verb (D) In a polysynthetic language one word can express a whole sentence
A, B and D. C: isolating verbs do not change form; tense comes from particles and adverbs.
Multiple selection: which are true of HMM word segmentation? (A) A tag depends only on the preceding tag and the current character (B) It cannot be trained without a segmented corpus (C) CRFs address its lack of longer-range context (D) It resolves ambiguity with tie-breaking heuristics
A and C. B: Baum-Welch trains it unsupervised, at a cost in quality. D: that is bidirectional matching; the HMM uses probabilistic evidence.
Multiple selection: which are correct? (A) books is an inflection of book (B) imperfect is an inflection of perfect, since the POS stays (C) Tischbein is a compound (D) happiness is derived from happy
A, C and D. B: imperfect is derivation; derivation changes the POS and/or the meaning.
Links
- Course: Course overview · MNLP - Mini Project
- Previous: MNLP-L02 - Multilinguality and Writing Systems
- Next: MNLP-L04 - Subword Segmentation, morphological analysis and subword segmentation, which takes the OOV problem from “Why word-level vocabularies break” and solves it statistically
- Concepts: Word Embeddings · Tokenization · Bag of Words · Dynamic Programming
- Source:
morphology.pdfon Canvas, module Week 2 (Christof Monz, Morphology: Word Formation, 34 slides)