hlepp / 573-summarizer

LING 573 Group Project
MIT License
0 stars 1 forks source link

Added narrative to the bias calculation #119

Closed sladymon closed 5 years ago

sladymon commented 5 years ago

This will add the similarity of each sentence and the narrative to the bias vector if include_narrative is set to True. You can test this by setting it to True using the following in D3.cmd: arguments = src/text_summarizer.py /dropbox/18-19/573/Data/Documents/devtest/GuidedSumm10_test_topics.xml D3 0 0 smooth_idf term_frequency 0.7 0.0 0.5 0.1 0.6 20 5 1 cos cos

Note that in devtest (TAC 2010) and eval (TAC 2011), narrative is stored in the Topic.category variable, but in training (TAC 2009), it is in the narrative variable. This code should work for either.