Skip to content

Commit 656ccf5

Browse files
committed
Version 3.4.5; options added to evaluation
1 parent c3445dc commit 656ccf5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

eval/eval.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,8 +1773,16 @@ def process(fpath_and_category: Tuple[str, str]) -> Dict[str, Any]:
17731773
# Nothing to do: drop this and go to the next sentence
17741774
continue
17751775
# print(text)
1776+
options = {}
1777+
options["annotate_unparsed_sentences"] = True # True is default
1778+
options["suppress_suggestions"] = False # False is default
1779+
options["ignore_rules"] = set(
1780+
[
1781+
"",
1782+
]
1783+
)
17761784
# Pass it to GreynirCorrect
1777-
pg = [list(p) for p in gc_check(text)]
1785+
pg = [list(p) for p in gc_check(text, **options)]
17781786
s: Optional[_Sentence] = None
17791787
if len(pg) >= 1 and len(pg[0]) >= 1:
17801788
s = pg[0][0]

src/reynir_correct/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.4.4"
1+
__version__ = "3.4.5"

0 commit comments

Comments
 (0)