skrutable 2.5.1__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.1 → skrutable-2.5.3}/PKG-INFO +1 -1
- skrutable-2.5.3/src/skrutable/__init__.py +1 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/meter_identification.py +9 -8
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable.egg-info/PKG-INFO +1 -1
- skrutable-2.5.1/src/skrutable/__init__.py +0 -1
- {skrutable-2.5.1 → skrutable-2.5.3}/LICENSE.md +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/README.md +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/setup.cfg +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/setup.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/config.json +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/config.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/generate_scheme_vectors.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/impossible_bigrams.json +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/manual.md +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/meter_patterns.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/phonemes.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/run_examples.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/scansion.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/scheme_detection.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/scheme_maps.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/scheme_vectors.json +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/scheme_vectors_mbh.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/splitting.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/transliteration.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/utils.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable/virAma_avoidance.py +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable.egg-info/SOURCES.txt +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable.egg-info/dependency_links.txt +0 -0
- {skrutable-2.5.1 → skrutable-2.5.3}/src/skrutable.egg-info/requires.txt +0 -0
- {skrutable-2.5.1 → 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
|
|
@@ -1478,14 +1479,14 @@ class MeterIdentifier(object):
|
|
|
1478
1479
|
|
|
1479
1480
|
self.Scanner = S = Sc()
|
|
1480
1481
|
|
|
1481
|
-
# gets back mostly populated Verse object
|
|
1482
|
-
V = S.scan(rw_str, from_scheme=from_scheme)
|
|
1483
|
-
|
|
1484
1482
|
if _DEBUG_TIMING:
|
|
1485
1483
|
_pre_keys = ('scan_clean', 'scan_translit', 'scan_syllabify', 'scan_weights', 'scan_morae_gana',
|
|
1486
|
-
'anuzwuB', 'samavftta', 'upajAti', 'vizamavftta', 'jAti')
|
|
1484
|
+
'anuzwuB', 'samavftta', 'upajAti', 'ardhasamavftta', 'vizamavftta', 'jAti')
|
|
1487
1485
|
_pre = {k: _section_totals.get(k, 0.0) for k in _pre_keys}
|
|
1488
1486
|
|
|
1487
|
+
# gets back mostly populated Verse object
|
|
1488
|
+
V = S.scan(rw_str, from_scheme=from_scheme)
|
|
1489
|
+
|
|
1489
1490
|
self.VerseTester = VT = VerseTester()
|
|
1490
1491
|
self.VerseTester.resplit_option = resplit_option
|
|
1491
1492
|
self.VerseTester.resplit_keep_midpoint = resplit_keep_midpoint
|
|
@@ -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.1"
|
|
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
|