Tokenization: Returning to a Long Solved Problem – A Survey, Contrastive Experiment, Recommendations, and Toolkit
What it is about
The authors ask how far Penn Treebank (PTB) style tokenization can be reproduced by rules, and why earlier tools differ from it. They compare three tools against the gold PTB tokens of 49,208 sentences (1,173,750 tokens): the PTB tokenizer.sed script, Stanford CoreNLP and the tokenizer of the Charniak and Johnson parser. The tools disagree on 3,264, 1,781 and 2,597 sentences, respectively. Their own rule-based toolkit keeps exact stand-off pointers into the raw text and is configurable per genre. With a small optional set of extra rules, the remaining differences fall to 603 sentences, just over 1%, and the authors say this removes two thirds of the errors of the best off-the-shelf tool.
Ideas
- I1.
en/src/tok.rs: add a PTB-compatible mode as a rule list (split "can't" into "ca" and "n't", handle possessive 's, keep "U.S." without a split point) and report the exact-match rate per rule. Measure on EWT test, where the current tokenizer gets 90.0%. - I2. Stand-off offsets: check that every token of
en/src/tok.rskeeps the byte span of the raw text, then test the paper's claim that each token links back to the input on the EWT test set. - I3. Count, on EWT test, the sentences where the tokenizer and the gold tokens differ, and report the Levenshtein distance over tokens as the paper does, next to the sentence count. Use it as a second number beside the exact-match rate.
For Mova
The code is en/src/tok.rs, with the command en tok-eval. The chapter is 07. Punctuation, capital letters, abbreviations and numbers. The PTB itself is licensed for research use; measure with it only as a test, never as a source of rules that ship. Measure first on EWT test: the sentence count and the Levenshtein distance for the current tokenizer.
Cite
@inproceedings{dridan2012tokenization,
title = {{Tokenization: Returning to a Long Solved Problem – A Survey, Contrastive Experiment, Recommendations, and Toolkit}},
author = {Dridan, Rebecca and Oepen, Stephan},
booktitle = {Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
year = {2012},
url = {https://aclanthology.org/P12-2074/}
}References
- Charniak, E., & Johnson, M. (2005). Coarse-to-fine n-best parsing and maxent discriminative reranking. In Proceedings of the 43rd Annual Meeting of the Association for Computational Linguistics (pp. 173–180). Ann Arbor, USA. find our card
- Hovy, E., Marcus, M., Palmer, M., Ramshaw, L., & Weischedel, R. (2006). Ontonotes. The 90% solution. In Proceedings of the Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics (pp. 57–60). New York City, USA. find
- Kaplan, R. M. (2005). A method for tokenizing text. Festschrift for Kimmo Koskenniemi on his 60th birthday. In A. Arppe, L. Carlson, K. Lindén, J. Piitulainen, M. Suominen, M. Vainio, H. Westerlund, & A. Yli-Jyrä (Eds.), Inquiries into words, constraints and contexts (pp. 55 – 64). Stanford, CA: CSL… find
- Levenshtein, V. (1966). Binary codes capable of correcting deletions, insertions and reversals. Soviet Physice – Doklady, 10, 707–710. find
- Marcus, M. P., Santorini, B., & Marcinkiewicz, M. A. (1993). Building a large annotated corpus of English. The Penn Treebank. Computational Linguistics, 19, 313 – 330. find our card
- Øvrelid, L., Velldal, E., & Oepen, S. (2010). Syntactic scope resolution in uncertainty analysis. In Proceedings of the 23rd international conference on computational linguistics (pp. 1379 – 1387). Beijing, China. find
- Schäfer, U., Kiefer, B., Spurk, C., Steffen, J., & Wang, R. (2011). The ACL Anthology Searchbench. In Proceedings of the ACL-HLT 2011 system demonstrations (pp. 7–13). Portland, Oregon, USA. find
- Tateisi, Y., & Tsujii, J. (2006). GENIA annotation guidelines for tokenization and POS tagging (Technical Report \# TR-NLP-UT-2006-4). Tokyo, Japan: Tsujii Lab, University of Tokyo. find
- Waldron, B., Copestake, A., Schäfer, U., & Kiefer, B. (2006). Preprocessing and tokenisation standards in DELPH-IN tools. In Proceedings of the 5th International Conference on Language Resources and Evaluation (pp. 2263 – 2268). Genoa, Italy. find
This page in Markdown → https://md.mova.elamur.ai/free/en/docs/papers/aclbulk-2012-dridan-tokenization-returning-long-solved-problem/