Skip to content

darkone23/langnet

Repository files navigation

langnet

This project provides software for working with languages.

It requires some dependencies:

  1. d.iogen.es server running at http://localhost:8888
  2. whitakers words installed at ~/.local/bin/whitakers-words a. optional since this does not currently work on ARM processors
  3. Cologne Digital Sanskrit Lexicon installed at ~/cdsl_data/
  4. CLTK classical language models at ~/cltk_data/

The included test suite will automate the installation of the CLTK and CDSL data but diogenes and whitakers must be installed manually.

Running the software

if you have devenv.sh:

devenv shell
poe test # this triggers downloading and ToS approval!
poe dev

now you can query for some latin terms:

# assuming you have diogenes available at localhost:8888
curl 'localhost:5050/api/q?l=lat&s=benevolens' | jq .

# compare with diogenes output:
#   http://localhost:8888/Perseus.cgi?do=parse&lang=lat&q=benevolens

or greek terms:

# notice treatment of utf-8 query parameters (translated to betacode)
curl --data-urlencode 's=οὐσία' --data-urlencode 'l=grk' --get 'http://localhost:5050/api/q' | jq .

or sanskrit terms:

# supports basic transliteration 
# https://www.ashtangayoga.info/philosophy/sanskrit-and-devanagari/transliteration-tool/#hk/devanagari/devanAgarI
curl --data-urlencode 's=sa.msk.rta' --data-urlencode 'l=san' --get 'http://localhost:5050/api/q' | jq .

other projects:

  • lute-v3 / lwt
  • lingq
  • scaife/perseus
  • wisdomlib
  • archive.org

About

language network tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published