~ubuntu-branches/ubuntu/maverick/speech-tools/maverick

« back to all changes in this revision

Viewing changes to wrappers/python/EST_Utterance.py

  • Committer: Bazaar Package Importer
  • Author(s): Kumar Appaiah, Kartik Mistry, Kumar Appaiah
  • Date: 2010-07-17 11:32:04 UTC
  • mfrom: (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100717113204-mnse3jo236j107q8
Tags: 1:2.0.95~beta-1
[ Kartik Mistry ]
* debian/control:
  + [Lintian] Added missing ${misc:Depends}
  + Updated Standards-Version to 3.8.4 (no changes needed)
* debian/patches/const_char.diff:
  + Added missing patch header
* Removed unused patch invalid_const_char_conversion_fixes.diff

[ Kumar Appaiah ]
* New upstream release.
* Standards Version is now 3.9.0 (No changes needed)
* Update debian/rules to specify version numbers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file was automatically generated by SWIG (http://www.swig.org).
 
2
# Version 1.3.40
 
3
#
 
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.
 
7
 
 
8
from sys import version_info
 
9
if version_info >= (2,6,0):
 
10
    def swig_import_helper():
 
11
        from os.path import dirname
 
12
        import imp
 
13
        fp = None
 
14
        try:
 
15
            fp, pathname, description = imp.find_module('_EST_Utterance', [dirname(__file__)])
 
16
        except ImportError:
 
17
            import _EST_Utterance
 
18
            return _EST_Utterance
 
19
        if fp is not None:
 
20
            try:
 
21
                _mod = imp.load_module('_EST_Utterance', fp, pathname, description)
 
22
            finally:
 
23
                fp.close()
 
24
            return _mod
 
25
    _EST_Utterance = swig_import_helper()
 
26
    del swig_import_helper
 
27
else:
 
28
    import _EST_Utterance
 
29
del version_info
 
30
try:
 
31
    _swig_property = property
 
32
except NameError:
 
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)
 
36
    if (name == "this"):
 
37
        if type(value).__name__ == 'SwigPyObject':
 
38
            self.__dict__[name] = value
 
39
            return
 
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
 
44
    else:
 
45
        raise AttributeError("You cannot add attributes to %s" % self)
 
46
 
 
47
def _swig_setattr(self,class_type,name,value):
 
48
    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
49
 
 
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)
 
55
 
 
56
def _swig_repr(self):
 
57
    try: strthis = "proxy of " + self.this.__repr__()
 
58
    except: strthis = ""
 
59
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
60
 
 
61
try:
 
62
    _object = object
 
63
    _newclass = 1
 
64
except AttributeError:
 
65
    class _object : pass
 
66
    _newclass = 0
 
67
 
 
68
 
 
69
import EST_Item
 
70
import EST_Relation
 
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)
 
76
    __repr__ = _swig_repr
 
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)
 
100
 
 
101
 
 
102
def sub_utterance(*args):
 
103
  return _EST_Utterance.sub_utterance(*args)
 
104
sub_utterance = _EST_Utterance.sub_utterance
 
105
 
 
106
def get_utt(*args):
 
107
  return _EST_Utterance.get_utt(*args)
 
108
get_utt = _EST_Utterance.get_utt
 
109
 
 
110
 
 
111
def utterance_merge(*args):
 
112
  return _EST_Utterance.utterance_merge(*args)
 
113
utterance_merge = _EST_Utterance.utterance_merge
 
114