Revision 2769 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/export/conll2009/ToCoNLL2009.groovy

ToCoNLL2009.groovy (revision 2769)
31 31
		def matches = corpus.query(new CQLQuery("<s> []+ </s>"), "TMPEXPORTCONNL", false).getMatches()
32 32
		if (debug) println matches.size()
33 33
		int npositions = 0;
34
		for (def match : matches) npositions += match.length +1
34
		for (def match : matches) npositions += match.size() +1
35 35
		if (debug) println "npositions= $npositions"
36 36

  
37 37
		int[] positions = new int[npositions+1]

Also available in: Unified diff