Révision 1098
tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/GroovyScriptedImportEngine.java (revision 1098) | ||
---|---|---|
41 | 41 |
Engine e = Toolbox.getEngineManager(EngineType.ANNOTATION).getEngine("TreeTagger"); |
42 | 42 |
if (e == null) { |
43 | 43 |
System.out.println("Error: no TreeTagger annotation engine found to annotate the corpus. Aborting"); |
44 |
return null;
|
|
44 |
return Status.CANCEL_STATUS;
|
|
45 | 45 |
} |
46 | 46 |
AnnotationEngine engine = (AnnotationEngine) e; |
47 | 47 |
if (!engine.isRunning()) { |
48 | 48 |
System.out.println("Error: TreeTagger annotation engine is not ready please check TXM > Advance > TAL > TreeTagger preferences. Aborting"); |
49 |
return null;
|
|
49 |
return Status.CANCEL_STATUS;
|
|
50 | 50 |
} |
51 | 51 |
} |
52 | 52 |
|
Formats disponibles : Unified diff