reference: Dependency Tree Based Sentence Compression, Katja Filippova and Michael Strube
usage: python sc_main.py [\d] [-p-d] the second parameter is how many tree path you want to keep, default is 10. Only when you do not need -p -d argument can this integer be omitted. -p is to parse the sentence, otherwise the rest of the code will be executed using the old tree data. I type -p only when I process an experiement with new sentence -d is to print out the dependency tree.
tools:
- stanford corenlp dependency parser
- language modeling tool: ngram-count
- ilp tool: lpsolve