Morphological Analysis for Unsegmented Languages using Recurrent Neural Network Language Model

Hajime Morita, Daisuke Kawahara, Sadao KurohashiEMNLP 2015

Introduction: The Segmentation Dilemma

In languages like Japanese, Chinese, or Thai, text is written without spaces between words. Consequently, the first step in any Natural Language Processing (NLP) pipeline is morphological analysis: the process of segmenting a string into words and assigning parts of speech (POS).

Standard tools such as MeCab or JUMAN typically rely on local statistical patterns or hand-coded rules. However, these tools often struggle with ambiguous sequences where local character combinations can form multiple valid-looking but semantically incorrect words. A classic example is the Japanese phrase for "foreigner’s right to vote" (gaikokujin sanseiken). Due to local statistical quirks, a standard analyzer might segment it as "foreign / carrot / regime" (gaikoku / ninjin / seiken) because the characters for "person" and "participation" together resemble the word for "carrot."

Figure 1: An example of a word lattice showing ambiguous segmentation paths, including the semantically incorrect "carrot" interpretation.

This creates a "chicken-and-egg" problem: a good language model is needed to segment words correctly, but correctly segmented words are required to train a high-quality language model. If a model is trained on automatically segmented text containing errors, it learns and reinforces those mistakes.

Proposed Methodology

The authors propose a hybrid approach that integrates a traditional "Base Model" with a "Retrained Recurrent Neural Network Language Model (RNNLM)" to leverage semantic plausibility.

1. The Base Model

This is a supervised model that performs joint segmentation, lemmatization, and POS tagging. It utilizes standard features like unigrams, bigrams, and character types to score potential paths through a word lattice.

2. The RNNLM with Word Embeddings

The core innovation is the use of an RNNLM (specifically an RNN with Maximum Entropy connections) that utilizes word embeddings.

  • Semantic Generalization: By mapping words to a continuous vector space, the RNNLM can recognize that "nation + vegetable + politics" is semantically incongruous, even if such a sequence appeared in its training data.
  • Two-Stage Training: To overcome the noise in large datasets, the authors first train the RNNLM on 10 million automatically segmented web sentences. They then retrain it on a smaller "gold standard" corpus of 45,000 manually segmented sentences to refine its understanding of grammar and frequent function words.

3. Integration and Decoding

The final score for a word sequence is a linear interpolation of the Base Model score and the RNNLM score. Because RNNs have long-range dependencies, standard Viterbi decoding is replaced with beam search (width 5) to find the most likely segmentation path.

Experimental Results

The proposed model (Base + RNNLM_retrain) was evaluated against state-of-the-art Japanese analyzers on both news (Kyoto University Text Corpus) and web (Kyoto University Web Document Leads Corpus) datasets.

Figure 3: Performance comparison of the proposed model against JUMAN and MeCab across different datasets and tasks.

The results demonstrate that the integrated model significantly outperforms existing tools. On news data, it achieved a word segmentation F-value of 99.15 (vs. MeCab's 99.07). On more diverse web data, it reached 98.37 (vs. MeCab's 98.22). Qualitatively, the model successfully corrected the "carrot" vs. "right to vote" errors, proving that semantic context can effectively disambiguate difficult sequences.

Conclusion

By incorporating word embeddings and RNN-based long-range dependencies, this approach breaks the cycle of reinforcing segmentation errors. While the computational complexity of RNNs remains a challenge for real-time deployment, the gain in accuracy—especially on informal web text—marks a significant advancement for morphological analysis in unsegmented languages.

Summary updated

BibTeX
@inproceedings{morita2015morphological,
  author = {Hajime Morita and Daisuke Kawahara and Sadao Kurohashi},
  title = {{Morphological Analysis for Unsegmented Languages using Recurrent Neural Network Language Model}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1276},
}
Figure