Revision 1868

tmp/org.txm.treetagger.core/src/org/txm/treetagger/core/TreeTaggerEngine.java (revision 1868)
126 126
		}
127 127
		File modelsDirectory = new File(TreeTaggerPreferences.getInstance().getString(TreeTaggerPreferences.MODELS_PATH)); // default models directory is set in the Toolbox
128 128
		File modelfile = new File(modelsDirectory, lang+".par");
129
		if (!modelfile.exists()) {
129
		if (!"??".equals(lang) && !modelfile.exists()) {
130 130
			System.out.println(NLS.bind("** Error: no {0} model file found for the {1} lang.", modelfile, lang));
131 131
			return false;
132 132
		}
tmp/org.txm.treetagger.core/src/org/txm/importer/xmltxm/Annotate.groovy (revision 1868)
544 544
	public boolean run(File f, String lang, File binDir, File txmDir, boolean replace, String[] properties, String[] options, File annotDir, File ptreetaggerDir, File treetaggerDir) {
545 545

  
546 546
		File modelfile = new File(modelsDirectory, lang+".par");
547
		if (!modelfile.exists()) {
547
		if (!"??".equals(lang) && !modelfile.exists()) {
548 548
			println "Error: No Modelfile available for lang "+modelfile+". Continue import process ";
549 549
			return false;
550 550
		}
......
557 557
		def builder = new BuildTTSrc(f.toURL());
558 558
		builder.process(ttsrcfile, null);
559 559

  
560
		String tmpModelFileName = modelfile.getName()
561
		if (tmpModelFileName.startsWith("??")) {
562
			if (f.length() > LangDetector.MINIMALSIZE) {
563
				String dlang = new LangDetector(f).getLang();
564
				//println "$f detected lang is $dlang"
565
				tmpModelFileName = dlang+".par"
566
			}
567
		}
568
		modelfile = new File(modelsDirectory, tmpModelFileName);
569
		
560 570
		//Apply TT
561 571
		applyTT(ttsrcfile, ttrezfile, modelfile, options);
562 572

  
tmp/org.txm.concordance.core/src/org/txm/concordance/core/functions/Concordance.java (revision 1868)
647 647
					targetPositions.add(match.getTarget());
648 648

  
649 649
					// check if the end of keyword pass a text limit
650
					// TODO: Can a keyword be over 2 texts ??
651 650
					currentKeywordPos = match.getEnd();
652 651

  
653 652
					if (CQLLimitStarts != null)
tmp/org.txm.annotation.core/src/org/txm/annotation/core/AnnotationEngine.java (revision 1868)
52 52
		boolean ret = true;
53 53
		ConsoleProgressBar cpb = new ConsoleProgressBar(files.length);
54 54
		for (File xmlFile : files) {
55
			ret = ret && processFile(xmlFile, binaryCorpusDirectory, parameters);
55
			ret = processFile(xmlFile, binaryCorpusDirectory, parameters) && ret;
56 56
			cpb.tick();
57 57
		}
58 58
		cpb.done();
tmp/org.txm.core/src/java/org/txm/functions/CommandsAPI.java (revision 1868)
110 110
		return result;
111 111
	}
112 112
	
113
	// portail : ???
113
	// portail : ?
114 114
	// groovy : CommandsApi.call("Concordances", ["query":"Je|je]");
115 115
	// bash-like : compute Concordances query:"Je|je"
116 116
}

Also available in: Unified diff