プリンキピア

第16章自然言語処理:応用

16.6.3. Text Tagging16.6.3 テキストのタグづけ

Now let’s consider token-level tasks, such as text tagging, where each token is assigned a label. Among text tagging tasks, part-of-speech tagging assigns each word a part-of-speech tag (e.g., adjective and determiner) according to the role of the word in the sentence. For example, according to the Penn Treebank II tag set, the sentence “John Smith ’s car is new” should be tagged as “NNP (noun, proper singular) NNP POS (possessive ending) NN (noun, singular or mass) VB (verb, base form) JJ (adjective)”.
英語のヒント
では、各トークンにラベルを割り当てるテキストのタグづけのような、トークン単位のタスクを考えよう。テキストのタグづけのタスクのうち、品詞タグづけは、文の中での単語の役割に応じて、各単語に品詞のタグ(たとえば形容詞や限定詞)を割り当てる。たとえば、Penn Treebank IIのタグの集合によれば、文「John Smith ’s car is new」(ジョン・スミスの車は新しい)は、「NNP(名詞、固有、単数)NNP POS(所有格の語尾)NN(名詞、単数または不可算)VB(動詞、原形)JJ(形容詞)」とタグづけされるべきである。
Fig. 16.6.3図16.6.3
Fine-tuning BERT for text tagging applications, such as part-of-speech tagging. Suppose that the input single text has six tokens.
英語のヒント
品詞タグづけのような、テキストのタグづけの応用のためのBERTの微調整。入力の単一テキストには六つのトークンがあるとする。
Fine-tuning BERT for text tagging applications is illustrated in Fig. 16.6.3. Comparing with Fig. 16.6.1, the only distinction lies in that in text tagging, the BERT representation of every token of the input text is fed into the same extra fully connected layers to output the label of the token, such as a part-of-speech tag.
英語のヒント
テキストのタグづけの応用のためのBERTの微調整は、図16.6.3に示されている。図16.6.1と比べると、唯一の違いは、テキストのタグづけでは、入力テキストのすべてのトークンのBERT表現が同じ追加の全結合層に入れられ、品詞のタグのような、そのトークンのラベルを出力するという点にある。