Révision 3249

tmp/org.txm.annotation.kr.core/src/org/txm/annotation/kr/core/AnnotationSyMoGIHWriter.java (revision 3249)
140 140
		 */
141 141
		boolean foundAnnot = false;
142 142
		
143
		
144 143
		if (types.contains(localname) && parser.getPrefix().equals("txm")) { // don't write txm annotation elements
145 144
			// System.out.println(" START "+ localname);
146 145
			foundAnnot = true;
......
291 290
		// System.out.println("writeStartAnnotationToStandoffFile ...");
292 291
		try {
293 292
			currentWriter.writeStartElement("span");
294
			currentWriter.writeAttribute("type", "named_entities_identifications");
293
			currentWriter.writeAttribute("type", data[2]);
295 294
			currentWriter.writeAttribute("ana", data[1]);
296 295
			StringBuffer listWids = new StringBuffer();
297 296
			for (String posW : positions) {
298 297
				listWids.append("#" + posW + " ");
299 298
			}
300 299
			currentWriter.writeAttribute("target", listWids.toString().trim());
301
			currentWriter.writeComment("type=" + data[2]);
302 300
			currentWriter.writeEndElement(); // span
303 301
			currentWriter.writeCharacters("\n");
304
			
305 302
		}
306 303
		catch (XMLStreamException e) {
307 304
			// TODO Auto-generated catch block

Formats disponibles : Unified diff