def load_dvt(path=''): """ Function loads the default characters for IPA diacritics and IPA vowels of LingPy. """ # check for specific evolaemp path which sues asjp alphabet instead of IPA if path in ['el', 'evolaemp']: fn = 'dvt_el' else: fn = 'dvt' try: dvt = cache.load(fn) except: compile_dvt(path) dvt = cache.load(fn) return dvt
def test_compile_dvt(self): from lingpy.data.derive import compile_dvt compile_dvt() self.assertEqual(len(cache.load('dvt')), 3)