From 981fc419bdfcaff857e9b9002429d12005a5df1c Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 20 Dec 2021 03:58:45 +0100 Subject: [PATCH] chore: add fields with defaults --- da_detector.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/da_detector.py b/da_detector.py index 58ad4d0..26a99f4 100755 --- a/da_detector.py +++ b/da_detector.py @@ -10,11 +10,14 @@ class da_detector: # langs to check # to be picked from ["cz", "sk", "de", "en", "fr"] self.da_ngrams = [] + self.what_grams = 3 + self.how_many = 30 if not isinstance(langs_to_check, list): raise TypeError("not a list, bailing") if (len(langs_to_check) < 2): raise ValueError("too few languages specified") + self.langs_to_check = ["sk", "en"] def rm_interpunction(data): from string import punctuation