Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 1

How to Convert Tree to ConLL format?

How do you convert tree to ConLL format?

 

Example data:

 

('In', 'IN'),(NP the/DT name/NN),"('of', 'IN')",(NP Allah/NNP),"(',', ',')",(NP the/DT Entirely/RB Merciful/NNP),"(',', ',')",(NP the/DT Especially/NNP Merciful/NNP),"('.', '.')"

 

The save file I want from ConLL2000 Train data:

 

Confidence NN B-NP
in IN B-PP
the DT B-NP
pound NN I-NP
is VBZ B-VP
widely RB I-VP
expected VBN I-VP
to TO I-VP
take VB I-VP
another DT B-NP
sharp JJ I-NP
dive NN I-NP
if IN B-SBAR
trade NN B-NP
figures NNS I-NP
for IN B-PP
September NNP B-NP
, , O
due JJ B-ADJP
for IN B-PP
release NN B-NP
tomorrow NN B-NP
, , O
fail VB B-VP
to TO I-VP
show VB I-VP
a DT B-NP
substantial JJ I-NP
improvement NN I-NP
from IN B-PP
July NNP B-NP
and CC I-NP
August NNP I-NP
's POS B-NP
near-record JJ I-NP
deficits NNS I-NP
. . O

 

Edit:

 

I just found out how to convert it. I have to use tree2conlltags to convert it.