{"id":18541864,"url":"https://github.com/cltk/latin_lexica_perseus","last_synced_at":"2025-04-09T18:31:19.338Z","repository":{"id":21764708,"uuid":"25086909","full_name":"cltk/latin_lexica_perseus","owner":"cltk","description":"Lexica and lemmata for the Latin language, from various sources","archived":false,"fork":false,"pushed_at":"2016-06-20T19:02:42.000Z","size":24134,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-24T10:21:15.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cltk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-11T16:52:27.000Z","updated_at":"2022-10-11T22:58:46.000Z","dependencies_parsed_at":"2022-08-17T20:35:30.361Z","dependency_job_id":null,"html_url":"https://github.com/cltk/latin_lexica_perseus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cltk%2Flatin_lexica_perseus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cltk%2Flatin_lexica_perseus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cltk%2Flatin_lexica_perseus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cltk%2Flatin_lexica_perseus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cltk","download_url":"https://codeload.github.com/cltk/latin_lexica_perseus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248087703,"owners_count":21045571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T20:06:33.037Z","updated_at":"2025-04-09T18:31:14.321Z","avatar_url":"https://github.com/cltk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### latin\\_english\\_lexicon\\_old.xml\nThe file latin\\_english\\_lexicon\\_old.xml comes from Perseus, where it is was called 1999.04.0059.xml (\u003chttp://sourceforge.net/projects/perseus-hopper/\u003e) and licensed under the [Mozilla Public License 1.1 (MPL 1.1)](http://www.mozilla.org/MPL/1.1/).\n\n#### Parsing\n\nTo parse with Python, the following works:\n\n```\nfrom lxml import etree\nfrom io import StringIO\nimport os\n\nold_path = os.path.expanduser('~/cltk_data/latin/lexicon/latin_lexica_perseus/latin_english_lexicon_old.xml')\nwith open(old_path) as f:\n    old_xml = f.read()\ntree = etree.parse(StringIO(old_xml))\n\nentries = tree.xpath('/TEI.2/text/body/div0/entryFree')\n\nprint(len(entries))  # 51594\n\nfor x in entries:\n    print(x.get('key'))\n    input()\n```\n#### latin-analyses.json\nThe file `latin-analyses.json` contains definitions for word present in latin text corpus. The definitions are scraped from the [Perseues](http://www.perseus.tufts.edu/hopper/morph) website using `scraper.py`\n\n#### Scraping\n\n```\npython3 scraper.py \u003cinput_filename\u003e \u003coutput_filename\u003e \u003clanguage\u003e\n```\nThe scraper tries to fetch definitions for words present in the input file at start of each line.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcltk%2Flatin_lexica_perseus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcltk%2Flatin_lexica_perseus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcltk%2Flatin_lexica_perseus/lists"}