Python Package to Access Dictionaries from Cologne Digital Sanskrit Lexicon

68 views
Skip to first unread message

Hrishikesh Terdalkar

unread,
Feb 2, 2022, 4:26:57 AM2/2/22
to sanskrit-p...@googlegroups.com
Namaste,

I've released a python package for programmatic access and management of dictionaries from Cologne Digital Sanskrit Lexicon.
In essence, it can download/update the specified dictionaries from CDSL, provide a customizable class to access and parse the entries from the dictionary.
It also comes with a REPL, invoked by command cdsl.


I welcome the interested members to use and comment.

Thank you.

Regards,
Hrishikesh Terdalkar

विश्वासो वासुकिजः (Vishvas Vasuki)

unread,
Feb 2, 2022, 9:26:38 AM2/2/22
to sanskrit-programmers
very interesting. Does it work by using their REST API?

--
You received this message because you are subscribed to the Google Groups "sanskrit-programmers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sanskrit-program...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sanskrit-programmers/CAJAzRBOoJdckRJCgBWg0i21d5yWD8rnGOMHw19nkJUG9NetW_Q%40mail.gmail.com.


--
--
Vishvas /विश्वासः

Hrishikesh Terdalkar

unread,
Feb 2, 2022, 1:34:30 PM2/2/22
to sanskrit-p...@googlegroups.com
Namaste,

No. It uses SQLite databases from web.zip file available from the download links available on the website. Maintains all the downloaded files in a customizable location (~/cdsl_data by default). Uses ORM from peewee, extends it by adding some basic parsing/transliteration.

One of the tasks that I want to do is writing custom parser functions for parsing entries of several principal dictionaries, and extracting syntactic and semantic information from XML entries.
For example, several dictionaries mention some grammatical information about the words, e.g. gender. This should ideally be extracted and made available as a property of every Entry class instance for easy access such as `e.gender`

This, however, in its entirety is not a straightforward task as far as I understand as it needs a careful understanding of the specific dictionary in question.

Thank you.

Regards,
Hrishikesh


dhaval patel

unread,
Feb 2, 2022, 9:01:36 PM2/2/22
to sanskrit-p...@googlegroups.com
Dear Hrishikesh,
Warm welcome from team maintaining CDSL. 
Your requirement would require you to dig deeper into CDSL. 

You may look at the open issues and may subscribe to the repos to be notified about discussions taking place on various issues of interest in CDSL.

A good starting point for a cursory survey would be

Sai Susarla

unread,
May 1, 2023, 11:36:58 PM5/1/23
to sanskrit-p...@googlegroups.com
Hi Hrishikesh,
How are you? This is Sai Susarla. Have you graduated from iitk? If so i was wondering if you could take up a job developing vedavaapi knowledge networking framework?

This is a paid position. If interested please let me know.  My number is 9370511467
- Sai

Reply all
Reply to author
Forward
0 new messages