We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it would be nice to add an option to build https://github.com/cltk/lat_models_cltk/blob/master/lemmata/collatinus/collected.json with macrons and breves in models, lemmas (except keys) and maps keys so the decliner could generate accentuated words for example:
models
lemmas
maps
"uita": { "R": {"1": [ "1", "" ] }, "abs": [], "des": { "1": [[ "1", [ "ă" ]]], "2": [[ "1", [ "ă" ]]], "3": [[ "1", [ "ăm" ]]], "4": [[ "1", [ "āe" ]]], "5": [[ "1", [ "āe" ]]], "6": [[ "1", [ "ā" ]]], "7": [[ "1", [ "āe" ]]], "8": [[ "1", [ "āe" ]]], "9": [[ "1", [ "ās" ]]], "10": [[ "1", [ "ārŭm" ]]], "11": [[ "1", [ "īs" ]]], "12": [[ "1", [ "īs" ]]] }, "suf": [], "sufd": [] }
The text was updated successfully, but these errors were encountered:
possible fix in https://github.com/cltk/lat_models_cltk/blob/master/lemmata/collatinus/__convert.py:
import regex as re
ascii
def normalize_unicode(lines, ascii=True): if ascii: lines = unicodedata.normalize('NFKD', lines) lines = lines.encode('ASCII', 'ignore').decode() else: lines = unicodedata.normalize('NFC', lines) return lines
with open("./src/modeles.la", encoding="utf-8") as f: lines = normalize_unicode(f.read(), ascii=False).split("\n")
lemmas[normalize_unicode(result["lemma"], ascii=True)] = result
with open("./src/lemmes.la", encoding="utf-8") as f: lines = normalize_unicode(f.read(), ascii=False).split("\n")
with open("./src/lem_ext.la", encoding="utf-8") as f: lines = normalize_unicode(f.read(), ascii=False).split("\n")
Sorry, something went wrong.
No branches or pull requests
it would be nice to add an option to build https://github.com/cltk/lat_models_cltk/blob/master/lemmata/collatinus/collected.json with macrons and breves in
models
,lemmas
(except keys) andmaps
keys so the decliner could generate accentuated wordsfor example:
The text was updated successfully, but these errors were encountered: