Revision 3051 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/tmx/tmxLoader.groovy

tmxLoader.groovy (revision 3051)
88 88
if (annotate) {
89 89
	println "-- ANNOTATE - Running NLP tools"
90 90
	def engine = Toolbox.getEngineManager(EngineType.ANNOTATION).getEngine("TreeTagger")
91
	if (engine.processDirectory(txmDir, binDir, ["lang":model])) {
91
	def mapForTreeTagger = [:]
92
	for (def k : textLangs.keySet()) mapForTreeTagger[k] = textLangs[k].toLowerCase();
93
		println "TreeTagger models to use per text: $mapForTreeTagger"
94
	if (engine.processDirectory(txmDir, binDir, ["langs":mapForTreeTagger])) {
92 95
		annotationSuccess = true;
93 96
		if (project.getCleanAfterBuild()) {
94 97
			new File(binDir, "treetagger").deleteDir()
......
97 100
		}
98 101
	}
99 102
}
100
println "langs : "+textLangs
101
println "texts : "+langGroups
103
//println "langs : "+textLangs
104
//println "texts : "+langGroups
102 105

  
103 106
println "-- COMPILING - Building Search Engine indexes"
104 107
if (MONITOR != null && MONITOR.isCanceled()) { return MONITOR.done(); }

Also available in: Unified diff