diff --git a/deployment/grammar_checker.py b/deployment/grammar_checker.py index f7abf79756fd401c0323bacc57ed10f871def0b2..ddbf90d796107761debce216baeb1a0787334e16 100644 --- a/deployment/grammar_checker.py +++ b/deployment/grammar_checker.py @@ -1,15 +1,8 @@ -import ast -import sys -import time import json -import math import nltk import requests -import pandas as pd import threading import numpy as np -from nltk import TweetTokenizer -from nltk.util import ngrams from time import sleep from tester import Tester @@ -274,7 +267,8 @@ class GrammarChecker: i_errors.append(index) max_counter = counter - print(f"thresholds_passed: {thresholds_passed}") + print(f"below thresholds? bi-gram: {thresholds_passed[2]}, tri-gram: {thresholds_passed[3]}") + print("notice: sentence level thresholds ignored. we currently always assume an error.") return i_errors