X-RayDemo / evalcap /meteor /test_meteor.py
tousin23's picture
Upload 41 files
6551065 verified
raw
history blame contribute delete
297 Bytes
import meteor
hypo = ['this is the model generated sentence1 which seems good enough']
ref = ['this is one reference sentence for sentence1',
'this is a reference sentence for sentence2 which was generated by your model']
m = meteor.Meteor()
score = m._score(hypo[0], ref)
print(score)