Révision 3542

TXM/trunk/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/functions/Cooccurrence.java (revision 3542)
1367 1367
			boolean matchFound = false;
1368 1368
			for (int i = startsearchM2; i < m2.size(); i++) { // find n
1369 1369
				n = m2.get(i);
1370
				if (n.getTarget() == m.getStart()) {
1370
				//if (n.getTarget() == m.getStart()) {
1371
				if (n.getStart() <= m.getStart() && m.getEnd() <= n.getEnd()) {
1371 1372
					startsearchM2 = i;
1372 1373
					matchFound = true;
1373 1374
					break;
......
1379 1380
			for (int i = startsearchM3; i < m3.size(); i++) { // find next match m3 contained by m2
1380 1381

  
1381 1382
				o = m3.get(i);
1382
				if (o.getTarget() == m.getStart()) {
1383
				//if (o.getTarget() == m.getStart()) {
1384
				if (o.getStart() <= m.getStart() && m.getEnd() <= o.getEnd()) {
1383 1385
					startsearchM3 = i;
1384 1386
					matchFound = matchFound && true;
1385 1387
					break;
......
1399 1401
			// size++;
1400 1402
			// System.out.println("Process focus:"+m+" with maxcontext:"+n+" and anticontext:"+o);
1401 1403
			// System.out.println("NbOccs "+(size));
1402
			int[] positions = new int[size];
1404
			//int[] positions = new int[size];
1403 1405
			int noOcc = 0;
1404 1406

  
1405 1407
			// System.out.println("positions");

Formats disponibles : Unified diff