grammarly / gector

Official implementation of the papers "GECToR – Grammatical Error Correction: Tag, Not Rewrite" (BEA-20) and "Text Simplification by Tagging" (BEA-21)
Apache License 2.0
891 stars 216 forks source link

Nghiauet add comment for clarify #196

Open Nghiauet opened 1 year ago

Nghiauet commented 1 year ago

Hi, I am reading the paper and trying to reimplement the code. But some functions seem to lack descriptions and hard to understand what going on. What change: Add some comments for perfect_align and is_sent_ok functions What impact: Don't change the logic code.

I still want to add more comments in the code. Please provide your instructions for me to make better explain for this code. Thanks