Skip to content

Commit 4e9713f

Browse files
Minor edits
1 parent 842c533 commit 4e9713f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

eval/getexamples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
# GreynirCorrect instance
8888
settings = Settings()
89-
rc = GreynirCorrect(settings=settings)
89+
rc = GreynirCorrect(settings=settings) # !!! TODO: This is out of date
9090
# Define the command line arguments
9191

9292
parser = argparse.ArgumentParser(

test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88

99
"""
10+
11+
# Test 1
12+
1013
from reynir_correct import check_single
1114
sent = check_single("Páli, vini mínum, langaði að horfa á sjónnvarpið.")
1215
if sent:
@@ -16,6 +19,8 @@
1619
sys.exit(0)
1720
"""
1821

22+
# Test 2
23+
1924
def display_annotations(sent: rc.AnnotatedSentence):
2025
print("\nSetning:")
2126
print(sent.text)
@@ -47,6 +52,8 @@ def display_annotations(sent: rc.AnnotatedSentence):
4752

4853
sys.exit(0)
4954

55+
# Test 3
56+
5057
import time
5158

5259
from reynir_correct.spelling import Corrector

0 commit comments

Comments
 (0)