Révision 2081
tmp/org.txm.tigersearch.rcp/src/org/txm/searchengine/ts/TIGERQuery.java (revision 2081) | ||
---|---|---|
38 | 38 |
public boolean equals(Query q) { |
39 | 39 |
return this.getClass().equals(q.getClass()) && this.getQueryString().equals(q.getQueryString()); |
40 | 40 |
} |
41 |
|
|
42 |
public String toString() { |
|
43 |
return query; |
|
44 |
} |
|
41 | 45 |
} |
tmp/org.txm.tigersearch.rcp/src/org/txm/searchengine/ts/TIGERSearchEngine.java (revision 2081) | ||
---|---|---|
113 | 113 |
//System.out.println(" sent submatch size: "+sent_submatch); |
114 | 114 |
for (int isubmatch = 0 ; isubmatch < sent_submatch ; isubmatch++) { // the matches in the sentence |
115 | 115 |
int[] match = mresult.getSentenceSubmatchAt(sent, isubmatch); |
116 |
System.out.println(" matches="+Arrays.toString(match)); |
|
117 | 116 |
|
118 | 117 |
int sent_start = starts[sent]; |
119 |
// for (int inode : match) { |
|
120 |
// System.out.println(" m="+(sent_start+inode)); |
|
121 |
// } |
|
122 | 118 |
|
123 | 119 |
TIGERMatch tigerMatch = new TIGERMatch(sent_start+match[0], sent_start+match[match.length-1]); |
120 |
System.out.println(" start="+sent_start+" matches="+Arrays.toString(match)); |
|
124 | 121 |
System.out.println(" m="+(tigerMatch)); |
125 | 122 |
tigerMatchesList.add(tigerMatch); |
126 | 123 |
} |
tmp/org.txm.searchengine.core/src/org/txm/searchengine/core/Query.java (revision 2081) | ||
---|---|---|
33 | 33 |
public Query fixQuery(); |
34 | 34 |
|
35 | 35 |
public boolean equals(Query q); |
36 |
|
|
37 | 36 |
} |
Formats disponibles : Unified diff