PrithivirajDamodaran / Gramformer

A framework for detecting, highlighting and correcting grammatical errors on natural language text. Created by Prithiviraj Damodaran. Open to pull requests and other forms of collaboration.
MIT License
1.5k stars 175 forks source link

README.md get_edits and get_highlight example small fixes #24

Closed parisac closed 2 years ago

parisac commented 2 years ago

Hi there, when I copy and pasted the examples in the README locally I noticed they were bugging out for the edits and highlights (were only pulling the first char of the sentence for errant). Providing the full sentence seemed to get the desired output.

PrithivirajDamodaran commented 2 years ago

Previously correct used to return a tuple <corrected sent, score>, we merged a change that rolled back the score to return only the corrected sentence. The examples weren't updated accordingly.