"""Raise a RuntimeError if the database backend is not available"""
ifnotself.is_valid():
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(INFO.name(),SQLITE_FILE)
def__group_replace_alias__(self,l):
"""Replace 'dev' by 'g1' and 'eval' by 'g2' in a list of groups, and
returns the new list"""
...
...
@@ -60,6 +66,18 @@ class Database(object):
raiseRuntimeError,'Invalid %s "%s". Valid values are %s, or lists/tuples of those'%(obj,k,valid)
returnl
defgroups(self):
"""Returns the names of all registered groups"""
returnProtocolPurpose.group_choices
defclient_groups(self):
"""Returns the names of the XM2VTS groups. This is specific to this database which
does not have separate training, development and evaluation sets."""