# Path: sanskrit_parser/base/sanskrit_base.py
# class SanskritObject(SanskritNormalizedString):
#     """ Sanskrit Object Class: Derived From SanskritString
# 
#         Attributes:
# 
#     """
#     def __init__(self, thing=None, encoding=None, unicode_encoding='utf-8',
#                  strict_io=True, replace_ending_visarga='s'):
#         super().__init__(thing, encoding, unicode_encoding, strict_io, replace_ending_visarga)
#         # Tags will go here as
#         self.tags = []
# 
#     def setMorphologicalTags(self, t):
#         """ Set Morphological Tags on Sanskrit Object
# 
#             Params:
#                t (list): List of morphological tags
#         """
#         self.tags.extend(t)
#         return self.tags
# 
#     def getMorphologicalTags(self):
#         """ Morphological Tags on object """
#         return self.tags
# 
# SLP1 = sanscript.SLP1


import codecs
import inspect
import json
import logging
import os
import re
import progressbar
from sanskrit_parser.base.sanskrit_base import SanskritObject, SLP1
from sanskrit_parser.lexical_analyzer.sanskrit_lexical_analyzer import SanskritLexicalAnalyzer
             "sandhi_test_data/madyama_ext.txt",
             "sandhi_test_data/vetalkatha_ext.txt",
             "sandhi_test_data/5.balacharitham-ext.txt",
             "sandhi_test_data/manjusa-ext.txt",
             "sandhi_test_data/vinodini-ext.txt",
             "sandhi_test_data/7.charudattam-ext.txt",
             "sandhi_test_data/nyayasara-ext.txt",
             "sandhi_test_data/vrubhangam_ext.txt",
             "sandhi_test_data/Aakhyanvallari_ext.txt",
             "sandhi_test_data/Rajkathakunj_ext.txt",
             "sandhi_test_data/vyutpattivada-ext.txt"]
    for fn in flist:
        if m != 0:
            r = process_uohd_file(fn, m)
            if r is not None:
                fs.extend(r)
                m = m - len(r)
        else:
            break
    return fs


# FIXME - need to store the modified f,s instead of input references
def test_splits(lexan, uohd_refs):
    # Check if s is in splits
    def _in_splits(s, splits):
        return s in [list(map(str, ss)) for ss in splits]

    f = uohd_refs[0]
    s = uohd_refs[1]

# Path: sanskrit_parser/base/sanskrit_base.py
# class SanskritObject(SanskritNormalizedString):
#     """ Sanskrit Object Class: Derived From SanskritString
# 
#         Attributes:
# 
#     """
#     def __init__(self, thing=None, encoding=None, unicode_encoding='utf-8',
#                  strict_io=True, replace_ending_visarga='s'):
#         super().__init__(thing, encoding, unicode_encoding, strict_io, replace_ending_visarga)
#         # Tags will go here as
#         self.tags = []
# 
#     def setMorphologicalTags(self, t):
#         """ Set Morphological Tags on Sanskrit Object
# 
#             Params:
#                t (list): List of morphological tags
#         """
#         self.tags.extend(t)
#         return self.tags
# 
#     def getMorphologicalTags(self):
#         """ Morphological Tags on object """
#         return self.tags
# 
# SLP1 = sanscript.SLP1


# Path: tests/obsolete/generate_uohd_LexicalAnalyzer_pass_fail.py
import codecs
import inspect
import json
import logging
import os
import re
import progressbar
from sanskrit_parser.base.sanskrit_base import SanskritObject, SLP1
from sanskrit_parser.lexical_analyzer.sanskrit_lexical_analyzer import SanskritLexicalAnalyzer

             "sandhi_test_data/madyama_ext.txt",
             "sandhi_test_data/vetalkatha_ext.txt",
             "sandhi_test_data/5.balacharitham-ext.txt",
             "sandhi_test_data/manjusa-ext.txt",
             "sandhi_test_data/vinodini-ext.txt",
             "sandhi_test_data/7.charudattam-ext.txt",
             "sandhi_test_data/nyayasara-ext.txt",
             "sandhi_test_data/vrubhangam_ext.txt",
             "sandhi_test_data/Aakhyanvallari_ext.txt",
             "sandhi_test_data/Rajkathakunj_ext.txt",
             "sandhi_test_data/vyutpattivada-ext.txt"]
    for fn in flist:
        if m != 0:
            r = process_uohd_file(fn, m)
            if r is not None:
                fs.extend(r)
                m = m - len(r)
        else:
            break
    return fs


# FIXME - need to store the modified f,s instead of input references
def test_splits(lexan, uohd_refs):
    # Check if s is in splits
    def _in_splits(s, splits):
        return s in [list(map(str, ss)) for ss in splits]

    f = uohd_refs[0]
    s = uohd_refs[1]

    i = SanskritObject(f, encoding=SLP1)