python-sutime icon indicating copy to clipboard operation
python-sutime copied to clipboard

Change the used languagemodel

Open mpXtiM opened this issue 4 years ago • 1 comments

I created a german ruleset and try to use it. The problem is if I change the sutime.py language to german it still loads the English rules. Has anybody a solution for that? My workaround for now was to add the changed rules to the spanish model as 'spanish.sutime'.

mpXtiM avatar Feb 20 '21 14:02 mpXtiM

Hey @mpXtiM, are you willing to share your rule file?

You can pass the language as argument when you initialize SuTime:

sutime_de = SUTime(jars="sutime/target/", mark_time_ranges=True, include_range=True, language="german")

Josua996 avatar Jan 08 '23 22:01 Josua996