Open vvasuki opened 7 years ago
I am definitely interested in taking this up. Will take some time. But with the following logic I guess I will be able to present a decent enough item.
1. Prepare a window of 5+ and 5- for given sUtra number e.g. 1.4.34 - range would be 1.4.29 to 1.4.39
2. If the canonical database 1.4.34 is an exact match or edit-distance of <3, keep it as it is.
3. Otherwise calculate the edit-distance of 10 sUtras in the range of +5 or -5. Identify the nearest match.
- Prepare a window of 5+ and 5- for given sUtra number e.g. 1.4.34 - range would be 1.4.29 to 1.4.39
- If the canonical database 1.4.34 is an exact match or edit-distance of <3, keep it as it is.
- Otherwise calculate the edit-distance of 10 sUtras in the range of +5 or -5. Identify the nearest match.
अत्रेयं भवति समस्या - 6.1.74 इत्यन्विष्यति चेज् जनः, किमु ६ सूत्राणि (6.1.74 -3, 6.1.74 +3) दर्शनीयानि? न खलु तद् भवति युक्तम् उपयोक्तृभ्यः। hence I'd recommend dropping :
- If the canonical database 1.4.34 is an exact match or edit-distance of <3, keep it as it is.
Rather, it is ok to keep the original numbering also if it is different - but prepend it with some string, such as: kAs1.4.34
for a sUtra numbering 1.4.34 which differs from the canonical pATha number (say 1.4.32).
OK. I will try ASAP and let you know the results.
canonical sUtrapATha
What is the book source?
The sUtra numbering in our grammar files have slight inconsistencies. The following entries will show one example:
This results in a bad experience for users, making coherent lookups impossible. This is also an impediment in presenting all commentaries together programmatically.
Solution: sUtra-s in all files should be numbered according to a canonical sUtrapATha ( I recommend https://docs.google.com/spreadsheets/d/1208pyOsYiZlS5fmm8tYEq2qbCzqWgPnMYNUf1-1uRJM/edit?usp=drive_web ), with sUtra-s appearing in only one pATha (such as one followed by say kAshikA but not others) given special numbers/ identifiers. @drdhaval2785 - interested in taking this up?