skrutable 2.5.2__tar.gz → 2.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {skrutable-2.5.2 → skrutable-2.5.3}/PKG-INFO +1 -1
- skrutable-2.5.3/src/skrutable/__init__.py +1 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/meter_identification.py +6 -5
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable.egg-info/PKG-INFO +1 -1
- skrutable-2.5.2/src/skrutable/__init__.py +0 -1
- {skrutable-2.5.2 → skrutable-2.5.3}/LICENSE.md +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/README.md +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/setup.cfg +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/setup.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/config.json +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/config.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/generate_scheme_vectors.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/impossible_bigrams.json +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/manual.md +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/meter_patterns.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/phonemes.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/run_examples.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/scansion.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/scheme_detection.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/scheme_maps.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/scheme_vectors.json +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/scheme_vectors_mbh.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/splitting.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/transliteration.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/utils.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable/virAma_avoidance.py +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable.egg-info/SOURCES.txt +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable.egg-info/dependency_links.txt +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable.egg-info/requires.txt +0 -0
- {skrutable-2.5.2 → skrutable-2.5.3}/src/skrutable.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.5.3"
|
|
@@ -59,9 +59,10 @@ def flush_profiling_report(write_file=False):
|
|
|
59
59
|
return
|
|
60
60
|
import sys, os
|
|
61
61
|
scan_keys = ('scan_clean', 'scan_translit', 'scan_syllabify', 'scan_weights', 'scan_morae_gana')
|
|
62
|
-
type_keys = ('anuzwuB', 'samavftta', 'upajAti', 'vizamavftta', 'jAti')
|
|
62
|
+
type_keys = ('anuzwuB', 'samavftta', 'upajAti', 'ardhasamavftta', 'vizamavftta', 'jAti')
|
|
63
63
|
type_abbrev = {
|
|
64
|
-
'anuzwuB': 'anuṣṭ', 'samavftta': 'samav', 'upajAti': 'upajāti',
|
|
64
|
+
'anuzwuB': 'anuṣṭ', 'samavftta': 'samav', 'upajAti': 'upajāti',
|
|
65
|
+
'ardhasamavftta': 'ardha', 'vizamavftta': 'vizama', 'jAti': 'jāti',
|
|
65
66
|
}
|
|
66
67
|
scan_abbrev = {'scan_clean': 'clean', 'scan_translit': 'transl', 'scan_syllabify': 'syl', 'scan_weights': 'wts', 'scan_morae_gana': 'mor+g'}
|
|
67
68
|
cat_order = ['anuṣṭubh', 'samavṛtta', 'upajāti', 'ardhasamavṛtta', 'viṣamavṛtta', 'jāti', 'na kiṃcid adhyavasitam']
|
|
@@ -914,7 +915,7 @@ class VerseTester(object):
|
|
|
914
915
|
and wbp_lens.count(11) != 4 # bc triṣṭubh upajāti so common
|
|
915
916
|
):
|
|
916
917
|
# will give id_score == 8
|
|
917
|
-
self.evaluate_ardhasamavftta(Vrs)
|
|
918
|
+
timed('ardhasamavftta')(self.evaluate_ardhasamavftta)(Vrs)
|
|
918
919
|
# max score not necessarily yet reached, don't return
|
|
919
920
|
|
|
920
921
|
# test perfect single pāda of samavṛtta
|
|
@@ -1480,7 +1481,7 @@ class MeterIdentifier(object):
|
|
|
1480
1481
|
|
|
1481
1482
|
if _DEBUG_TIMING:
|
|
1482
1483
|
_pre_keys = ('scan_clean', 'scan_translit', 'scan_syllabify', 'scan_weights', 'scan_morae_gana',
|
|
1483
|
-
'anuzwuB', 'samavftta', 'upajAti', 'vizamavftta', 'jAti')
|
|
1484
|
+
'anuzwuB', 'samavftta', 'upajAti', 'ardhasamavftta', 'vizamavftta', 'jAti')
|
|
1484
1485
|
_pre = {k: _section_totals.get(k, 0.0) for k in _pre_keys}
|
|
1485
1486
|
|
|
1486
1487
|
# gets back mostly populated Verse object
|
|
@@ -1568,7 +1569,7 @@ class MeterIdentifier(object):
|
|
|
1568
1569
|
|
|
1569
1570
|
if _DEBUG_TIMING:
|
|
1570
1571
|
all_keys = ('scan_clean', 'scan_translit', 'scan_syllabify', 'scan_weights', 'scan_morae_gana',
|
|
1571
|
-
'anuzwuB', 'samavftta', 'upajAti', 'vizamavftta', 'jAti')
|
|
1572
|
+
'anuzwuB', 'samavftta', 'upajAti', 'ardhasamavftta', 'vizamavftta', 'jAti')
|
|
1572
1573
|
verse_times = {k: _section_totals.get(k, 0.0) - _pre[k] for k in all_keys}
|
|
1573
1574
|
verse_times['scan'] = sum(verse_times[k] for k in ('scan_clean', 'scan_translit', 'scan_syllabify', 'scan_weights', 'scan_morae_gana'))
|
|
1574
1575
|
cat = _meter_label_to_category(V.meter_label)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.5.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|