clulab / releases

31 stars 14 forks source link

is_projective loop in lrec2020-pat #4

Closed Sharefah-Alghamdi closed 3 years ago

Sharefah-Alghamdi commented 3 years ago

I am trying to run the code for lrec2020-pat on my dataset but it seems that it go into infinet loop in function is_projective(sentence) in colln.py here-> unassigned = { entry.id: sum(1 for e in sentence if e.head == entry.id) for entry in sentence }

What do you think the reason is?

robertvacareanu commented 3 years ago

Can you share the sentence that triggers this behavior?

Sharefah-Alghamdi commented 3 years ago

Thank you for your reply! I found the reason 👍 It was that I don't add an empty line between sentences!

robertvacareanu commented 3 years ago

Glad it was solved :+1: