Révision 3899

TXM/trunk/bundles/org.txm.annotation.kr.rcp/src/org/txm/annotation/kr/rcp/commands/SaveAnnotationsAndUpdateCorpus.java (revision 3899)
76 76
		}
77 77
		
78 78
		try {
79
			
80 79
			// System.out.println("DISPLAY="+Display.getDefault());
81 80
			final Boolean[] doit = new Boolean[1];
82 81
			doit[0] = true;
TXM/trunk/bundles/org.txm.annotation.kr.rcp/src/org/txm/annotation/kr/rcp/commands/ImportTable.java (revision 3899)
47 47
import org.txm.annotation.kr.core.KRAnnotationEngine;
48 48
import org.txm.annotation.kr.rcp.messages.Messages;
49 49
import org.txm.rcp.StatusLine;
50
import org.txm.rcp.messages.TXMUIMessages;
51 50
import org.txm.rcp.swt.dialog.LastOpened;
52 51
import org.txm.rcp.utils.JobHandler;
53 52
import org.txm.searchengine.cqp.corpus.MainCorpus;
TXM/trunk/bundles/org.txm.treetagger.rcp/src/org/txm/treetagger/rcp/preferences/TreeTaggerPreferencePage.java (revision 3899)
76 76
		this.addField(new FileFieldEditor(TreeTaggerPreferences.OPTIONS_LEX, "Read auxiliary lexicon entries from a file", runOptions));
77 77
		this.addField(new FileFieldEditor(TreeTaggerPreferences.OPTIONS_WC, "Read a word-class automaton from a file", runOptions));
78 78
		
79
		
80 79
		runOptions.setLayout(new GridLayout(3, false));
81 80
		
82 81
		// TREETAGGER TRAINING OPTIONS
TXM/trunk/bundles/org.txm.annotation.kr.core/src/org/txm/annotation/kr/core/messages/Messages.java (revision 3899)
35 35

  
36 36
	public static String ErrorCouldNotReplaceXMLTXMFileP0WithP1;
37 37

  
38
	public static String ErrorNoKnowledgeRepositoryFoundInP0Corpus;
39

  
40
	public static String ErrorNoKnowledgeRepositoryP0FoundInP1Corpus;
41

  
42 38
	public static String ErrorNPEForEndPositionOfAnnotationP0;
43 39

  
44 40
	public static String ErrorResultFileP0IsMalformed;
......
95 91
	public static String MoreErrorsSeeTheP0ErrorFile;
96 92
	public static String NoFileFoundInTheP0Directory;
97 93
	public static String SomeValuesDidNotMatchRule;
98
	public static String TestP0;
94
	public static String textP0;
99 95

  
100 96
	public static String TheP0CorpusDirectoryWasNotFoundInP1;
101 97
	public static String ThxTXMDirectoryWasNotFoundInP0;
TXM/trunk/bundles/org.txm.annotation.kr.core/src/org/txm/annotation/kr/core/messages/messages.properties (revision 3899)
5 5
MoreErrorsSeeTheP0ErrorFile=More errors, see the {0} errors file.
6 6
affectAnnotationCanceled=Affect annotation canceled.
7 7
failToClearTheAnnotationManagerInstanceP0=Fail to clear AnnotationManager instance with error\: {0}
8
TestP0=\  text\={0}
8
textP0=\  text\={0}
9 9
annotationSuccesfullyWritten=Pivot files updated.
10 10
ErrorWhileWritingAnnotationsOfTextP0=Error while writing annotations of the {0} text 
11 11
WritingAnnotationsXMLFilesInP0=Writing annotations XML files in {0}.
......
13 13
NoFileFoundInTheP0Directory=No file found in the {0} directory.
14 14
errorAnnotationFileHeaderFormatIsNotWekkfomattedP0ItShouldBeP1=Error\: annotation file header format is not well-formatted. Found {0} and should be {1}.
15 15
savingP0Annotations=Saving {0} annotations...
16
ErrorNoKnowledgeRepositoryP0FoundInP1Corpus=** Error\: no knowledge repository {0} found in {1} corpus.
16
errorNoKRP0FoundInP1Corpus=** Error\: no knowledge repository {0} found in {1} corpus.
17 17
ErrorCouldNotCreateDirectoryP0=ERROR\: could not create directory\: {0}.
18 18
noAnnotationToSaveAborting=No annotation to save. Aborting.
19 19
errorNoAnnotationLineFound=Error\: no annotation line found
......
24 24
SomeValuesDidNotMatchRule=Some values did not match rule\: 
25 25
ErrorWithCurrentWriterP0=Error with current writer\: {0}.
26 26
writingAnnotationsInXMLTXMFiles=Writing annotations in XML-TXM files
27
errorNoKRP0FoundInP1Corpus=** Error\: no knowledge repository {0} found in {1} corpus.
28 27
savingAnnotations=Saving annotations.
29 28
ErrorCouldNotReplaceXMLTXMFileP0WithP1=Error\: could not replace XML-TXM file\: {0} with {1}
30 29
ErrorWhileProcessingP0InTempDir=Error\: while processing {0} in temp dir
31 30
AnnotationsSavedInP0=Annotations saved in ''{0}''.
32 31
ErrorResultFileP0IsMalformed=Error\: result file {0} is malformed.
33 32
warningNoAnnotationsToExportAborting=Warning\: no annotations to export. Aborting.
34
errorNoKRFoundInP0Corpus=** Error\: no knowledge repository found in {0} corpus.
35
ErrorNoKnowledgeRepositoryFoundInP0Corpus=** Error\: no knowledge repository found in {0} corpus.
33
errorNoKRFoundInP0Corpus=                 ** Error\: no knowledge repository found in {0} corpus.
36 34
ConversionRulesP0=Conversion rules\: {0}.
37 35
errorCannotCloseTheP0AMP1=Error\: cannot close the {0} AM \: {1}.
38 36
ErrorWhileWritingAnnotationsOfTextInP0=Error while writing annotations of text in {0}.
TXM/trunk/bundles/org.txm.annotation.kr.core/src/org/txm/annotation/kr/core/AnnotationManager.java (revision 3899)
522 522
		KnowledgeRepository defaultKR = KRAnnotationEngine.getKnowledgeRepository(corpus, firtsKRName);
523 523
		if (defaultKR == null) {
524 524
			Log.severe(NLS.bind(Messages.errorNoKRP0FoundInP1Corpus, defaultKR, corpus));
525
			throw new IllegalArgumentException("No kr " + defaultKR + " in " + corpus); //$NON-NLS-1$ //$NON-NLS-2$
525
			throw new IllegalArgumentException("No KR " + defaultKR + " in " + corpus); //$NON-NLS-1$ //$NON-NLS-2$
526 526
		}
527 527
		
528 528
		CsvReader reader = new CsvReader(annotationsFile.getAbsolutePath(), colseparator.charAt(0), Charset.forName(encoding));
TXM/trunk/bundles/org.txm.annotation.kr.core/src/org/txm/annotation/kr/core/AnnotationWriter.java (revision 3899)
45 45
		this.corpus = corpus;
46 46
		List<String> krnames = KRAnnotationEngine.getKnowledgeRepositoryNames(corpus);
47 47
		if (krnames.size() == 0) {
48
			Log.severe(NLS.bind(Messages.ErrorNoKnowledgeRepositoryFoundInP0Corpus, corpus));
48
			Log.severe(NLS.bind(Messages.errorNoKRFoundInP0Corpus, corpus));
49 49
			throw new IllegalArgumentException("No kr in " + corpus); //$NON-NLS-1$
50 50
		}
51 51
		String firtsKRName = krnames.get(0);
52 52
		defaultKR = KRAnnotationEngine.getKnowledgeRepository(corpus, firtsKRName);
53 53
		if (defaultKR == null) {
54
			Log.severe(NLS.bind(Messages.ErrorNoKnowledgeRepositoryP0FoundInP1Corpus, defaultKR, corpus));
54
			Log.severe(NLS.bind(Messages.errorNoKRP0FoundInP1Corpus, defaultKR, corpus));
55 55
			throw new IllegalArgumentException("No kr " + defaultKR + " in " + corpus); //$NON-NLS-1$ //$NON-NLS-2$
56 56
		}
57 57
		
......
79 79
	 */
80 80
	protected boolean writeTextAnnotationToSyMoGIH(String textid, File currentXMLFile, File currentXMLStandoffFile, File xmlStandOffDirectory) throws IOException, CqiServerError, CqiClientException, InvalidCqpIdException, XMLStreamException {
81 81
		
82
		Log.info(NLS.bind(Messages.TestP0, textid));
82
		Log.info(NLS.bind(Messages.textP0, textid));
83 83
		boolean show_debug = Log.getLevel().intValue() < Level.INFO.intValue();
84 84
		
85 85
		AnnotationSyMoGIHWriter annotationstdoff = new AnnotationSyMoGIHWriter(textid, currentXMLFile, xmlStandOffDirectory, types, show_debug);

Formats disponibles : Unified diff