Beispiel #1
0
 Tagger *createTagger(const char *argv) {
   TaggerImpl *tagger = new TaggerImpl();
   if (!tagger->open(argv)) {
     errorStr = tagger->what();
     delete tagger;
     return 0;
   }
   return tagger;
 }
Beispiel #2
0
Tagger *createTagger(const char *argv) {
    TaggerImpl *tagger = new TaggerImpl();
    if (!tagger->open(argv)) {
        setGlobalError(tagger->what());
        delete tagger;
        return 0;
    }
    return tagger;
}