Hostname: page-component-74656f9884-2dmjx Total loading time: 0 Render date: 2026-11-07T13:49:35.650Z Has data issue: false hasContentIssue false

Pattern-based unsupervised parsing method

Published online by Cambridge University Press:  04 June 2014

JESÚS SANTAMARÍA
Affiliation:
Lenguajes y Sistemas Informáticos, Universidad Nacional de Educación a Distancia (UNED), Madrid 28040, Spain email: jsant@lsi.uned.es, lurdes@lsi.uned.es
LOURDES ARAUJO
Affiliation:
Lenguajes y Sistemas Informáticos, Universidad Nacional de Educación a Distancia (UNED), Madrid 28040, Spain email: jsant@lsi.uned.es, lurdes@lsi.uned.es
Rights & Permissions [Opens in a new window]

Abstract

We have developed a heuristic method for unsupervised parsing of unrestricted text. Our method relies on detecting certain patterns of part-of-speech tag sequences of words in sentences. This detection is based on statistical data obtained from the corpus and allows us to classify part-of-speech tags into classes that play specific roles in the parse trees. These classes are then used to construct the parse tree of new sentences via a set of deterministic rules. Aiming to asses the viability of the method on different languages, we have tested it on English, Spanish, Italian, Hebrew, German, and Chinese. We have obtained a significant improvement over other unsupervised approaches for some languages, including English, and provided, as far as we know, the first results of this kind for others.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2014 
Figure 0

Fig. 1. Parse tree for the sentence Esso said the Whiting field started production Tuesday from the Penn Treebank.

Figure 1

Fig. 2. Parse tree for the sentence In September, she pleaded guilty and paid a $ 500 fine from the Penn Treebank.

Figure 2

Fig. 3. Parse tree for the sentence Scoring High and Learning Materials are the best-selling preparation tests from the Penn Treebank.

Figure 3

Fig. 4. Algorithm for the induction of PoS tag classes. The separator category sec is a set of PoS tags of T beginning with the same letters, if any, or a single separator otherwise. N is the number of sentences in the corpus. sec are the PoS tags in S(separators) sharing the same prefix. This optimization is only applied to those sets in which the PoS tags of each category share the first letter. max is the PoS tag from SC_pred appearing most often immediately following the safe constituent sc.

Figure 4

Table 1. Separators and delimiters obtained for the WSJ corpus. Others correspond to the remaining PoS tags, excluding punctuation marks

Figure 5

Table 2. Preferred direction in which each delimiter clusters in WSJ10. The first column corresponds to the delimiter, the second column to the most frequent sequence comprising the delimiter and a tag on its right, the third column to the frequency of this sequence, the fourth column to the most frequent sequence of the delimiter and a tag on its left, the fifth column to its corresponding frequency, and the last column to the resulting direction. For NNP, for which the frequency of the most frequent tag to the right and to the left are the same, we have searched for the second most frequent sequence to choose the grouping direction: (NNP VBZ)(454) and (IN NNP)(540). Accordingly, the direction of preference for NNP is the right

Figure 6

Fig. 5. Identifying partners. T stands for the set of PoS tags.

Figure 7

Table 3. Hierarchy of predominant separators used to determine the tag that divides sentences. Vx stands for other PoS tags beginning with V at the same level

Figure 8

Fig. 6. Parsing algorithm based on the PoS tag classes, assuming a right-branching structure (separators are expected to appear on the left of the constituents). The approach is also valid if we assume left-branching structure. Segments are sequences of PoS tags that are parsed separately.

Figure 9

Fig. 7. Parse tree for the sentence The merged firm will carry Norris McLaughlin's name, according to (a) our proposal, and (b) from the Penn Treebank.

Figure 10

Table 4. Performance results, in terms of crossing brackets (CB), unlabeled precision (UP), unlabeled recall (UR), and unlabeled F-measure (UF) obtained for different languages, considering sentences of up to ten words. The last two columns correspond to the average number of constituents per sentence in each data set, according to the gold standard (#C-GS) and as obtained with our method (#C-SEP). The languages are English (WSJ10), German (NEGRA10(1) and NEGRA10(2)), Spanish (UAM10), Italian (TUT10), Hebrew (HTB10), and Mandarin Chinese (CTB10). The second column shows the size of each corpus. In all cases we have considered only sentences with up to ten words from the corresponding corpus. NEGRA10(2) provides the results for NEGRA10 annotating the verbal group separately. Corpora sizes are numbers of kept sentences

Figure 11

Table 5. Contribution to the F-measure of different patterns. The languages are English (WSJ10), German (NEGRA10(1) and NEGRA10(2)), Spanish (UAM10), Italian (TUT10), Hebrew (HTB10), and Chinese (CTB10). For the Hebrew and the Chinese corpora SC_pred is empty, hence this pattern does not apply. The numbers in parentheses indicate the decrease/increase percentage with respect to the original performance (1st column)

Figure 12

Table 6. Results (unlabeled recall, precision, and F-measure) obtained using our separator approach (first row), compared with those of Klein and Manning's (2005) (second row), Bod's (2006, 2007) (third and fourth row), and Seginer (2007a) (fifth row), for the WSJ10 corpus

Figure 13

Table 7. Unlabeled F-measure obtained for the WSJ corpus as test corpus for different sentence lengths: up to 10, 20, 30, and 40 words. The first row corresponds to our separator approach, the second row corresponds to Bod's (2007), the third row to Seginer's (2007a), and the fourth row to Golland et al.'s (2012)

Figure 14

Table 8. F-measure results obtained using Seginer's (2007a) CCL model and the algorithm described in this paper (Sep.). Results are obtained for different languages – English (WSJ), German (NEGRA), Spanish (UAM), Italian (TUT), Hebrew (HTB), and Chinese (CTB) – and considering a test corpus containing sentences of up to 10, 20, 30, and 40 words long, as well as the whole corpus. The PoS tag classes used to construct our system are extracted from the whole corpus. These classes are then used to parse the sentences of all subsets of the corpus regardless of their length. Figures with only one significant digit have been taken from the Seginer's paper

Figure 15

Table 9. Execution times for our system (Sep.) and CCL (Seginer 2007a). First column shows the considered corpus, and the number of sentences it is composed of; second column shows our system (Sep.) execution time in seconds; third column shows the number of sentences processed per second in our system; fourth column shows the CCL execution time; and the fifth column shows the CCL number of sentences processed per second

Figure 16

Table 10. Performance results, in terms of unlabeled precision (UP), unlabeled recall (UR), and unlabeled F-measure (UF) obtained for different sets of PoS tags, considering sentences of up to ten words. The languages are English (WSJ10), German (NEGRA10), Spanish (UAM10), Italian (TUT10), Hebrew (HTB10), and Mandarin Chinese (CTB10). The first three columns show the results for the original PoS tag set of each corpus. The second three columns show the results using Petrov et al.'s (2012) coarse grain PoS tag set. The last three columns show the results for the PoS tag set provided by an unsupervised PoS tagger based on Gibbs (Gao and Johnson 2008) sampling. In all cases we have considered only sentences with up to ten words from the corresponding corpus

Figure 17

Table 11. Alphabetical list of part-of-speech tags used in the Penn Treebank, used in our experiments

Figure 18

Table 12. Internal tags used in the Penn Treebank examples