Sentiment annotation extension for TrEd
- Install TrEd.
- Install nondeprel_common extension: Run tred -> Setup -> Manage extensions -> Get New Extensions. Then select tne nondeprel_common extension and click Install Selected).
- Install this extension manually: clone this repository into ~/.tred.d/extensions/sentiment, then edit ~/.tred.d/extensions/extensions.lst file and add a line "sentiment" to it.
Open a file with tectogrammatical annotation (.t.gz file). Select PML_T_Sentiment mode. Click Macros -> Current Mode -> Init sentiment attributes. If you are asked if you want to save the file, click Yes. Doubleclick a node and you will see that there are sentiment related attributes: sentiment_eval, sentiment_source.rf sentiment_target.rf.
To annotate, select a node representing an assessing word and "remember it" pressing space. Then select a source of assessment and press s, then select a target of assessment and press t. Finally assign the sentiment_eval attribute value POSITIVE or NEGATIVE.