Code Monkey home page Code Monkey logo

getdefs_lsj's Introduction

getdefs_LSJ

A Python script that retrieves dictionary definitions from the Liddell–Scott–Jones Greek–English Lexicon (LSJ) for words saved as a list in a text file

Instructions

Download the LSJ xml files here: https://github.com/helmadik/LSJLogeion

Update the location of the files in the script (replace "/path/to/LSJ" with your directory in double quotation marks).

Save a UTF-8 text file of Greek words, each on a new line, in the same directory as this script. Give it the name "wordlist.txt".

Run the script from Terminal:

$ python3 getdefs_LSJ.py

Depending on the number of words in your list, the script may need some time to finish, so be patient.

The script will create "output.txt", a tab-delimited text file containing your words and their definitions, provided it finds the relevant lemmata in the LSJ.

Check definitions thoroughly. The script imports definitions only, no grammatical details like gender, case usage or voice information.

Credits

The incomparable Helma Dik of Logeion, Perseus Tufts

Errors

Please report LSJ errors here: https://logeion.uchicago.edu/ (click "Report a Problem" at top right-hand corner).

getdefs_lsj's People

Contributors

josh-dillon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.