|
|
Line 1: |
Line 1: |
| '''Sliding window based part-of-speech tagging''' is used to [[part-of-speech tagging|part-of-speech tag]] a text. | | I'm a 36 years old and study at the university (Social Science Education).<br>In my spare time I try to teach myself Portuguese. I have been there and look forward to go there anytime soon. I love to read, preferably on my ipad. I like to watch The Vampire Diaries and Two and a Half Men as well as documentaries about nature. I like Volleyball.<br><br> |
|
| |
|
| A high percentage of words in a [[natural language]] are words which out of context can be assigned more than one part of speech. The percentage of these ambiguous words is typically around 30%, although it depends greatly on the language. Solving this problem is very important in many areas of [[natural language processing]]. For example in [[machine translation]] changing the part-of-speech of a word can dramatically change its translation.
| | Here is my page :: [http://www.baddestmix.com/users.php?mode=profile&uid=107459 backup plugin] |
| | |
| Sliding window based part-of-speech taggers are programs which assign a single part-of-speech to a given lexical form of a word, by looking at a fixed sized "window" of words around the word to be disambiguated.
| |
| | |
| The two main advantages of this approach are:
| |
| | |
| * It is possible to automatically train the tagger, getting rid of the need of manually tagging a corpus.
| |
| * The tagger can be implemented as a [[finite-state machine|finite state automaton]] ([[Mealy machine]])
| |
| | |
| ==Formal definition==
| |
| Let
| |
| | |
| :<math>\Gamma = \{ \gamma_{1}, \gamma_{2}, \ldots, \gamma_{|\Gamma|} \}</math>
| |
| | |
| be the set of grammatical tags of the application, that is, the set of all possible tags which may be assigned to a word, and let
| |
| | |
| :<math>W = \{ w1, w2, \ldots \}</math> | |
| | |
| be the vocabulary of the application. Let
| |
| | |
| :<math> T : W \rightarrow P ( \Gamma )</math>
| |
| | |
| be a function for morphological analysis which assigns each <math>w</math> its set of possible tags, <math>T ( w ) \subseteq \Gamma</math>, that can be implemented by a full-form lexicon, or a morphological analyser. Let
| |
| | |
| :<math>\Sigma = \{ \sigma_{1}, \sigma_{2}, \ldots, \sigma_{|\Sigma|} \}</math>
| |
| | |
| be the set of word classes, that in general will be a [[Partition of a set|partition]] of <math>W</math> with the restriction that for each <math>\sigma \in \Sigma</math> all of the words <math>w \, \Sigma \, \sigma</math> will receive the same set of tags, that is, all of the words in each word class (<math>\sigma</math>) belong to the same ambiguity class.
| |
| | |
| Normally, <math>\Sigma</math> is constructed in a way that for high frequency words, each word class contains a single word, while for low frequency words, each word class corresponds to a single ambiguity class. This allows good performance for high frequency ambiguous words, and doesn't require too many parameters for the tagger.
| |
| | |
| With these definitions it is possible to state problem in the following way: Given a text <math>w[1] w[2] \ldots w[L] \in W^*</math> each word <math>w[t]</math> is assigned a word class <math>T ( w[t] ) \in \Sigma</math> (either by using the lexicon or morphological analyser) in order to get an ambiguously tagged text <math>\sigma[1] \sigma[2] \ldots \sigma[L] \in W^*</math>. The job of the tagger is to get a tagged text <math>\gamma[1] \gamma[2] \ldots \gamma[L]</math> (with <math>\gamma[t] \in T(\sigma[t])</math>) as correct as possible.
| |
| | |
| A statistical tagger looks for the most probable tag for an ambiguously tagged text <math>\sigma[1] \sigma[2] \ldots \sigma[L]</math>:
| |
| | |
| :<math>\gamma^*[1] \ldots \gamma^*[L] = \operatorname*{arg\,max}\limits_{\gamma[t] \in T(\sigma[t])} p(\gamma[1] \ldots \gamma[L] \sigma[1] \ldots \sigma[L]) </math>
| |
| | |
| Using [[Bayes formula]], this is converted into:
| |
| | |
| :<math>\gamma^*[1] \ldots \gamma^*[L] = \operatorname*{arg\,max}\limits_{\gamma[t] \in T(\sigma[t])} p(\gamma[1] \ldots \gamma[L]) p(\sigma[1] \ldots \sigma[L] \gamma[1] \ldots \gamma[L])</math>
| |
| | |
| where <math>p(\gamma[1] \gamma[2] \ldots \gamma[L])</math> is the probability that a particular tag (syntactic probability) and <math>p(\sigma[1] \dots \sigma[L] \gamma[1] \ldots \gamma[L])</math> is the probability that this tag corresponds to the text <math>\sigma[1] \ldots \sigma[L]</math> (lexical probability).
| |
| | |
| In a [[Markov model]], these probabilities are approximated as products. The syntactic probabilities are modelled by a first order Markov process:
| |
| | |
| :<math>p(\gamma[1] \gamma[2] \ldots \gamma[L]) = \prod_{t=1}^{t=L} p(\gamma[t+1] \gamma[t])</math>
| |
| | |
| where <math>\gamma[0]</math> and <math>\gamma[L+1]</math> are delimiter symbols.
| |
| | |
| Lexical probabilities are independent of context:
| |
| | |
| :<math>p(\sigma[1] \sigma[2] \ldots \sigma[L] \gamma[1] \gamma[2] \ldots \gamma[L]) = \prod_{t=1}^{t=L} p(\sigma[t] \gamma[t])</math>
| |
| | |
| One form of tagging is to approximate the first probability formula:
| |
| | |
| :<math>p(\sigma[1] \sigma[2] \ldots \sigma[L] \gamma[1] \gamma[2] \ldots \gamma[L]) = \prod_{t=1}^{t=L} p(\gamma[t] C_{(-)}[t] \sigma[t] C_{(+)}[t])</math>
| |
| | |
| where <math>C_{(-)}[t] = \sigma[t - N_{(-)}] \sigma [t - N_{(-)}] \ldots \sigma[t - 1]</math> is the right context of the size <math>N_{(+)}</math>.
| |
| | |
| In this way the sliding window algorithm only has to take into account a context of size <math>N_{(-)} + N_{(+)} + 1</math>. For most applications <math>N_{(-)} = N_{(+)} = 1</math>. For example to tag the ambiguous word "run" in the sentence "He runs from danger", only the tags of the words "He" and "from" are needed to be taken into account.
| |
| | |
| ==Further reading==
| |
| | |
| * Sanchez-Villamil, E., Forcada, M. L., and Carrasco, R. C. (2005). "[http://www.dlsi.ua.es/~mlf/docum/sanchezvillamil04p.pdf Unsupervised training of a finite-state sliding-window part-of-speech tagger]". ''Lecture Notes in Computer Science / Lecture Notes in Artificial Intelligence'', vol. 3230, p. 454-463
| |
| | |
| [[Category:Computational linguistics]]
| |
I'm a 36 years old and study at the university (Social Science Education).
In my spare time I try to teach myself Portuguese. I have been there and look forward to go there anytime soon. I love to read, preferably on my ipad. I like to watch The Vampire Diaries and Two and a Half Men as well as documentaries about nature. I like Volleyball.
Here is my page :: backup plugin