Skip to content

Commit b2ee115

Browse files
committed
Not segment clauses by PAUSECATEGORY in ClassicConstituencyParser.
1 parent 710b502 commit b2ee115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ckipnlp/driver/classic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _call(self, *, ws, pos):
181181
continue
182182

183183
# Segment clauses by punctuations
184-
if pos_token is None or pos_token.endswith('CATEGORY'):
184+
if pos_token is None or (pos_token.endswith('CATEGORY') and pos_token != 'PAUSECATEGORY'):
185185
if ws_clause:
186186
wspos_clause_text = _WsPosSentence.to_text(ws_clause, pos_clause)
187187
for conparse_clause_text in self._core.apply_list([wspos_clause_text]):

0 commit comments

Comments
 (0)