Papers with Code 아카이브

Dependency Parsing

태스크의 하위 분류와 논문·코드·평가·기법·데이터셋을 탐색하세요.

하위 태스크
5
평가표
16
보존된 평가 기록
54

Dependency parsing is the task of extracting a dependency parse of a sentence that represents its grammatical structure and defines the relationships between "head" words and words, which modify those heads.

Example:

     root
      |
      | +-------dobj---------+
      | |                    |
nsubj | |   +------det-----+ | +-----nmod------+
+--+  | |   |              | | |               |
|  |  | |   |      +-nmod-+| | |      +-case-+ |
+  |  + |   +      +      || + |      +      | |
I  prefer  the  morning   flight  through  Denver

Relations among the words are illustrated above the sentence with directed, labeled arcs from heads to dependents (+ indicates the dependent).

기법

관련 논문에서 소개한 기법입니다. 이 태스크에서의 평가 여부는 평가 결과에서 확인하세요.

DDParser

DDParser, or Baidu Dependency Parser, is a Chinese dependency parser trained on a large-scale manually labeled dataset called Baidu Chinese Treebank (DuCTB). For inputs, for the $i$ th word, its input vector $e_{i}$ is the concatenation of the word embedding and character-level representation: $$ e\_{i}=e\_{i}^{w o r d} \oplus C h a r L S T M\left(w\_{i}\right) $$ Where $\operatorname{CharLSTM}\left(w_{i}\right)$ is the output vectors after feeding the character sequence into a BiLSTM layer. The experimental results on DuCTB dataset show that replacing POS tag embeddings with $\operatorname{CharLSTM}\left(w_{i}\right)$ leads to the improvement. For the BiLSTM encoder, three BiLSTM layers are employed over the input vectors for context encoding. Denote $r\_{i}$ the output vector of the top-layer BiLSTM for $w\_{i}$ The dependency parser of Dozat and Manning is used. Dimension-reducing MLPs are applied to each recurrent output vector $r\_{i}$ before applying the biaffine transformation. Applying smaller MLPs to the recurrent output states before the biaffine classifier has the advantage of stripping away information not relevant to the current decision. Then biaffine attention is used both in the dependency arc classifier and relation classifier. The computations of all symbols in the Figure are shown below: $$ h_{i}^{d-a r c}=M L P^{d-a r c}\left(r_{i}\right) $$ $$ h_{i}^{h-a r c}=M L P^{h-a r c}\left(r_{i}\right) \\ $$ $$ h_{i}^{d-r e l}=M L P^{d-r e l}\left(r_{i}\right) \\ $$ $$ h_{i}^{h-r e l}=M L P^{h-r e l}\left(r_{i}\right) \\ $$ $$ S^{a r c}=\left(H^{d-a r c} \oplus I\right) U^{a r c} H^{h-a r c} \\ $$ $$ S^{r e l}=\left(H^{d-r e l} \oplus I\right) U^{r e l}\left(\left(H^{h-r e l}\right)^{T} \oplus I\right)^{T} $$ For the decoder, the first-order Eisner algorithm is used to ensure that the output is a projection tree. Based on the dependency tree built by biaffine parser, we get a word sequence through the in-order traversal of the tree. The output is a projection tree only if the word sequence is in order.

A Practical Chinese Dependency Parser Based on A Large-scale Dataset

출처: Papers with Code · CC BY-SA 4.0. 아카이브 자료와 새로 수집한 논문은 별도로 관리합니다.