[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems creating new environment class
Hello,
I am in the process of writing a new environment class (to enable PDP++ to
directly generate events in the field of speech recognition from feature and
label files), but I stumbled across some weird problems:
I used the FromFileEnv as a starting point for writing my own HTKEnv, then
started modifying it. Here is the (preliminary) class definition:
class HTKEnv : public Environment
{
public:
taFile mlfFile;
taFile featureListFile;
taFile entitiesFile;
int transLev;
virtual void ReadEvent(Event *ev);
// void UpdateAfterEdit();
void Initialize();
void InitEvents();
void InitLinks();
void Copy_(const HTKEnv& cp);
COPY_FUNS(HTKEnv, Environment);
TA_BASEFUNS(HTKEnv);
private:
HTime currentPos;
HTime maxPos;
int currentFileIndex;
int maxFileIndex;
String_Array featureFiles;
String_Array targetNames;
};
Now, I'm not quite sure what the InitLinks() method is good for; anyhow, it
does get called when creating a FromFileEnv, but not when creating an HTKEnv.
Why is this happening?
Also, is UpdateAfterEdit the method which gets called when I press the "Apply"
button in the Env's Edit Dialog?
Sorry for so many questions, but the project is rather large and not so easy
to understand.
TIA,
--
Martin Schafföner
Cognitive Systems Group, Institute of Electronics, Signal Processing and
Communication Technologies, Department of Electrical Engineering,
Otto-von-Guericke University Magdeburg
Phone: +49 391 6720063