ACL-OCL / Base_JSON /prefixW /json /W06 /W06-0129.json
Benjamin Aw
Add updated pkl file v3
6fa4bc9
{
"paper_id": "W06-0129",
"header": {
"generated_with": "S2ORC 1.0.0",
"date_generated": "2023-01-19T04:01:36.046222Z"
},
"title": "Character Language Models for Chinese Word Segmentation and Named Entity Recognition",
"authors": [
{
"first": "Bob",
"middle": [],
"last": "Carpenter",
"suffix": "",
"affiliation": {},
"email": "carp@alias-i.com"
}
],
"year": "",
"venue": null,
"identifiers": {},
"abstract": "We describe the application of the Ling-Pipe toolkit to Chinese word segmentation and named entity recognition for the 3rd SIGHAN bakeoff.",
"pdf_parse": {
"paper_id": "W06-0129",
"_pdf_hash": "",
"abstract": [
{
"text": "We describe the application of the Ling-Pipe toolkit to Chinese word segmentation and named entity recognition for the 3rd SIGHAN bakeoff.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Abstract",
"sec_num": null
}
],
"body_text": [
{
"text": "Chinese is written without spaces between words. For the word segmentation task, four training corpora were provided with one sentence per line and a single space character between words. Test data consisted of Chinese text, one sentence per line, without spaces between words. The task is to insert single space characters between the words. For this task and named entity recognition, we used the UTF8-encoded Unicode versions of the corpora converted from their native formats by the bakeoff organizers.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Word Segmentation",
"sec_num": "1"
},
{
"text": "Named entities consist of proper noun mentions of persons (PER), locations (LOC), and organizations (ORG) . Two training corpora were provided. Each line consists of a single character, a single space character, and then a tag. The tags were in the standard BIO (begin/in/out) encoding. B-PER tags the first character in a person entity, I-PER tags subsequent characters in a person, and 0 characters not part of entities. We segmented the data into sentences by taking Unicode character 0x3002, which is rendered as a baseline-aligned small circle, as marking end of sentence (EOS). As judged by our own sentence numbers (see Figures 1 and 2 ), this missed around 20% of the sentence boundaries in the City U NE corpus and 5% of the boundaries in the Microsoft NE corpus. Test data is in the same format as the word segmentation task.",
"cite_spans": [
{
"start": 100,
"end": 105,
"text": "(ORG)",
"ref_id": null
}
],
"ref_spans": [
{
"start": 627,
"end": 643,
"text": "Figures 1 and 2",
"ref_id": null
}
],
"eq_spans": [],
"section": "Named Entity Recognition",
"sec_num": "2"
},
{
"text": "LingPipe is a Java-based natural language processing toolkit distributed with source code by Alias-i (2006) . For this bakeoff, we used two LingPipe packages, com.aliasi.spell for Chinese word segmentation and com.aliasi.chunk for named-entity extraction. Both of these depend on the character language modeling package com.aliasi.lm, and the chunker also depends on the hidden Markov model package com.alias.hmm. The experiments reported in this paper were carried out in May 2006 using (a prerelease version of) LingPipe 2.3.0.",
"cite_spans": [
{
"start": 93,
"end": 107,
"text": "Alias-i (2006)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe",
"sec_num": "3"
},
{
"text": "LingPipe provides n-gram based character language models with a generalized form of Witten-Bell smoothing, which performed better than other approaches to smoothing in extensive English trials (Carpenter 2005) . Language models provide a probability distribution P (\u03c3) defined for strings \u03c3 \u2208 \u03a3 * over a fixed alphabet of characters \u03a3. We begin with Markovian language models normalized as random processes. This means the sum of the probabilities for strings of a fixed length is 1.0.",
"cite_spans": [
{
"start": 193,
"end": 209,
"text": "(Carpenter 2005)",
"ref_id": "BIBREF0"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "The chain rule factors P (\u03c3c) = P (\u03c3) \u2022 P (c|\u03c3) for a character c and string \u03c3. The n-gram Markovian assumption restricts the context to the previous n \u2212 1 characters, taking",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "P (c n |\u03c3c 1 \u2022 \u2022 \u2022 c n\u22121 ) = P (c n |c 1 \u2022 \u2022 \u2022 c n\u22121 ).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "The maximum likelihood estimator for n-grams isP ML (c|\u03c3) = count(\u03c3c)/extCount(\u03c3), where count(\u03c3) is the number of times the sequence \u03c3 was observed in the training data and extCount(\u03c3)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "is the number of single-character extensions of \u03c3 observed: extCount(\u03c3) = c count(\u03c3c).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "Witten-Bell smoothing uses linear interpolation to form a mixture model of all orders of maximum likelihood estimates down to the uniform estimate P U (c) = 1/|\u03a3|. The interpolation ratio \u03bb(d\u03c3) ranges between 0 and 1 depending on the context:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "P (c|d\u03c3) = \u03bb(d\u03c3)P ML (c|d\u03c3) + (1 \u2212 \u03bb(d\u03c3))P (c|\u03c3) P (c) = \u03bb()P ML (c) + (1 \u2212 \u03bb())(1/|\u03a3|)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "Generalized Witten-Bell smoothing defines the interpolation ratio with a hyperparameter \u03b8:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "\u03bb(\u03c3) = extCount(\u03c3) extCount(\u03c3) + \u03b8 \u2022 numExts(\u03c3)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "We take numExts(\u03c3) = |{c|count(\u03c3c) > 0}| to be the number of different symbols observed following \u03c3 in the training data. The original Witten-Bell estimator set the hyperparameter \u03b8 = 1. Ling-Pipe's default sets \u03b8 equal to the n-gram order.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Character Language Models",
"sec_num": "3.1"
},
{
"text": "LingPipe performs spelling correction with a noisy-channel model. A noisy-channel model consists of a source model P s (\u00b5) defining the probability of message \u00b5, coupled with a channel model P c (\u03c3|\u00b5) defining the likelihood of a signal \u03c3 given a message \u00b5. In LingPipe, the source model P s is a character language model. The channel model P c is a (probabilistically normalized) weighted edit distance (with transposition). LingPipe's decoder finds the most likely message \u00b5 to have produced a signal \u03c3:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Noisy Channel Spelling Correction",
"sec_num": "3.2"
},
{
"text": "argmax \u00b5 P (\u00b5|\u03c3) = argmax \u00b5 P (\u00b5) \u2022 P (\u03c3|\u00b5).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Noisy Channel Spelling Correction",
"sec_num": "3.2"
},
{
"text": "For spelling correction, the channel P c (\u03c3|\u00b5) is a model of what is likely to be typed given an intended message. Uniform models work fairly well and ones tuned to brainos and typos work even better. The source model is typically estimated from a corpus of ordinary text.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Noisy Channel Spelling Correction",
"sec_num": "3.2"
},
{
"text": "For Chinese word segmentation, the source model is trained over the corpus with spaces inserted. The noisy channel deterministically eliminates spaces so that P c (\u03c3|\u00b5) = 1.0 if \u03c3 is identical to \u00b5 with all of the spaces removed, and 0.0 otherwise. This channel is easily implemented as a weighted edit distance where deletion of a single space is 100% likely (log proba-bility edit \"cost\" is zero) and matching a character is 100% likely, with any other operation being 0% likely (infinite cost). This makes any segmentation equally likely according to the channel model, reducing decoding to finding the highest likelihood hypothesis consisting of the test string with spaces inserted. This approach reduces to the cross-entropy/compression-based approach of (Teahan et al. 2000) . Experiments showed that skewing these space-insertion/matching probabilities reduces decoding accuracy.",
"cite_spans": [
{
"start": 761,
"end": 781,
"text": "(Teahan et al. 2000)",
"ref_id": "BIBREF2"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Noisy Channel Spelling Correction",
"sec_num": "3.2"
},
{
"text": "LingPipe 2.1 introduced a hidden Markov model interface with several decoders: first-best (Viterbi), n-best (Viterbi forward, A* backward with exact Viterbi estimates), and confidencebased (forward-backward).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Named Entity Recognition",
"sec_num": "3.3"
},
{
"text": "LingPipe 2.2 introduced a chunking implementation that codes a chunking problem as an HMM tagging problem using a refinement of the standard BIO coding. The refinement both introduces context and greatly simplifies confidence estimation over the approach using standard BIO coding in (Culotta and McCallum 2004) . The tags are B-T for the first character in a multi-character entity of type T, M-T for a middle character in a multi-character entity, E-T for the end character in a multi-character entity, and W-T for a single character entity. The out tags are similarly contextualized, with additional information on the start/end tags to model their context. Specifically, the tags used are B-O-T for a character not in an entity following an entity of type T, I-O for any middle character not in an entity, and E-O-T for a character not in an entity but preceding a character in an entity of type T, and finally, W-O-T for a character that is a single character between two entities, the following entity being of type T. Finally, the first tag is conditioned on the begin-ofsentence tag (BOS) and after the last tag, the endof-sentence tag (EOS) is generated. Thus the probabilities normalize to model string/tag joint probabilities.",
"cite_spans": [
{
"start": 284,
"end": 311,
"text": "(Culotta and McCallum 2004)",
"ref_id": "BIBREF1"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Named Entity Recognition",
"sec_num": "3.3"
},
{
"text": "In the HMM implementation considered here, transitions between states (tags) in the HMM are modeled by a maximum likelihood estimate over the training data. Tag emissions are generated by bounded character language models. Rather than the process estimate P (X), we use P (X#|#), where # is a distinguished boundary character We also train with boundaries. For Chinese at the character level, this bounding is irrelevant as all tokens are length 1, so probabilities are already normalized and there is no contextual position to take account of within a token. In the more usual wordtokenized case, it normalizes probabilities over all strings and accounts for the special status of prefixes and suffixes (e.g. capitalization, inflection).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Named Entity Recognition",
"sec_num": "3.3"
},
{
"text": "Consider the chunking consisting of the string John J. Smith lives in Seattle. with John J. Smith a person mention and Seattle a location mention. In the coded HMM model, the joint estimate is:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Named Entity Recognition",
"sec_num": "3.3"
},
{
"text": "P ML (B-PER|BOS) \u2022P B-PER (John#|#) \u2022P ML (I-PER|B-PER) \u2022P I-PER (J#|#) \u2022P ML (I-PER|I-PER) \u2022P I-PER (.#|#) \u2022P ML (E-PER|I-PER) \u2022P E-PER (Smith#|#) \u2022P ML (B-O-PER|E-PER) \u2022P B-O-PER (lives#|#) \u2022P ML (E-O-LOC|B-O-PER) \u2022P E-O-LOC (in#|#) \u2022P ML (W-LOC|E-O-LOC) \u2022P W-LOC (Seattle#|#) \u2022P ML (W-O-EOS|W-LOC) \u2022P W-O-EOS (.#|#) \u2022P ML (EOS|W-O-EOS)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Named Entity Recognition",
"sec_num": "3.3"
},
{
"text": "LingPipe 2.3 introduced an n-best chunking implementation that adapts an underlying n-best chunker via rescoring. In rescoring, each of these outputs is scored on its own and the new best output is returned. The rescoring model is a longer-distance generative model that produces alternating out/entity tags for all characters. The joint probability of the specified chunking is:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Named Entity Recognition",
"sec_num": "3.3"
},
{
"text": "P OUT (c PER |c BOS ) \u2022P PER (John J. Smithc OUT |c OUT ) \u2022P OUT ( lives in c LOC |c PER ) \u2022P LOC (Seattlec OUT |c OUT ) \u2022P OUT (.c EOS |c LOC )",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Named Entity Recognition",
"sec_num": "3.3"
},
{
"text": "where each estimator is a character language model, and where the c T are distinct characters not in the training/test sets that encode begin-ofsentence (BOS), end-of-sentence (EOS), and type (e.g. PER, LOC, ORG). In words, we generate an alternating sequence of OUT and type estimates, starting and ending with an OUT estimate. We begin by conditioning on the begin-of-sentence tag. Because the first character is in an entity, we do not generate any text, but rather generate a character indicating that we are done generating the OUT characters and ready to switch to generating person characters. We then generate the phrase John J. Smith in the person model; note that type estimates always begin and end with the c OUT character, essentially making them bounded models. After generating the name and the character to end the entity, we revert to generating more out characters, starting from a person and ending with a location. Note that we are generating the phrase lives in including the preceding and following space. All such spaces are generated in the OUT models for English; there are no spaces in the Chinese input. Next, we generate the location phrase the same way as the person phrase. Next, we generate the final period in the OUT model and then the end-of-sentence symbol. Note that the OUT category's language model shoulders the brunt of the burden of estimating contextual effects. It conditions on the preceding type, so that the likelihood of lives in is conditioned on following a person entity. Furthermore, the choice to begin an entity of type location is based on the fact that it follows lives in. This includes begin-of-sentence and end-of-sentence effects, so the model is sensitive to initial capitalization in the out model as a distribution of character sequences likely to follow BOS. Similarly, the HK .8417 .8690 .8551 .8903 .8961 .8762 .8749 .8943 .6997 .8176 MS Research .8097 .8188 .8142 .8651 .8351 .8716 .7968 .8438 .7739 .6899 Figure 4: Named Entity Recognition Results (Closed Category) end-of-sentence is conditioned on the preceding text, in this case a single period. The resulting model defines a (properly normalized) joint probability distribution over chunkings.",
"cite_spans": [
{
"start": 1837,
"end": 2032,
"text": "HK .8417 .8690 .8551 .8903 .8961 .8762 .8749 .8943 .6997 .8176 MS Research .8097 .8188 .8142 .8651 .8351 .8716 .7968 .8438 .7739 .6899 Figure 4: Named Entity Recognition Results (Closed Category)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Named Entity Recognition",
"sec_num": "3.3"
},
{
"text": "Corpus R P F 1 Best F 1 P LOC R LOC P PER R PER P ORG R ORG City Uni",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LingPipe's Named Entity Recognition",
"sec_num": "3.3"
},
{
"text": "We ran preliminary tests on MUC 6 English and City University of Hong Kong data for Chinese and found baseline performance around 72% and rescored performance around 82%. The underlying model was designed to have good recall in generating hypotheses. Over 99% of the MUC test sentences had their correct analysis in a 1024-best list generated by the underlying model. Nevertheless, setting the number of hypotheses beyond 64 did not improve results in either English or Chinese, so we reported runs with n-best set to 64. We believe this is because the two language-model based approaches make highly correlated ranking decisions based on character n-grams. Held-out scores peaked with 5-grams for Chinese; 3-grams and 4-grams were not much worse and longer n-grams performed nearly identically. We used 7500 as the number of distinct characters, though this parameter is not at all sensitive to within an order of magnitude. We used Ling-Pipe's default of setting the interpolation parameter equal to the n-gram length; for the final evaluation \u03b8 = 5.0. Higher interpolation ratios favor precision over recall, lower ratios favor recall. Values within an order of magnitude performed with 1% F-measure and 2% precision/recall.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Held-out Parameter Tuning",
"sec_num": "4"
},
{
"text": "The total time spent on this SIGHAN bakeoff was about 2 hours for the word segmentation task and 10 hours for the named-entity task (not including writing this paper). We started from a working word segmentation system for the last SIGHAN. Most of the time was spent munging entity data, with the rest devoted to held out analysis. The final code was roughly one page per task, with only a dozen or so LingPipe-specific lines. The final run, including unpacking, training and testing, took 45 minutes on a 512MB home PC; most of the time was named-entity decoding.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Bakeoff Time and Effort",
"sec_num": "5"
},
{
"text": "Official bakeoff results for the four word segmentation corpora are shown in Figure 3 , and for the two named entity corpora in Figure 4 . Column labels are R for recall, P for precision, F 1 for balanced F -measure, Best F 1 for the best closed system's F 1 score, OOV for the out-of-vocabulary rate in the test corpus, and R OOV for recall on the out-of-vocabulary items. For the named-entity results, precision and recall are also broken down by category.",
"cite_spans": [],
"ref_spans": [
{
"start": 77,
"end": 85,
"text": "Figure 3",
"ref_id": null
},
{
"start": 128,
"end": 136,
"text": "Figure 4",
"ref_id": null
}
],
"eq_spans": [],
"section": "Results",
"sec_num": "6"
}
],
"back_matter": [
{
"text": "LingPipe may be downloaded from its homepage, http://www.alias-i.com/lingpipe. The code for the bakeoff is available via anonymous CVS from the sandbox. An Apache Ant makefile is provided to generate our bakeoff submission from the official data distribution format.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Distribution",
"sec_num": "7"
}
],
"bib_entries": {
"BIBREF0": {
"ref_id": "b0",
"title": "Scaling high-order character language models to gigabytes",
"authors": [
{
"first": "B",
"middle": [],
"last": "Carpenter",
"suffix": ""
}
],
"year": 2005,
"venue": "ACL Software Workshop",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Carpenter, B. 2005. Scaling high-order character language models to gigabytes. ACL Software Workshop. Ann Arbor.",
"links": null
},
"BIBREF1": {
"ref_id": "b1",
"title": "Confidence estimation for information extraction",
"authors": [
{
"first": "A",
"middle": [],
"last": "Culotta",
"suffix": ""
},
{
"first": "A",
"middle": [],
"last": "Mccallum",
"suffix": ""
}
],
"year": 2004,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Culotta, A. and A. McCallum. 2004. Confidence estimation for information extraction. HLT/NAACL 2004. Boston.",
"links": null
},
"BIBREF2": {
"ref_id": "b2",
"title": "A compression-based algorithm for Chinese word segmentation",
"authors": [
{
"first": "W",
"middle": [
"J"
],
"last": "Teahan",
"suffix": ""
},
{
"first": "Y",
"middle": [],
"last": "Wen",
"suffix": ""
},
{
"first": "R",
"middle": [],
"last": "Mcnab",
"suffix": ""
},
{
"first": "I",
"middle": [
"H"
],
"last": "Witten",
"suffix": ""
}
],
"year": 2000,
"venue": "Computational Linguistics",
"volume": "26",
"issue": "3",
"pages": "375--393",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Teahan, W. J., Y. Wen, R. McNab, and I. H. Witten. 2000. A compression-based algorithm for Chinese word segmenta- tion. Computational Linguistics, 26(3):375-393.",
"links": null
}
},
"ref_entries": {}
}
}