A Graph-based Model for Joint Chinese Word Segmentation and
Dependency Parsing
Hang Yan, Xipeng Qiu∗, Xuanjing Huang
School of Computer Science, Fudan University, China
Shanghai Key Laboratory of Intelligent Information Processing, Fudan University, China
{hyan19, xpqiu, xjhuang}@fudan.edu.cn
Abstrakt
Chinese word segmentation and dependency
parsing are two fundamental tasks for Chinese
natural language processing. The dependency
parsing is defined at the word-level. daher
word segmentation is the precondition of
dependency parsing, which makes dependency
parsing suffer from error propagation and
unable to directly make use of character-level
pre-trained language models (such as BERT).
In diesem Papier, we propose a graph-based model
to integrate Chinese word segmentation and
dependency parsing. Different from previous
transition-based joint models, our proposed
model is more concise, which results in fewer
efforts of feature engineering. Our graph-based
joint model achieves better performance than
previous joint models and state-of-the-art
results in both Chinese word segmentation
and dependency parsing. Zusätzlich, Wann
BERT is combined, our model can substan-
tially reduce the performance gap of depen-
dency parsing between joint models and
gold-segmented word-based models. Our code
is publicly available at https://github.
com/fastnlp/JointCwsParser.
1 Einführung
Unlike English, Chinese sentences consist of
continuous characters and lack obvious bound-
aries between Chinese words. Words are usually
regarded as the minimum semantic unit, Dort-
fore Chinese word segmentation (CWS) becomes
a preliminary pre-process step for downstream
Chinese natural language processing (NLP). Für
Beispiel, the fundamental NLP task, dependency
∗Corresponding author.
78
parsing, is usually defined at the word-level. To
parse a Chinese sentence, the process is usually
performed in the following pipeline method: word
segmentation, part-of-speech (POS) tagging, Und
dependency parsing.
Jedoch, the pipeline method always suffers
from the following limitations:
(1) Error Propagation. In the pipeline method,
once some words are wrongly segmented,
the subsequent POS tagging and parsing will
also make mistakes. Infolge, pipeline
models achieve dependency scores of around
75 ∼ 80% (Kurita et al., 2017).
(2) Knowledge Sharing. These three tasks (word
segmentation, POS tagging, and dependency
parsing) are strongly related. The criterion
of CWS also depends on the word’s gram-
matical role in a sentence. daher, Die
knowledge learned from these three tasks can
be shared. The knowledge of one task can
help others. Jedoch, the pipeline method
separately trains three models, each for a sin-
gle task, and cannot fully exploit the shared
knowledge among the three tasks.
A traditional solution to this error propagation
problem is to use joint models (Hatori et al., 2012;
Zhang et al., 2014; Kurita et al., 2017). Diese
previous joint models mainly adopted a transition-
based parsing framework to integrate the word seg-
mentation, POS tagging, and dependency parsing.
Based on standard sequential shift-reduce transi-
tionen, they design some extra actions for word
segmentation and POS tagging. Although these
joint models achieved better performance than
the pipeline model, they still suffer from two
Einschränkungen:
(1) The first is the huge search space. Com-
transition parsing,
pared with word-level
Transactions of the Association for Computational Linguistics, Bd. 8, S. 78–92, 2020. https://doi.org/10.1162/tacl a 00301
Action Editor: Yue Zhang. Submission batch: 9/2019; Revision batch: 11/2019; Published 3/2020.
C(cid:4) 2020 Verein für Computerlinguistik. Distributed under a CC-BY 4.0 Lizenz.
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
character-level transition parsing has longer
sequence of actions. The search space is
huge. daher, it is hard to find the best
transition sequence exactly. Usually, approx-
imate strategies like greedy search or beam
search are adopted in practice. Jedoch,
approximate strategies do not, in general,
produce an optimal solution. Although exact
searching is possible within O(n3) Komplex-
ität (Shi et al., 2017), due to their complexity,
these models just focus on unlabeled depen-
dency parsing, rather than labeled depen-
dency parsing.
(2) The second is the feature engineering. Diese
transition-based joint models rely on a de-
tailed handcrafted feature. Although Kurita
et al. (2017) introduced neural models to
reduce partial efforts of feature engineering,
they still require hard work on how to design
and compose the word-based features from
the stack and the character-based features
from the buffer.
Kürzlich, graph-based models have made signif-
icant progress for dependency parsing (Kiperwasser
and Goldberg, 2016; Dozat and Manning, 2017),
which fully exploit the ability of the bidirec-
tional long short-term memory network (BiLSTM)
(Hochreiter and Schmidhuber, 1997) and attention
mechanism (Bahdanau et al., 2015) to capture the
interactions of words in a sentence. Different from
the transition-based models, the graph-based mod-
els assign a score or probability to each possible
arc and then construct a maximum spanning tree
from these weighted arcs.
In diesem Papier, we propose a joint model for
CWS and dependency parsing that integrates these
two tasks into a unified graph-based parsing frame-
arbeiten. Because the segmentation is a character-
level task and dependency parsing is a word-level
Aufgabe, we first formulate these two tasks into a
character-level graph-based parsing framework.
In detail, our model contains (1) a deep neural
network encoder, which can capture the long-
term contextual features for each character—
it can be a multi-layer BiLSTM or pre-trained
BERT, (2) a biaffine attentional scorer (Dozat
and Manning, 2017), which unifies segmentation
and dependency relations at the character level.
Besides, unlike the previous joint models (Hatori
et al., 2012; Zhang et al., 2014; Kurita et al.,
2017), our joint model does not depend on the
POS tagging task.
In experiments on three popular datasets, Wir
obtain state-of-the-art performance on CWS and
dependency parsing.
In diesem Papier, we claim four contributions:
• To the best of our knowledge, this is the first
graph-based method to integrate CWS and
dependency parsing both in the training phase
and the decoding phase. The proposed model
is very concise and easily implemented.
• Compared with the previous transition-based
joint models, our proposed model is a graph-
based model, which results in fewer efforts of
feature engineering. Zusätzlich, our model
can deal with the labeled dependency parsing
Aufgabe, which is not easy for transition-based
joint models.
• In experiments on datasets CTB-5, CTB-7,
and CTB-9, our model achieves state-of-
the-art score in joint CWS and dependency
parsing, even without the POS information.
• As an added bonus, our proposed model can
directly utilize the pre-trained language model
BERT (Devlin et al., 2019) to boost perfor-
mance significantly. The performance of many
NLP tasks can be significantly enhanced when
BERT was combined (Sun et al., 2019; Zhong
et al., 2019). Jedoch, for Chinese, BERT
is based on Chinese characters, whereas de-
pendency parsing is conducted in the word-
Ebene. We cannot directly utilize BERT to
enhance the word-level Chinese dependency
parsing models. Trotzdem, by using the
our proposed model, we can exploit BERT
to implement CWS and dependency parsing
jointly.
2 Related Work
To reduce the problem of error propagation and
improve the low-level tasks by incorporating the
knowledge from the high-level tasks, many suc-
joint methods have been proposed to
cessful
simultaneously solve related tasks, which can be
categorized into three types.
2.1 Joint Segmentation and POS Tagging
Because segmentation is a character-level task and
POS tagging is a word-level task, an intuitive idea
79
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
is to transfer both the tasks into character-level
and incorporate them in a uniform framework.
A popular method is to assign a cross-tag to
each character (Ng and Low, 2004). The cross-
tag is composed of a word boundary part and a
POS part, Zum Beispiel, ‘‘B-NN’’ refers to the first
character in a word with POS tag ‘‘NN’’. Daher,
the joint CWS and POS tagging can be regarded
as a sequence labeling problem. Following this
arbeiten, Zheng et al. (2013), Chen et al. (2017),
and Shao et al. (2017) utilized neural models to
alleviate the efforts of feature engineering.
Another line of the joint segmentation and POS
tagging method is the transition-based method
(Zhang and Clark, 2008, 2010), in which the joint
decoding process is regarded as a sequence of
action predictions. Zhang et al. (2018) used a
simple yet effective sequence-to-sequence neu-
ral model to improve the performance of the
transition-based method.
2.2 Joint POS Tagging and
Dependency Parsing
Because the POS tagging task and dependency
parsing task are word-level tasks, it is more natural
to combine them into a joint model.
Hatori et al. (2012) proposed a transition-based
joint POS tagging and dependency parsing model
and showed that the joint approach improved the
accuracies of these two tasks. Yang et al. (2018)
extended this model by neural models to alleviate
the efforts of feature engineering.
Li et al. (2011) utilized the graph-based model
to jointly optimize POS tagging and dependency
parsing in a unique model. They also proposed
an effective POS tag pruning method that could
greatly improve the decoding efficiency.
By combining the lexicality and syntax into
a unified framework, joining POS tagging and
dependency parsing can improve both tagging and
parsing performance over independent modeling
significantly.
2.3 Joint Segmentation, POS Tagging, Und
Dependency Parsing
Compared with the above two kinds of joint tasks,
it is non-trivial to incorporate all the three tasks
into a joint model.
Hatori et al. (2012) first proposed a transition-
based joint model for CWS, POS tagging, Und
dependency parsing, which stated that dependency
information improved the performances of word
segmentation and POS tagging. Zhang et al. (2014)
expanded this work by using intra-character struc-
tures of words and found the intra-character de-
pendencies were helpful in word segmentation
and POS tagging. Zhang et al. (2015) proposed
joint segmentation, POS tagging, and dependency
re-ranking system. This system required a base
parser to generate some candidate parsing results.
Kurita et al. (2017) followed the work of Hatori
et al. (2012); Zhang et al. (2014) and used the
BiLSTM to extract features with n-gram character
string embeddings as input.
A related work is the full character-level neural
dependency parser (Li et al., 2018), but it focuses
on character-level parsing without considering the
word segmentation and word-level POS tagging
and parsing. Although a heuristic method could
transform the character-level parsing results to
word-level, the transform strategy is tedious and
the result is also worse than other joint models.
Besides, there are some joint models for constit-
uency parsing. Qian and Liu (2012) proposed a
joint inference model for word segmentation, POS
tagging, and constituency parsing. Jedoch, their
model did not train three tasks jointly and suffered
from the decoding complexity due to the large
combined search space. Wang et al. (2013) Erste
segmented a Chinese sentence into a word lattice,
and then predicted the POS tags and parsed tree
based on the word lattice. A dual decomposition
method was used to encourage the tagger and
parser to predict agreed structures.
The above methods show that syntactic parsing
can provide useful feedback to word segmentation
and POS tagging and the joint inference leads to
improvements in all three sub-tasks. Darüber hinaus,
there is no related work on joint Chinese word
segmentation and dependency parsing, without
POS tagging.
3 Proposed Model
Previous joint methods are mainly based on the
transition-based model, which modifies the stan-
dard ‘‘shift-reduce’’ operations by adding some
extra operations, such as ‘‘app’’ and ‘‘tag’’. Dif-
ferent from previous methods, we integrate word
segmentation and dependency parsing into a
graph-based parsing framework, which is simpler
and easily implemented.
Erste, we transform the word segmentation to
a special arc prediction problem. Zum Beispiel,
80
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
Figur 1: The unified framework for joint CWS and dependency parsing. The green arc indicates the word-level
dependency relation. The dashed blue arc with ‘‘app’’ indicates its connected characters belong to a word.
‘‘
(financial
two intra-word dependent
Sek-
a Chinese word
arcs:
tor)’’ has
‘‘ ← ’’ and ‘‘ ← ’’. Both intra-word de-
pendent arcs have the label ‘‘app’’. In this work,
all characters in a word (excluding the last
character) depend on their latter character, als
the ‘‘
(financial sector)’’ in Figure 1. A
character-based dependency parsing arc has also
been used in Hatori et al. (2012) and Zhang et al.
(2014), but their models were transition-based.
Zweite, we transform the word-level depen-
dency arcs to character-level dependency arcs.
Assuming that there is a dependency arc between
words w1 = xi:j and w2 = xu:v, where xi:j denotes
the continuous characters from i to j in a sentence,
we make this arc to connect the last characters
xj and xv of each word. Zum Beispiel,
Die
arc ‘‘
(financial sector)’’
is translated to ‘‘ → ’’. Figur 1 illustrates
the framework for joint CWS and dependency
parsing.
(develop)→
Daher, we can use a graph-based parsing model
to conduct these two tasks. Our model contains
two main components: (1) a deep neural network
encoder to extract the contextual features, welche
converts discrete characters into dense vectors,
Und (2) a biaffine attentional scorer (Dozat and
Manning, 2017), which takes the hidden vectors
for the given character pair as input and predicts a
label score vector.
Figur 2 illustrates the model structure for
joint CWS and dependency parsing. The detailed
description is as follows.
3.1 Encoding Layer
The encoding layer is responsible for converting
discrete characters into contextualized dense rep-
Figur 2: Proposed joint model when the encoder
layer is BiLSTM. For simplicity, we omit the predic-
tion of the arc label, which uses a different biaffine
classifier.
resentations. In diesem Papier, we tried two different
kinds of encode layers. The first one is multi-
layer BiLSTM, the second one is the pre-trained
language model BERT (Devlin et al., 2019) welche
is based on self-attention.
3.1.1 BiLSTM-based Encoding Layer
Given a character sequence X = {x1, . . . , xN },
in neural models, the first step is to map discrete
language symbols into distributed embedding
Raum. Formally, each character xi
is mapped
as ei ∈ Rde ⊂ E, where de is a hyper-parameter
indicating the size of character embedding, Und
E is the embedding matrix. Character bigrams
and trigrams have been shown highly effective
for CWS and POS tagging in previous studies
(Pei et al., 2014; Chen et al., 2015; Shao et al.,
2017; Zhang et al., 2018). Following their settings,
we combine the character bigram and trigram to
enhance the representation of each character. Der
81
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
⊕ exixi+1
final character representation of xi is given by
ei = exi
⊕ exixi+1xi+2, where e denotes
the embedding for unigram, bigram, and trigram,
and ⊕ is the concatenation operator.
To capture the long-term contextual informa-
tion, we use a deep BiLSTM (Hochreiter and
Schmidhuber, 1997) to incorporate information
from both sides of a sequence, which is a preva-
lent choice in recent research for NLP tasks.
The hidden state of LSTM for the i-th character
Ist
−→
h i−1,
←−
hi+1, θ),
hi = BiLSTM(NEIN,
←−
−→
hi are the hidden states at posi-
h i and
Wo
tion i of the forward and backward LSTMs re-
spectively, and θ denotes all the parameters in the
BiLSTM layer.
(1)
3.1.2 BERT-based Encoding Layer
Other than using BiLSTM as the encoder layer,
pre-trained BERT can also been used as the
encoding layer (Devlin et al., 2019; Cui et al.,
2019). The input of BERT is the character
sequence X = {x1, . . . , xN }, the output of the
last layer of BERT is used as the representation of
Figuren. More details on the structure of BERT
can be found in Devlin et al. (2019).
3.2 Biaffine Layer
To predict the relations of each character pair,
we use the biaffine attention mechanism (Dozat
and Manning, 2017) to score their probability on
the top of encoding layers. According to Dozat
and Manning (2017), biaffine attention is more
effectively capable of measuring the relationship
between two elementary units.
3.2.1 Unlabeled Arc Prediction
For the pair of the i-th and j-th characters, Wir
first take the output of the encoding layer hi
and hj, then feed them into an extension of bi-
linear transformation called a biaffine function to
obtain the score for an arc from xi (Kopf) to xj
(dependent).
R(arc−head)
ich
R(arc−dep)
J
= MLP(arc−head)(hi),
= MLP(arc−dep)(hj),
ij = r(arc−head)
S(arc)
ich
+R(arc−head)T
U (arc)R(arc−dep)
J
u(arc),
ich
(2)
(3)
(4)
82
where MLP is a multi-layer perceptron. A weight
matrix U (arc) determines the strength of a link
from xi to xj while u(arc) is used in the bias term,
which controls the prior headedness of xi.
= [S(arc)
1J
] is the scores
of the potential heads of the j-th character,
then a softmax function is applied to obtain the
probability distribution.
Daher, S(arc)
; · · · ; S(arc)
T j
J
In the training phase, we minimize the cross-
entropy of golden head-dependent pair. In the test
Phase, we ensure that the resulting parse is a well-
formed tree by the heuristics formulated in Dozat
and Manning (2017).
ij
3.2.2 Arc Label Prediction
After obtaining the best predicted unlabeled tree,
we assign the label scores s(label)
∈ RK for every
arc xi → xj, in which the k-th element cor-
responds to the score of k-th label and K is the size
of the label set. In our joint model, the arc label set
consists of the standard word-level dependency
labels and a special label ‘‘app’’ indicating the
intra-dependency within a word.
For the arc xi → xj, we obtain s(label)
ij
mit
R(label−head)
ich
R(label−dep)
J
R(label)
ij
S(label)
ij
= MLP(label−head)(hi),
= MLP(label−dep)(hj),
= r(label−head)
= r(label−head)
J
ich
ich
+ W (label)(R(label)
ij
⊕ r(label−dep)
U (label)R(label−dep)
J
(5)
(6)
(7)
,
) + u(label),
(8)
where U (label) ∈ RK×p×p is a third-order tensor,
W (label) ∈ RK×2p is a weight matrix, Und
u(label) ∈ RK is a bias vector. The best label of
arc xi → xj is determined according to s(label)
.
ij
yij = arg max
label
S(label)
ij
(9)
In the training phase, we use golden head-
dependent relations and cross-entropy to optimize
arc label prediction. Characters with continuous
‘‘app’’ arcs can be combined into a single word.
If a character has no leftward ‘‘app’’ arc, it is a
single-character word. The arc with label ‘‘app’’
is constrained to occur in two adjacent characters
and is leftward. When decoding, we first use
the proposed model to predict the character-level
labeled dependency tree, and then recover the
word segmentation and word-level dependency
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
as Wang et al. (2011), Zhang et al. (2014), Und
Kurita et al. (2017). For CTB-9, we use the dev
and test files proposed by Shao et al. (2017), Und
we regard all left files as the training data.
4.2 Measures
Following Hatori et al. (2012), Zhang et al.
(2014, 2015), and Kurita et al. (2017), wir gebrauchen
standard measures of word-level F1, precision,
and recall scores to evaluate word segmentation
and dependency parsing (for both unlabeled and
labeled scenario) tasks. We detail them in the
following.
• F 1seg: F1 measure of CWS. This is the stan-
dard metric used in the CWS task (Qiu et al.,
2013; Chen et al., 2017).
• F 1udep: F1 measure of unlabeled dependency
parsing. Following Hatori et al. (2012), Zhang
et al. (2014, 2015), and Kurita et al. (2017),
we use standard measures of word-level
F1, precision, and recall score to evaluate
dependency parsing. In the scenario of joint
word segmentation and dependency parsing,
the widely used unlabeled attachment score
(UAS) is not enough to measure the perfor-
Mance, since the error arises from two as-
pects: One is caused by word segmentation
and the other is due to the wrong prediction
on the head word. A dependent-head pair is
correct only when both the dependent and
head words are accurately segmented and
the dependent word correctly finds its head
word. The precision of unlabeled dependency
parsing (denoted as Pudep) is calculated by
the correct dependent-head pair versus the
total number of dependent-head pairs (nämlich
the number of segmented words). The recall
of unlabeled dependency parsing (denoted as
Rudep) is computed by the correct dependent-
head pair versus the total number of golden
dependent-head pairs (nämlich, the number of
golden words). The calculation of F 1udep is
like F 1seg.
• F 1ldep: F1 measure of labeled dependency
parsing. The only difference from F 1udep is
that except for the match between the head
and dependent words, the pair must have
the same label as the golden dependent-head
pair. The precision and recall are calculated
correspondingly. Because the number of
Figur 3: Label prediction for word segmentation only.
The arc with ‘‘app’’ indicates its connected characters
belong to a word, and the arc with ‘‘seg’’ indicates its
connected characters belong to different words.
tree based on the predicted character-level arc
labels. The characters with continuous ‘‘app’’ are
regarded as one word. And the predicted head
character of the last character is viewed as this
word’s head. Because the predicted arc points to
a character, we regard the word that contains this
head character as the head word.
3.3 Models for Word Segmentation Only
The proposed model can be also used for the
CWS task solely. Without considering the parsing
Aufgabe, we first assign a leftward unlabeled arc by
default for every two adjacent characters, and then
predict the arc labels that indicate the boundary
of segmentation. In the task of word segmentation
nur, there are two kinds of arc labels: ‘‘seg’’ and
‘‘app’’. ‘‘seg’’ means there is a segmentation be-
tween its connected characters, and ‘‘app’’ means
its connected characters belong to one word. Sei-
cause the unlabeled arcs are assigned in advance,
we just use Eq. (5) ∼ (8) to predict the labels:
‘‘seg’’ and ‘‘app’’. Daher, the word segmentation
task is transformed into a binary classification
Problem.
Figur 3 gives an illustration of the labeled arcs
for the task of word segmentation only.
4 Experimente
4.1 Datasets
We use the Penn Chinese Treebank 5.0 (CTB-
5),1 7.0 (CTB-7),2 Und 9.0 (CTB-9)3 datasets to
evaluate our models (Xue et al., 2005). For CTB-5,
the training set is from sections 1∼270, 400∼931,
and 1001∼1151, the development set is from
section 301∼325, and the test set is from section
271∼300; this splitting was also adopted by Zhang
and Clark (2010), Zhang et al. (2014), and Kurita
et al. (2017). For CTB-7, we use the same split
1https://catalog.ldc.upenn.edu/LDC2005T01.
2https://catalog.ldc.upenn.edu/LDC2010T07.
3https://catalog.ldc.upenn.edu/LDC2016T13.
83
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
golden labeled dependent-head pairs and
predicted labeled dependent-head pairs are
the same with the counterparts of unlabeled
dependency parsing, the value of F 1ldep can-
not be higher than F 1udep.
A more detailed description of dependency
parsing metrics can be found in K¨ubler et al.
(2009). The U AS, LAS equal to the value of the
recall of unlabeled dependency parsing (Rudep)
and the recall of labeled dependency parsing
(Rldep), jeweils. We also report these two
values in our experiments.
4.3 Experimental Settings
Pre-trained Embedding Based on Shao et al.
(2017); Zhang et al. (2018), n-grams are of great
benefit to CWS and POS tagging tasks. Daher
we use unigram, bigram, and trigram embeddings
for all of our character-based models. We first
pre-train unigram, bigram, and trigram embed-
dings on the Chinese Wikipedia corpus by the
method proposed in Ling et al. (2015), welche
improves standard Word2Vec by incorporating
token order information. For a sentence with char-
acters ‘‘abcd…’’, the unigram sequence is ‘‘a b c
…’’; the bigram sequence is ‘‘ab bc cd …’’; und das
trigram sequence is ‘‘abc bcd …’’. For our word
dependency parser, we use Tencent’s pre-trained
word embeddings (Song et al., 2018). Weil
Tencent’s pre-trained word embedding dimension
Ist 200, we set both pre-trained and random word
embedding dimension as 200 for all of our word
dependency parsing models. All pre-trained em-
beddings are fixed during our experiments. In
addition to the fixed pre-trained embeddings, Wir
also randomly initialize embeddings, and element-
wisely add the pre-trained and random embed-
dings before other procedures. For a model with
BERT encoding layer, we use the Chinese BERT-
base released in Cui et al. (2019).
Hyper-parameters The development set is used
for parameter tuning. All random weights are ini-
tialized by Xavier normal initializer (Glorot and
Bengio, 2010).
For BiLSTM based models, we generally fol-
low the hyper-parameters chosen in Dozat and
Manning (2017). The model
is trained with
the Adam algorithm (Kingma and Ba, 2015) Zu
minimize the sum of the cross-entropy of arc pre-
dictions and label predictions. After each training
Embedding dimension
BiLSTM hidden size
Gradients clip
Batch size
Embedding dropout
LSTM dropout
Arc MLP dropout
Label MLP dropout
LSTM depth
MLP depth
Arc MLP size
Label MLP size
Learning rate
Annealing
b1, B 2
Max epochs
100
400
5
128
0.33
0.33
0.33
0.33
3
1
500
100
2e-3
.75t/5000
0.9
100
Tisch 1: Hyper-parameter settings.
Epoche, we test the model on the dev set, Und
models with the highest F 1udep in development
set are used to evaluate on the test sets; the results
reported for different datasets in this paper are all
on their test set. Detailed hyper-parameters can be
found in Table 1.
For BERT based models, we use the AdamW
optimizer with a triangle learning rate warmup, Die
maximum learning rate is 2e − 5 (Loshchilov and
Hutter, 2019; Devlin et al., 2019). It optimizes for
five epochs, the model with the best development
set performance is used to evaluate on the test sets.
4.4 Proposed Models
In diesem Abschnitt, we introduce the settings for our
proposed joint models. Based on the way the
model uses dependency parsing labels and encod-
ing layers, we divide our models into four kinds.
We enumerate them as follows.
• Joint-SegOnly model: The proposed model
can be also used for word segmentation task
nur. In this scenario, the dependency arcs
are just allowed to appear in two adjacent
characters and label ∈ {app, seg}. Das
model is described in Section 3.3.
• Joint-Binary model: This scenario means
label ∈ {app, dep}. In dieser Situation,
Die
label information of all the dependency arcs
is ignored. Each word-level dependency arc
is labeled as dep,
the intra-word depen-
dency is regarded as app. Characters with
84
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
Models
Hatori et al. (2012)
Zhang et al. (2014) STD
Zhang et al. (2014) EAG
Zhang et al. (2015)
Kurita et al. (2017)
Joint-Binary
Joint-Multi
Joint-Multi-BERT
CTB-5
CTB-7
CTB-9
F 1seg
97.75
97.67
97.76
98.04
98.37
98.45
98.48
98.46
F 1udep
81.56
81.63
81.70
82.01
81.42
87.24
87.86
89.59
F 1seg
95.42
95.53
95.39
−
95.86
96.57
96.64
97.06
F 1udep
73.58
75.63
75.56
−
74.04
81.34
81.80
85.06
F 1seg
−
−
−
−
−
97.10
97.20
97.63
F 1udep
−
−
−
−
−
81.67
82.15
85.66
STD and EAG in Zhang et al. (2014) denote the arc-standard and the arc-eager models.
F 1seg and F 1udep are the F1 score for Chinese word segmentation and unlabeled dependency parsing,
jeweils.
Tisch 2: Main results in the test set of different datasets. Our Joint-Multi model achieves superior performance
than previous joint models. The Joint-Multi-BERT further enhances the performance of dependency parsing
significantly.
continuous app label will be joined together
and viewed as one word. The dep label
indicates this character is the end of a word.
• Joint-Multi model: This scenario means
label ∈ {app, dep1, · · · , depK }, where K
is the number of types of dependency arcs.
The intra-word dependency is viewed as app.
The other labels are the same as the original
arc labels. But instead of representing the
relationship between two words, the labeled
arc represents the relationship between the
last character of the dependent word and the
last character of the head word.
• Joint-Multi-BERT model: For this kind of
Modell, the encoding layer is BERT. And it
uses the same target scenario as the Joint-
Multi model.
4.5 Comparison with the Previous
Joint Models
In diesem Abschnitt, we mainly focus on the perfor-
mance comparison between our proposed models
and the previous joint models. Because the pre-
vious models just deal with the unlabeled depen-
dency parsing, we just report the F 1seg and F 1udep
Hier.
As presented in Table 2, our model (Joint-
Binary) outpaces previous methods with a large
margin in both CWS and dependency parsing,
even without the local parsing features that were
extensively used in previous transition-based joint
arbeiten (Hatori et al., 2012; Zhang et al., 2014,
2015; Kurita et al., 2017). Another difference
between our joint models and previous works is
the combination of POS tags; the previous models
all used the POS task as one componential task.
Despite the lack of POS tag information, our mod-
els still achieve much better results. Jedoch,
according to Dozat and Manning (2017), POS
tags are beneficial to dependency parsers, Dort-
fore one promising direction of our joint model
might be incorporating POS tasks into this joint
Modell.
Other than the performance distinction between
previous work, our joint model with or without
dependency labels also differ from each other. Es
is clearly shown in Table 2 that our joint model
with labeled dependency parsing (Joint-Multi)
outperforms its counterpart (Joint-Binary) in both
CWS and dependency parsing. With respect to the
enhancement of dependency parsing caused by
the arc labels, we believe it can be credited to two
Aspekte. The first one is the more accurate CWS.
The second one is that label information between
two characters will give extra supervision for the
search of head characters. The reason why labeled
dependency parsing is conducive to CWS will be
also analyzed in Section 4.6.
Owing to the joint decoding of CWS and de-
pendency parsing, we can utilize the character-
level pre-trained language model BERT. The last
row of Table 2 displays that the F 1udep can be
substantially increased when BERT is used, sogar
when the performance of CWS not improve too
viel. We presume this indicates that BERT can
better extract the contextualized information to
help the dependency parsing.
85
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
Models
Tag Set
LSTM+MLP
LSTM+CRF
LSTM+MLP
{B, M, E, S}
{B, M, E, S}
{app, seg}
{app, seg}
{app, dep}
CTB-5
CTB-7
CTB-9
F 1seg Pseg Rseg
F 1seg Pseg Rseg
F 1seg Pseg Rseg
98.47 98.26 98.69
98.48 98.33 98.63
98.40 98.14 98.66
95.45 96.44 96.45
96.46 96.45 96.47
96.41 96.53 96.29
97.11 97.19 97.04
97.15 97.18 97.12
97.09 97.16 97.02
98.50 98.30 98.71
Joint-SegOnly
98.45 98.16 98.74
Joint-Binary
{app, dep1, · · · , depK} 98.48 98.17 98.80
Joint-Multi
Joint-Multi-BERT {app, dep1, · · · , depK} 98.46 98.12 98.81
96.50 96.67 96.34
96.57 96.66 96.49
96.64 96.68 96.60
97.06 97.05 97.08
97.09 97.15 97.04
97.10 97.16 97.04
97.20 97.31 97.19
97.63 97.68 97.58
The upper part refers the models based on sequence labeling.
The lower part refers our proposed joint models which are detailed in Section 4.4. The proposed joint models
achieve near or better F 1seg than models trained only on Chinese word segmentation.
F 1seg, Pseg, and Rseg are the F1, precision, and recall of CWS, jeweils.
Tisch 3: Results of Chinese word segmentation.
4.6 Chinese Word Segmentation
In this part, we focus on the performance of our
model for the CWS task only.
Most of state-of-the-art CWS methods are based
on sequence labeling, in which every sentence is
transformed into a sequence of {B, M, E, S} tags.
B represents the begin of a word, M represents the
middle of a word, E represents the end of a word,
and S represents a word with only one character.
We compare our model with these state-of-the-art
Methoden.
• LSTM+MLP with {B, M, E, S} tags. Fol-
lowing Ma et al. (2018), we tried to do CWS
without conditional random fields (CRFs).
After BiLSTM, the hidden states of each
character further forwards into a multi-layer
perceptron (MLP), so that every character
can output a probability distribution over the
label set. The Viterbi algorithm is utilized
to find the global maximum label sequence
when testing.
• LSTM+CRF with {B, M, E, S} tags. Der
only difference between this scenario and
the previous one is whether using CRF after
the MLP (Lafferty et al., 2001; Chen et al.,
2017).
• LSTM+MLP with {app, seg} tags. The seg-
mentation of a Chinese sentence can be
represented by a sequence of {app, seg},
where app represents that the next character
and this character belongs to the same word,
and seg represents that this character is the
last character of a word. daher, CWS
can be viewed as a binary classification prob-
lem. Except for the tag set, this model’s
architecture is similar to the LSTM+MLP
scenario.
All of these models use the multi-layer BiLSTM
as the encoder; they differ from each other in their
way of decoding and the tag set. The number of
BiLSTM layers is 3 and the hidden size is 200.
The performance of all models are listed in
Tisch 3. The first two rows present the difference
between whether utilizing CRF on the top of
MLP. CRF performance is slightly better than its
counterpart. The first row and the third row display
the comparison between different tag scenarios,
Die {B, M, E, S} tag set is slightly better than the
{app, seg} tag set.
Different from the competitor sequence labeling
Modell (LSTM+MLP with {app, seg} tag set),
our joint-SegOnly model uses the biaffine to
model the interaction between the two adjacent
characters near the boundary and achieves slightly
better or similar performances on all datasets. Der
empirical results in the three datasets suggest that
modeling the interaction between two consecutive
characters are helpful to CWS. If two characters
are of high probability to be in a certain depen-
dency parsing relationship, there will be a greater
chance that one of the characters is the head
character.
The lower part of Table 3 shows the segmen-
tation evaluation of the proposed joint models.
Jointly training CWS and dependency parsing
achieves comparable or slightly better CWS than
training CWS alone. Although head prediction is
not directly related to CWS, the head character can
86
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
Models
CTB-5
CTB-7
CTB-9
F 1seg F 1udep U AS F 1ldep LAS F 1seg F 1udep U AS F 1ldep LAS F 1seg F 1udep U AS F 1ldep LAS
−
88.81
−
85.63 −
−
86.06
−
81.33 −
−
86.21
−
81.57
86.71 83.46 83.67 96.50
88.08 85.08 85.23 96.64
89.97 85.94 86.3
97.06
† The results are evaluated by a word-level biaffine parser on the gold-segmented sentences.
§ The pipeline model first uses the Joint-SegOnly model to segment the sentence, then uses the word-level biaffine parser to obtain the
80.49 76.58 76.46 97.09
81.80 77.84 77.83 97.20
85.12 80.71 80.76 97.63
81.61 77.34 77.40
82.23 78.08 78.14
85.74 81.71 81.77
80.62
81.80
85.06
86.50
87.86
89.59
81.54
82.15
85.66
−
Biaffine†
Pipeline§
98.50
Joint-Multi
98.48
Joint-Multi-BERT 98.46
parsing result.
Tisch 4: Comparison with the pipeline model. Our Joint-Multi models outperform the pipeline models in a large
margin. When BERT is used, the dependency parsing performance was significantly improved, although the
Chinese word segmentation does not meliorate a lot.
Models
CTB-5
CTB-7
CTB-9
F 1seg F 1udep U AS F 1ldep LAS F 1seg F 1udep U AS F 1ldep LAS F 1seg F 1udep U AS F 1ldep LAS
Joint-Multi
98.48
-pre-trained 97.72
-n-gram
97.72
87.86
82.56
83.44
88.08
82.70
83.60
85.08
79.8
80.24
85.23 96.64
70.93 95.52
80.41 95.21
81.80
76.35
77.37
81.80
76.22
77.11
77.84
72.16
72.94
77.83 97.20
72.04 96.56
72.69 95.85
82.15
78.93
78.55
82.23
78.93
78.41
78.08
74.35
73.94
78.14
74.37
73.81
The ‘-pre-trained’ means the model is trained without the pre-trained embeddings.
The ‘-n-gram’ means the model is trained by removing the bigram and trigram embeddings, only randomly initialized and pre-trained
character embeddings are used.
Tisch 5: Ablation experiments for Joint-Multi models.
only be the end of a word, therefore combination
between CWS and character dependency pars-
ing actually introduces more supervision for the
former task. On CTB-5, the Joint-Binary and Joint-
Multi models are slightly worse than the Joint-
SegOnly model. The reason may be that the CTB-5
dataset is relatively small and the complicated
models suffer from the overfitting. From the last
row of Table 3, BERT can further enhance the
model’s performance on CWS.
Another noticeable phenomenon from the lower
part of Table 3 is that the labeled dependency pars-
ing brings benefit to CWS. We assume this is be-
cause the extra supervision from dependency parsing
labels is informative for word segmentation.
4.7 Comparison with the Pipeline Model
In this part, we compare our joint model with
the pipeline model. The pipeline model first uses
our best Joint-SegOnly model to obtain segmenta-
tion results, then applies the word-based biaffine
parser to parse the segmented sentence. The word-
level biaffine parser is the same as in Dozat and
Manning (2017) but without POS tags. Just like
the joint parsing metric, for a dependent-head
word pair, only when both head and dependent
words are correct can this pair be viewed as a right
eins.
Tisch 4 obviously shows that in CTB-5, CTB-7,
and CTB-9, the Joint-Multi model consistently
outperforms the pipeline model in F 1udep, U AS,
F 1ldep, and LAS. Although the F 1seg difference
between the Joint-Multi model and the pipeline
model is only −0.02, +0.14, +0.11 in CTB-5,
CTB-7, and CTB-9, jeweils, the F 1udep of
the Joint-Multi is higher than the pipeline model
von +1.36, +1.18, Und +0.61, jeweils; Wir
believe this indicates the better resistance to error
propagation of the Joint-Multi model.
Zusätzlich, when BERT is used, F 1udep,
U AS, F 1ldep, and LAS are substantially im-
proved, which represents that our joint model can
take advantage of the power of BERT. In CTB-5,
the joint model even achieves better U AS than the
gold-segmented word-based model. And for the
LAS, Joint-Multi-BERT models also achieve
better results in CTB-5 and CTB-9. We presume
the reason that performance of CWS does not
improve as much as dependency parsing is that
the falsely segmented words in Joint-Multi-BERT
are mainly segmenting a long word into several
short words or recognizing several short words as
one long word.
4.8 Ablation Study
As our model uses various n-gram pre-trained em-
beddings, we explore the influence of these pre-
trained embeddings. The second row in Table 5
shows the results of the Joint-Multi model without
pre-trained embeddings; it is clear that pre-trained
87
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
Models
CTB-5
CTB-7
Pudep Seg-wrong Head-wrong Pudep Seg-wrong Head-wrong Pudep Seg-wrong Head-wrong
CTB-9
Pipeline
Joint-Multi
Joint-Multi-BERT 89.22% 3.2%
86.28% 3.49%
87.65% 3.43%
10.23%
8.92%
7.58%
80.75% 7.10%
81.81% 6.80%
85.01% 6.10%
12.15%
11.39%
8.89%
81.48% 6.76%
82.08% 6.55%
85.59% 5.74%
11.76%
11.37%
8.89%
The value of Pudep is the percentage that the predicted arc is correct. ‘Seg-wrong’ means that either head or dependent
(oder beides) is wrongly segmented. ‘Head-wrong’ means that the word is correctly segmented but the predicted head word is
wrong.
Tisch 6: Error analysis of unlabeled dependency parsing in the test set of different datasets.
embeddings are important for both the word seg-
mentation and dependency parsing.
We also tried to remove the bigram and tri-
Gramm. Results are illustrated in the third row of
Tisch 5. Compared with the Joint-Multi model,
without bigram and trigram, it performs worse
in all metrics. Jedoch, the comparison between
the second row and the third row shows diver-
gence in CWS and dependency parsing for datasets
CTB-5 and CTB-7. For CWS, the model without
pre-trained embeddings obtains superior perfor-
mance than without the bigram and trigram fea-
tur, whereas for all dependency parsing related
metrics, the model with pre-trained character em-
bedding obtains better performance. We assume
the n-gram features are important to Chinese word
segmentation. For the dependency parsing task,
Jedoch, the relation between two characters are
more beneficial; when pre-trained embeddings are
combined, the model can exploit the relationship
encoded in the pre-trained embeddings. Addition-
ally, for CTB-5 and CTB-7, even though the third
row has inferior F 1seg (on average 0.16% lower
than the second row), it still achieves much better
F 1udep (on average 0.95% higher than the second
Reihe). We believe this is a proof that joint CWS
and dependency parsing is resistant to error prop-
agation. The higher segmentation and dependency
parsing performance for the model without pre-
trained embedding in CTB-9 might be owing to its
large training set, which can achieve better results
even from randomly initialized embeddings.
4.9 Error Analysis
Apart from performing the standard evaluation, Wir
investigate where the dependency parsing head
prediction error comes from. The errors can be
divided into two kinds, (1) either the head or
dependent (oder beides) is wrongly segmented, oder (2)
there is the wrong choice on the head word. Der
ratio of these two mistakes is presented in Table 6.
For the Joint-Multi model, more mistakes caused
by segmentation in CTB-7 is coherent with our
observation that CTB-7 bears lower CWS per-
Form. Based on our error analysis, the wrong
prediction of head word accounts for most of the
Fehler, therefore further joint models addressing
head prediction error problem might result in
more gain on performance.
Zusätzlich, although from Table 4 the dis-
tinction of F 1seg between the Joint-Multi model
and the Pipeline model is around +0.1% on aver-
Alter, the difference between the Head-wrong is
more than around +0.82% in average. We think
this is caused by the pipeline model, in which is
more sensitive to word segmentation errors and
suffers more from the OOV problem, as depicted
in Abbildung 4. From the last row of Table 4, Joint-
Multi-BERT achieves excellent performance on
dependency parsing because it can significantly
reduce errors caused by predicting the wrong
Kopf.
5 Conclusion and Future Work
In diesem Papier, we propose a graph-based model for
joint Chinese word segmentation and dependency
parsing. Different from the previous joint models,
our proposed model is a graph-based model and
is more concise, which results in fewer efforts of
feature engineering. Although no explicit hand-
crafted parsing features are applied, our joint
model outperforms the previous feature-riched
joint models by a large margin. The empirical re-
sults in CTB-5, CTB-7, and CTB-9 show that
the dependency parsing task is also beneficial to
Chinese word segmentation. Zusätzlich, beschriftet
dependency parsing not only is good for Chinese
word segmentation, but also avails the dependency
parsing head prediction.
Apart from good performance, the comparison
between our joint model and the pipeline model
88
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
Figur 4: Parsing results of different models. The red dashed box means the dependency label is wrong. Der
red dashed edge means this dependency arc does not exist. Although the pipeline model has the right word
segmentation, ‘‘
’’ is an out-of-vocabulary word. daher, it fails to find the right dependency
relation and adversely affects predictions afterward. The Joint-Multi model can still have a satisfying outcome
even with wrong segmentation, which depicts that the Joint-Multi model is resistant to wrong word segmentations.
The Joint-Multi-BERT correctly finds the word segmentation and dependency parsing.
shows great potentialities for character-based
Chinese dependency parsing. And owing to the
joint decoding between Chinese word segmen-
tation and dependency parsing, our model can use
a pre-trained character-level language model (solch
as BERT) to enhance the performance further.
After the incorporation of BERT,
die Perfor-
mance of our joint model increases substantially,
resulting in the character-based dependency pars-
ing performing near the gold-segmented word-
based dependency parsing. Our proposed method
not merely outpaces the pipeline model, Aber
also avoids the preparation for pre-trained word
embeddings that depends on a good Chinese word
segmentation model.
In order to fully explore the possibility of graph-
based Chinese dependency parsing, future work
should be done to incorporate POS tagging into
this framework. Zusätzlich, as illustrated in
Zhang et al. (2014), a more reasonable intra-word
dependent structure might further boost the perfor-
mance of all tasks.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
89
Danksagungen
We would like to thank the action editor and the
anonymous reviewers for their insightful com-
gen. We also thank the developers of fastNLP,4
Yunfan Shao and Yining Zheng, for developing
this handy natural language processing package.
This work was supported by the National Key
Research and Development Program of China
(NEIN. 2018YFC0831103), National Natural Science
Foundation of China (NEIN. 61672162), Shanghai
Municipal Science and Technology Major Project
(NEIN. 2018SHZDZX01), and ZJLab.
Verweise
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua
Bengio. 2015. Neural machine translation by
jointly learning to align and translate. In 3rd
International Conference on Learning Repre-
Sendungen, ICLR 2015, San Diego, CA, USA,
May 7–9, 2015, Conference Track Proceedings.
Xinchi Chen, Xipeng Qiu, and Xuanjing Huang.
2017. A feature-enriched neural model for joint
Chinese word segmentation and part-of-speech
tagging. In Proceedings of the Twenty-Sixth
International Joint Conference on Artificial
Intelligence, IJCAI 2017, Melbourne, Australia,
August 19–25, 2017.
Xinchi Chen, Xipeng Qiu, Chenxi Zhu, Pengfei
Liu, and Xuanjing Huang. 2015. Long Short-
Term Memory Neural Networks for Chinese
Word Segmentation. In Proceedings of
Die
2015 Conference on Empirical Methods in
Natural Language Processing, EMNLP 2015,
Lisbon, Portugal, September 17–21, 2015.
Yiming Cui, Wanxiang Che, Ting Liu, Bing Qin,
Ziqing Yang, Shijin Wang, and Guoping Hu.
2019. Pre-training with whole word masking
for Chinese BERT. CoRR, abs/1906.08101v2.
Jacob Devlin, Ming-Wei Chang, Kenton Lee, Und
Kristina Toutanova. 2019. BERT: pre-training
of deep bidirectional transformers for language
Verständnis. In Proceedings of
Die 2019
Conference of the North American Chapter of
the Association for Computational Linguistics:
Human Language Technologies, NAACL-HLT
4https://github.com/fastnlp/fastNLP.
2019, Minneapolis, MN, USA, June 2–7, 2019,
Volumen 1 (Long and Short Papers).
Timothy Dozat and Christopher D. Manning.
2017. Deep biaffine attention for neural depen-
dency parsing. In 5th International Conference
on Learning Representations,
ICLR 2017,
Toulon, Frankreich, April 24–26, 2017, Conference
Track Proceedings.
Xavier Glorot and Yoshua Bengio. 2010. Under-
standing the difficulty of training deep feed-
forward neural networks. In Proceedings of the
Thirteenth International Conference on Arti-
ficial Intelligence and Statistics, AISTATS 2010,
Chia Laguna Resort, Sardinia,
Italien, Mai
13-15, 2010.
Jun Hatori, Takuya Matsuzaki, Yusuke Miyao,
and Jun’ichi Tsujii. 2012. Incremental joint
approach to word segmentation, POS tagging,
and dependency parsing in Chinese. In The
50th Annual Meeting of
the Association
für Computerlinguistik, Proceedings of
the Conference, July 8–14, 2012, Jeju Island,
Korea – Volumen 1: Long Papers.
Sepp Hochreiter and J¨urgen Schmidhuber. 1997.
Long short-term memory. Neural Computation,
9(8):1735–1780.
Diederik P. Kingma and Jimmy Ba. 2015. Adam:
A method for stochastic optimization. In 3rd
International Conference on Learning Repre-
Sendungen, ICLR 2015, San Diego, CA, USA,
May 7–9, 2015, Conference Track Proceedings.
Eliyahu Kiperwasser and Yoav Goldberg. 2016.
Simple and accurate dependency parsing us-
ing bidirectional LSTM feature representations.
Transactions of the Association for Computa-
tional Linguistics TACL, 4:313–327.
Sandra K¨ubler, Ryan T. McDonald, and Joakim
Nivre. 2009. Dependency Parsing. Synthesis
Lectures on Human Language Technologies.
Morgan & Claypool Publishers.
joint model
Shuhei Kurita, Daisuke Kawahara, and Sadao
Kurohashi. 2017. Neuronal
für
transition-based Chinese syntactic analysis. In
Proceedings of the 55th Annual Meeting of
the Association for Computational Linguistics,
ACL 2017, Vancouver, Kanada, Juli 30 –
August 4, Volumen 1: Long Papers.
90
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
John D. Lafferty, Andrew McCallum, Und
Fernando C. N. Pereira. 2001. Conditional ran-
dom fields: Probabilistic models for segment-
ing and labeling sequence data. In Proceedings
of the Eighteenth International Conference on
Machine Learning (ICML 2001), Williams Col-
lege, Williamstown, MA, USA, Juni 28 – Juli 1,
2001.
Haonan Li, Zhisong Zhang, Yuqi Ju, and Hai
Zhao. 2018. Neural character-level dependency
parsing for Chinese. In Proceedings of the Thirty-
Second AAAI Conference on Artificial Intelli-
gence, (AAAI-18), the 30th innovative Applications
of Artificial Intelligence (IAAI-18), and the 8th
AAAI Symposium on Educational Advances in
Artificial Intelligence (EAAI-18), New Orleans,
Louisiana, USA, February 2–7, 2018.
Zhenghua Li, Min Zhang, Wanxiang Che, Ting
Liu, Wenliang Chen, and Haizhou Li. 2011.
Joint models for Chinese POS tagging and
dependency parsing. In Proceedings of the 2011
Conference on Empirical Methods in Natural
Language Processing, EMNLP 2011, 27–31
Juli 2011, John McIntyre Conference Centre,
Edinburgh, Vereinigtes Königreich, A meeting of SIGDAT, a Spe-
cial Interest Group of the ACL.
Wang Ling, Chris Dyer, Alan W. Black, and Isabel
Trancoso. 2015. Two/too simple adaptations
of word2vec for syntax problems. In NAACL
HLT 2015, Der 2015 Conference of the North
American Chapter of the Association for Com-
putational Linguistics: Human Language
Technologies, Denver, Colorado, USA, Mai 31 –
Juni 5, 2015.
Ilya Loshchilov and Frank Hutter. 2019. Von-
coupled weight decay regularization. In 7th
International Conference on Learning Repre-
Sendungen, ICLR 2019, New Orleans, LA, USA,
May 6–9, 2019.
Ji Ma, Kuzman Ganchev, and David Weiss. 2018.
State-of-the-art Chinese word segmentation with
bi-LSTMs. In Proceedings of the 2018 Confer-
ence on Empirical Methods in Natural Language
Processing, Brussels, Belgien, Oktober 31 –
November 4, 2018.
Hwee Tou Ng and Jin Kiat Low. 2004. Chinese
part-of-speech tagging: One-at-a-time or all-
at-once? Word-based or character-based? In
Verfahren der 2004 Conference on Em-
pirical Methods in Natural Language Pro-
Abschließen, EMNLP 2004, A meeting of SIGDAT,
a Special Interest Group of the ACL, held in
conjunction with ACL 2004, 25–26 July 2004,
Barcelona, Spanien.
Wenzhe Pei, Tao Ge, and Baobao Chang. 2014.
Max-margin tensor neural network for Chinese
word segmentation. In Proceedings of the 52nd
Annual Meeting of the Association for Com-
putational Linguistics, ACL 2014, June 22–27,
2014, Baltimore, MD, USA, Volumen 1: Long
Papers.
Xian Qian and Yang Liu. 2012. Joint Chinese
word segmentation, POS tagging and parsing.
In Proceedings of the 2012 Joint Conference
on Empirical Methods in Natural Language
Processing and Computational Natural Lan-
guage Learning, EMNLP-CoNLL 2012, Juli
12–14, 2012, Jeju Island, Korea.
Xipeng Qiu, Jiayi Zhao, and Xuanjing Huang.
2013. Joint Chinese word segmentation and
POS tagging on heterogeneous annotated cor-
pora with multiple task learning. In Proceedings
of the 2013 Conference on Empirical Methods
in Natural Language Processing, EMNLP 2013,
18–21 October 2013, Grand Hyatt Seattle, Seattle,
Washington, USA, A meeting of SIGDAT, A
Special Interest Group of the ACL.
Yan Shao, Christian Hardmeier, J¨org Tiedemann,
and Joakim Nivre. 2017. Character-based joint
segmentation and POS tagging for Chinese
using bidirectional RNN-CRF. In Proceedings
of the Eighth International Joint Conference on
Natural Language Processing, IJCNLP 2017,
Taipeh, Taiwan, November 27 – Dezember 1,
2017 – Volumen 1: Long Papers.
Tianze Shi, Liang Huang, and Lillian Lee. 2017.
Ausbildung
Schnell(er) exact decoding and global
for transition-based dependency parsing via
a minimal feature set. In Proceedings of the
2017 Conference on Empirical Methods in
Natural Language Processing, EMNLP 2017,
Copenhagen, Denmark, September 9–11, 2017.
Yan Song, Shuming Shi, Jing Li, and Haisong
Zhang. 2018. Directional skip-gram: Explic-
itly distinguishing left and right context for
word embeddings. In Proceedings of the 2018
91
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3
Conference of the North American Chapter of
the Association for Computational Linguistics:
Human Language Technologies, NAACL-HLT,
New Orleans, Louisiana, USA, June 1–6, 2018,
Volumen 2 (Short Papers).
Chi Sun, Luyao Huang, and Xipeng Qiu. 2019.
Utilizing BERT for aspect-based sentiment
analysis via constructing auxiliary sentence. In
Verfahren der 2019 Conference of the
North American Chapter of the Association for
Computerlinguistik: Human Language
Technologies, NAACL-HLT 2019, Minneapolis,
MN, USA, June 2–7, 2019, Volumen 1 (Long and
Short Papers).
Yiou Wang, Jun’ichi Kazama, Yoshimasa Tsuruoka,
Wenliang Chen, Yujie Zhang, and Kentaro
Torisawa. 2011. Improving Chinese word seg-
mentation and POS tagging with semi-supervised
methods using large auto-analyzed data. In
Fifth International Joint Conference on Natural
Language Processing, IJCNLP 2011, Chiang
Mai, Thailand, November 8–13, 2011.
Zhiguo Wang, Chengqing Zong, and Nianwen
Xue. 2013. A lattice-based framework for joint
Chinese word segmentation, POS tagging and
parsing. In Proceedings of the 51st Annual
Meeting of the Association for Computational
Linguistik, ACL 2013, 4–9 August 2013, Sofia,
Bulgaria, Volumen 2: Short Papers.
Naiwen Xue, Fei Xia, Fu-Dong Chiou, and Martha
Palmer. 2005. The Penn Chinese treebank:
Phrase structure annotation of a large corpus.
Natural Language Engineering, 11(2):207–238.
Liner Yang, Meishan Zhang, Yang Liu, Maosong
Sun, Nan Yu, and Guohong Fu. 2018. Joint
POS tagging and dependence parsing with
transition-based neural networks. IEEE/ACM
Trans. Audio, Speech & Language Processing,
26(8):1352–1358.
Meishan Zhang, Nan Yu, and Guohong Fu.
2018. A simple and effective neural model for
joint word segmentation and POS tagging.
IEEE/ACM Trans. Audio, Speech & Language
Processing, 26(9).
Meishan Zhang, Yue Zhang, Wanxiang Che, Und
Ting Liu. 2014. Character-level Chinese depen-
dency parsing. In Proceedings of
the 52nd
Annual Meeting of the Association for Com-
putational Linguistics, ACL 2014, June 22–27,
2014, Baltimore, MD, USA, Volumen 1: Long
Papers.
Yue Zhang and Stephen Clark. 2008. Joint word
segmentation and POS tagging using a single
perceptron. In ACL 2008, Verfahren der
46th Annual Meeting of the Association for
Computerlinguistik, June 15–20, 2008,
Columbus, Ohio, USA.
Yue Zhang and Stephen Clark. 2010. A fast
decoder for joint word segmentation and pos-
tagging using a single discriminative model.
Die 2010 Conference on
In Proceedings of
Empirical Methods
in Natural Language
Processing, EMNLP 2010, 9–11 October 2010,
MIT Stata Center, Massachusetts, USA, A
meeting of SIGDAT, a Special Interest Group
of the ACL.
Yuan Zhang, Chengtao Li, Regina Barzilay, Und
Kareem Darwish. 2015. Randomized greedy
inference for joint segmentation, POS tagging
and dependency parsing. In NAACL HLT 2015,
Der 2015 Conference of the North American
Chapter of the Association for Computational
Linguistik: Human Language Technologies,
Denver, Colorado, USA, Mai 31 – Juni 5,
2015.
Xiaoqing Zheng, Hanyang Chen, and Tianyu Xu.
2013. Deep learning for Chinese word seg-
mentation and POS tagging. In Proceedings of
Die 2013 Conference on Empirical Methods in
Natural Language Processing, EMNLP 2013,
18–21 October 2013, Grand Hyatt Seattle,
Seattle, Washington, USA, A meeting of SIGDAT,
a Special Interest Group of the ACL.
Ming Zhong, Pengfei Liu, Danqing Wang, Xipeng
Qiu, and Xuanjing Huang. 2019. Searching for
effective neural extractive summarization: Was
works and what’s next. In Proceedings of the
57th Conference of the Association for Com-
putational Linguistics, ACL 2019, Florence,
Italien, Juli 28 – August 2, 2019, Volumen 1: Long
Papers.
92
l
D
Ö
w
N
Ö
A
D
e
D
F
R
Ö
M
H
T
T
P
:
/
/
D
ich
R
e
C
T
.
M
ich
T
.
e
D
u
/
T
A
C
l
/
l
A
R
T
ich
C
e
–
P
D
F
/
D
Ö
ich
/
.
1
0
1
1
6
2
/
T
l
A
C
_
A
_
0
0
3
0
1
1
9
2
3
6
2
4
/
/
T
l
A
C
_
A
_
0
0
3
0
1
P
D
.
F
B
j
G
u
e
S
T
T
Ö
N
0
8
S
e
P
e
M
B
e
R
2
0
2
3