eliorsulem / SAMSA

Simplification Automatic evaluation Measure through Semantic Annotation
GNU General Public License v3.0
15 stars 6 forks source link

L1==L2 condition failing in SAMSA_score.py #1

Closed tkngoutham closed 4 years ago

tkngoutham commented 4 years ago

Complex Sentence : Ram went to school and played football . Simple Sentence : Ram went to school . Ram played football .

cat scene_sentence_extraction_output/s0.txt [['Ram', 'went', 'to', 'school'], ['Ram', 'played', 'football']] [['Ram', 'went', 'to', 'school', 'and', 'played', 'football', '.']]

cat scene_sentence_alignment_output/a0.txt [[[['Ram', 'Ram'], ['went', 'went'], ['to', 'to'], ['school', 'school']]], [[['played', 'played'], ['football', 'football'], ['Ram', 'Ram']]]]

Traceback (most recent call last): File "SAMSA_score.py", line 222, in if len(t[i][j]) > match_value and j not in match: IndexError: list index out of range

eliorsulem commented 4 years ago

Hi Kushwanth,

If the Simple Text is "Ram went to school. Ram played football.", then by applying scene_sentence_extraction.py, the second line in scene_sentence_extraction_output/s0.txt should be: [['Ram','went',to','school','.'], ['Ram', 'played', 'football','.']] It is the segmentation of the Simple Text into sentences.

Best, Elior