Пример #1
0
 def __init__(self, tag, xmldoc, tarsqi_instance):
     """Calls __init__ of the base class and sets component_name,
     CREATION_EXTENSION and RETRIEVAL_EXTENSION."""
     ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
     self.component_name = BLINKER
     self.CREATION_EXTENSION = 'bli.i'
     self.RETRIEVAL_EXTENSION = 'bli.o'
Пример #2
0
 def __init__(self, tag, xmldoc, tarsqi_instance):
     """Calls __init__ of the base class and sets component_name,
     parser, CREATION_EXTENSION and RETRIEVAL_EXTENSION."""
     ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
     self.component_name = SLINKET
     self.parser = Slinket()
     self.CREATION_EXTENSION = 'sli.i'
     self.RETRIEVAL_EXTENSION = 'sli.o'
Пример #3
0
 def __init__(self, tag, xmldoc, tarsqi_instance):
     """Calls __init__ of the base class and sets component_name,
     DIR_PRE, CREATION_EXTENSION and RETRIEVAL_EXTENSION."""
     ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
     self.component_name = PREPROCESSOR
     self.DIR_PRE = os.path.join(TTK_ROOT, 'components', 'preprocessing')
     # may need a better way to do this, too hard-wired and only works if the
     # entire pre-processing chain is used (which may be okay actually)
     self.CREATION_EXTENSION = 'txt'
     self.RETRIEVAL_EXTENSION = 'cnk2'
Пример #4
0
 def __init__(self, tag, xmldoc, tarsqi_instance):
     """Calls __init__ of the base class and sets component_name,
     DIR_GUTIME, CREATION_EXTENSION and RETRIEVAL_EXTENSION."""
     ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
     self.component_name = GUTIME
     self.btime = BTime()
     self.DIR_GUTIME = TTK_ROOT + os.sep + 'components' + os.sep + 'gutime'
     self.CREATION_EXTENSION = 'gut.i.xml'
     self.TMP1_EXTENSION = 'gut.t1.xml'
     self.TMP2_EXTENSION = 'gut.t2.xml'
     self.RETRIEVAL_EXTENSION = 'gut.o.xml'
Пример #5
0
 def __init__(self, tag, xmldoc, tarsqi_instance):
     """Calls __init__ of the base class and sets component_name,
     DIR_GUTIME, CREATION_EXTENSION and RETRIEVAL_EXTENSION."""
     ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
     self.component_name = GUTIME
     self.btime = BTime()
     self.DIR_GUTIME = TTK_ROOT + os.sep + 'components' + os.sep + 'gutime'
     self.CREATION_EXTENSION = 'gut.i.xml'
     self.TMP1_EXTENSION = 'gut.t1.xml'
     self.TMP2_EXTENSION = 'gut.t2.xml'
     self.RETRIEVAL_EXTENSION = 'gut.o.xml'
Пример #6
0
    def __init__(self, tag, xmldoc, tarsqi_instance):
        """Calls __init__ on the base class and initializes component_name,
        DIR_CLASSIFIER, CREATION_EXTENSION, TMP_EXTENSION and
        RETRIEVAL_EXTENSION."""

        ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
        self.component_name = CLASSIFIER
        self.DIR_CLASSIFIER = os.path.join(TTK_ROOT, 'components',
                                           'classifier')
        self.CREATION_EXTENSION = 'cla.i.xml'
        self.TMP_EXTENSION = 'cla.t.xml'
        self.RETRIEVAL_EXTENSION = 'cla.o.xml'
Пример #7
0
    def __init__(self, tag, xmldoc, tarsqi_instance):

        """Calls __init__ on the base class and initializes component_name,
        DIR_LINK_MERGER, CREATION_EXTENSION, TMP_EXTENSION and
        RETRIEVAL_EXTENSION."""

        ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
        self.component_name = LINK_MERGER
        self.DIR_LINK_MERGER = os.path.join(TTK_ROOT, 'components', 'merging')
        self.CREATION_EXTENSION = 'mer.i.xml'
        self.TMP_EXTENSION = 'mer.t.xml'
        self.RETRIEVAL_EXTENSION = 'mer.o.xml'
Пример #8
0
    def __init__(self, tag, xmldoc, tarsqi_instance, auxillary=None):
        """Calls __init__ on the base class and initializes component_name,
        DIR_CLASSIFIER, CREATION_EXTENSION, TMP_EXTENSION and
        RETRIEVAL_EXTENSION."""
        ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
        self.component_name = CLASSIFIER
        self.DIR_CLASSIFIER = os.path.join(TTK_ROOT, 'components',
                                           'classifier')
        self.CREATION_EXTENSION = 'cla.i.xml'
        self.TMP_EXTENSION = 'cla.t.xml'
        self.RETRIEVAL_EXTENSION = 'cla.o.xml'
        self.DIR_DATA = os.path.join(TTK_ROOT, 'data', 'tmp')
        self.DICT_DATA = os.path.join(TTK_ROOT, 'data', 'dict')

        #         platform = self.document.getopt_platform()
        #         if platform == 'linux2':
        #             self.executable = 'mxtest.opt.linux'
        #         elif platform == 'darwin':
        #             self.executable = 'mxtest.opt.osx'
        self.executable = 'mxtest.opt.linux'
        self.auxillary = auxillary
Пример #9
0
    def __init__(self, tag, xmldoc, tarsqi_instance):

        ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
        self.component_name = S2T
        self.CREATION_EXTENSION = 's2t.i'
        self.RETRIEVAL_EXTENSION = 's2t.o'
Пример #10
0
    def __init__(self, tag, xmldoc, tarsqi_instance):

        ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
        self.component_name = S2T
        self.CREATION_EXTENSION = 's2t.i'
        self.RETRIEVAL_EXTENSION = 's2t.o'