Using Suffix Arrays to Compute Term Frequency and Document Frequency for All Substrings in a Corpus
Open accessThe DOI matches its Crossref record; 16 of the 16 references it cites were found in a registry or an index.
Abstract
Bigrams and trigrams are commonly used in statistical natural language processing; this paper will describe techniques for working with much longer n-grams. Suffix arrays (Manber and Myers 1990) were first introduced to compute the frequency and location of a substring (n-gram) in a sequence (corpus) of length N. To compute frequencies over all N(N+1)/2 substrings in a corpus, the substrings are grouped into a manageable number of equivalence classes. In this way, a prohibitive computation over substrings is reduced to a manageable computation over classes. This paper presents both the algorithms and the code that were used to compute term frequency (tf) and document frequency (df) for all n-grams in two large corpora, an English corpus of 50 million words of Wall Street Journal and a Japanese corpus of 216 million characters of Mainichi Shimbun. The second half of the paper uses these frequencies to find “interesting” substrings. Lexicographers have been interested in n-grams with high mutual information (MI) where the joint term frequency is higher than what would be expected by chance, assuming that the parts of the n-gram combine independently. Residual inverse document frequency (RIDF) compares document frequency to another model of chance where terms with a particular term frequency are distributed randomly throughout the collection. MI tends to pick out phrases with noncompositional semantics (which often violate the independence assumption) whereas RIDF tends to highlight technical terminology, names, and good keywords for information retrieval (which tend to exhibit nonrandom distributions over documents). The combination of both MI and RIDF is better than either by itself in a Japanese word extraction task.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
A STATISTICAL INTERPRETATION OF TERM SPECIFICITY AND ITS APPLICATION IN RETRIEVAL
SPARCK JONES, K. (1972) · Journal of Documentation · doi:10.1108/eb026526 · Cited by 4,505
Word association norms, mutual information, and lexicography
Church, K., & Hanks, P. (1990) · doi:10.5555/89086.89095 · Cited by 3,590
Self-citationStatistical Methods for Speech Recognition
Sun, D. X., & Jelinek, F. (1999) · Journal of the American Statistical Association · doi:10.2307/2670189 · Cited by 1,946
Suffix Arrays: A New Method for On-Line String Searches
Manber, U., & Myers, G. (1993) · SIAM Journal on Computing · doi:10.1137/0222058 · Cited by 1,915 · cited 1×
“Intervals are associated with classes, sets of substrings.”
BackgroundEstimation of probabilities from sparse data for the language model component of a speech recognizer
Katz, S. (1987) · IEEE Transactions on Acoustics, Speech, and Signal Processing · doi:10.1109/tassp.1987.1165125 · Cited by 1,637
A Space-Economical Suffix Tree Construction Algorithm
McCreight, E. M. (1976) · Journal of the ACM · doi:10.1145/321941.321946 · Cited by 1,511 · cited 1×
“Suffix arrays can be viewed as a compact representation of suffix trees (McCreight 1976; Ukkonen 1995), a data structure that has been extensively studied over the last thirty years.”
BackgroundOn-line construction of suffix trees
Ukkonen, E. (1995) · Algorithmica · doi:10.1007/bf01206331 · Cited by 1,472
The design for the wall street journal-based CSR corpus
Paul, D. B., & Baker, J. M. (1992) · Proceedings of the workshop on Speech and Natural Language - HLT '91 · doi:10.3115/1075527.1075614 · Cited by 1,099
Eugene Charniak, D. (1994) · Medical Entomology and Zoology · Cited by 811
Hendry, J., & Shibatani, M. (1991) · Man · doi:10.2307/2803848 · Cited by 623
New indices for text: PAT Trees and PAT arrays
Gonnet, G. H., Baeza-Yates, R. A., & Snider, T. (1992) · Information Retrieval · Cited by 272
Church, K. W., & Gale, W. A. (1995) · Natural Language Engineering · doi:10.1017/s1351324900000139 · Cited by 215
Self-citationA statistical method for finding word boundaries in Chinese text
Sproat, R., & Shih, C. (1990) · International Journal of Computer Processing Of Languages · Cited by 194
Color Set Size problem with applications to string matching
Chi, L., & Hui, K. (1992) · Lecture Notes in Computer Science · doi:10.1007/3-540-56024-6_19 · Cited by 165 · cited 1×
“Hui (1992) shows how to compute df for all substrings using generalized suffix trees.”
BackgroundKita, K., Kato, Y., Omoto, T., & Yano, Y. (1994) · Journal of Natural Language Processing · doi:10.5715/jnlp.1.21 · Cited by 55
(1997)
Cited by
Mining the peanut gallery: opinion extraction and semantic classification of product reviews
Dave, K., Lawrence, S., & Pennock, D. M. (2003) · Proceedings of the twelfth international conference on World Wide Web - WWW '03 · doi:10.1145/775152.775226 · Cited by 1,916
Bannard, C., & Matthews, D. (2008) · Psychological Science · doi:10.1111/j.1467-9280.2008.02075.x · Cited by 518
“Using the method of Yamamoto and Church (2001), we extracted all repeated sequences of words from the corpus.”
MethodLearning Domain Ontologies from Document Warehouses and Dedicated Web Sites
Navigli, R., & Velardi, P. (2004) · Computational Linguistics · doi:10.1162/089120104323093276 · Cited by 412
Deduplicating Training Data Makes Language Models Better
Lee, K., Ippolito, D., Nystrom, A., Zhang, C., Eck, D., Callison-Burch, C., & Carlini, N. (2022) · Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2022.acl-long.577 · Cited by 304
A language model approach to keyphrase extraction
Tomokiyo, T., & Hurst, M. (2003) · Proceedings of the ACL 2003 workshop on Multiword expressions analysis, acquisition and treatment - · doi:10.3115/1119282.1119287 · Cited by 297
Metadata
- Authors
- Yamamoto, M., & Church, K. W.
- Venue
- Computational Linguistics
- Publisher
- MIT Press - Journals
- Published
- 2001-03
- Volume
- 27
- Issue
- 1
- Pages
- 1-30
- ISSN
- 0891-2017 (ISSN-L)
- 1530-9312
- OpenAlex
- W2008434289
- Cited by
- 172
- References
- 16
- FWCI
- 10.14
- Type
- journal article
- Language
- en
- Open access
- bronze
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.