cogcomp-nlpy
cogcomp-nlpy copied to clipboard
Show relations in the view.
Here in the view: https://github.com/CogComp/sioux/blob/fb67e448fcde5010413e2ce7dded54b95461be51/sioux/core/view.py#L7-L17
We only print the constituents; while we should also print the relations too. Maybe like this:
relation-label (source-cons-label, target-cons-label)
For example for parse tree:
det(construction-2, The-1)
nsubj(finished-8, construction-2)
case(library-7, of-3)
det(library-7, the-4)
compound(library-7, John-5)
compound(library-7, Smith-6)
nmod(construction-2, library-7)
root(ROOT-0, finished-8)
case(time-10, on-9)
nmod(finished-8, time-10)
Okay, just output relations line by line? If some views contain many relations, it might occupy the whole screen...
Yeah that should be fine.