From 972fce7047c41a9e6323a1488a1500f435c20f5a Mon Sep 17 00:00:00 2001 From: Gregory Danielson Date: Thu, 15 Aug 2024 18:43:21 -0500 Subject: [PATCH] pona: o lili e pana lon ilo Config --- src/sonatoki/Configs.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/sonatoki/Configs.py b/src/sonatoki/Configs.py index 8df4550..d618d30 100644 --- a/src/sonatoki/Configs.py +++ b/src/sonatoki/Configs.py @@ -20,11 +20,10 @@ Punctuation, LongSyllabic, Miscellaneous, - NimiLinkuCore, LongAlphabetic, LongProperName, - NimiLinkuCommon, FalsePosSyllabic, + NimiLinkuByUsage, NimiLinkuObscure, NimiLinkuSandbox, NimiLinkuUncommon, @@ -99,7 +98,7 @@ class IloConfig(TypedDict): "cleaners": [ConsecutiveDuplicates], "ignoring_filters": [Numeric, Punctuation], "scoring_filters": [ - Or(NimiLinkuCore, NimiLinkuCommon, NimiLinkuUncommon, NimiUCSUR), + Or(NimiLinkuByUsage(30), NimiUCSUR), And(LongSyllabic, Not(FalsePosSyllabic)), # NOTE: These are allowed to pass name and alphabetic below, because they *could* be wrong LongProperName, @@ -115,11 +114,8 @@ class IloConfig(TypedDict): "ignoring_filters": [Numeric, Punctuation], "scoring_filters": [ Or( - NimiLinkuCore, - NimiLinkuCommon, - NimiLinkuUncommon, - NimiLinkuObscure(sub=__DICT_PHONOMATCHES), - NimiLinkuSandbox(sub=__DICT_PHONOMATCHES), + # awkward but efficient syntax + NimiLinkuByUsage(0)(sub=__DICT_PHONOMATCHES), NimiUCSUR, Miscellaneous, ),