1
# This file was automatically generated by SWIG (http://www.swig.org).
4
# Do not make changes to this file unless you know what you are doing--modify
5
# the SWIG interface file instead.
6
# This file is compatible with both classic and new-style classes.
8
from sys import version_info
9
if version_info >= (2,6,0):
10
def swig_import_helper():
11
from os.path import dirname
15
fp, pathname, description = imp.find_module('_EST_Utterance', [dirname(__file__)])
21
_mod = imp.load_module('_EST_Utterance', fp, pathname, description)
25
_EST_Utterance = swig_import_helper()
26
del swig_import_helper
31
_swig_property = property
33
pass # Python < 2.2 doesn't have 'property'.
34
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
35
if (name == "thisown"): return self.this.own(value)
37
if type(value).__name__ == 'SwigPyObject':
38
self.__dict__[name] = value
40
method = class_type.__swig_setmethods__.get(name,None)
41
if method: return method(self,value)
42
if (not static) or hasattr(self,name):
43
self.__dict__[name] = value
45
raise AttributeError("You cannot add attributes to %s" % self)
47
def _swig_setattr(self,class_type,name,value):
48
return _swig_setattr_nondynamic(self,class_type,name,value,0)
50
def _swig_getattr(self,class_type,name):
51
if (name == "thisown"): return self.this.own()
52
method = class_type.__swig_getmethods__.get(name,None)
53
if method: return method(self)
54
raise AttributeError(name)
57
try: strthis = "proxy of " + self.this.__repr__()
59
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
64
except AttributeError:
71
class EST_Utterance(_object):
72
__swig_setmethods__ = {}
73
__setattr__ = lambda self, name, value: _swig_setattr(self, EST_Utterance, name, value)
74
__swig_getmethods__ = {}
75
__getattr__ = lambda self, name: _swig_getattr(self, EST_Utterance, name)
77
def __init__(self, *args):
78
this = _EST_Utterance.new_EST_Utterance(*args)
79
try: self.this.append(this)
80
except: self.this = this
81
__swig_destroy__ = _EST_Utterance.delete_EST_Utterance
82
__del__ = lambda self : None;
83
def init(self): return _EST_Utterance.EST_Utterance_init(self)
84
def clear(self): return _EST_Utterance.EST_Utterance_clear(self)
85
def clear_relations(self): return _EST_Utterance.EST_Utterance_clear_relations(self)
86
def set_highest_id(self, *args): return _EST_Utterance.EST_Utterance_set_highest_id(self, *args)
87
def next_id(self): return _EST_Utterance.EST_Utterance_next_id(self)
88
def load(self, *args): return _EST_Utterance.EST_Utterance_load(self, *args)
89
def save(self, *args): return _EST_Utterance.EST_Utterance_save(self, *args)
90
def evaluate_all_features(self): return _EST_Utterance.EST_Utterance_evaluate_all_features(self)
91
def num_relations(self): return _EST_Utterance.EST_Utterance_num_relations(self)
92
def relation_present(self, *args): return _EST_Utterance.EST_Utterance_relation_present(self, *args)
93
def relation(self, *args): return _EST_Utterance.EST_Utterance_relation(self, *args)
94
def id(self, *args): return _EST_Utterance.EST_Utterance_id(self, *args)
95
def create_relation(self, *args): return _EST_Utterance.EST_Utterance_create_relation(self, *args)
96
def remove_relation(self, *args): return _EST_Utterance.EST_Utterance_remove_relation(self, *args)
97
def sub_utterance(self, *args): return _EST_Utterance.EST_Utterance_sub_utterance(self, *args)
98
EST_Utterance_swigregister = _EST_Utterance.EST_Utterance_swigregister
99
EST_Utterance_swigregister(EST_Utterance)
102
def sub_utterance(*args):
103
return _EST_Utterance.sub_utterance(*args)
104
sub_utterance = _EST_Utterance.sub_utterance
107
return _EST_Utterance.get_utt(*args)
108
get_utt = _EST_Utterance.get_utt
111
def utterance_merge(*args):
112
return _EST_Utterance.utterance_merge(*args)
113
utterance_merge = _EST_Utterance.utterance_merge