No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
corpus.py
data_structure.py
evaluate.py
input.txt
model_rvnn_lstm_20
model_user.py
output.txt
parser.py
rvnn.py
word_to_ix

README.md

discourse-parser

demo mode instruction:
python parser.py -demo -i <input_file> -o <output_file>

input_file
Chinese raw text (utf-8) (simplified)

output_file
json format:
{
'EDUs':[(edu1), (edu2)...(edun)]
'tree':{'args':[(subtree)], 'sense':(sense), 'center':(center)}
'relations':[{'arg1':(arg1),'arg2':(arg2),'sense':(sense),'center':(center)},{...},{...}]
}