Changeset 1619 for branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java
- Timestamp:
- 07/20/14 20:43:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java
r1618 r1619 164 164 Console.traceln(Level.INFO,"retrieving significant sequence pieces"); 165 165 for (int i=0; i< numberseqs.size();i++) { 166 Console.traceln(Level.FINEST,"retrieving significant sequence pieces: " + Math.round((float)i/(float)numberseqs.size()*100) + "%"); 166 167 for(int j=0; j< numberseqs.size();j++) { 167 168 if(i != j) { … … 171 172 } 172 173 } 174 Console.traceln(Level.FINEST,"retrieving significant sequence pieces: 100%"); 173 175 174 176 Console.traceln(Level.INFO, "searching for patterns occuring most"); 177 175 178 //search this match in every other sequence 176 179 for(int i=0; i < matchseqs.size();i++) { 180 int occurencecount = 0; 181 Console.traceln(Level.FINEST, "searching for patterns occuring most: " + Math.round((float)i/(float)matchseqs.size()*100) + "%"); 177 182 for(int j=0; j < matchseqs.size();j++) { 178 183 if(i>j) { 179 184 if(matchseqs.get(j).get(0).containsPattern(matchseqs.get(i)) > 0 || matchseqs.get(j).get(1).containsPattern(matchseqs.get(i)) > 0) { 180 System.out.println("Found something!");185 occurencecount++; 181 186 } 182 187 } 183 188 } 184 189 if(occurencecount > 1) { 190 System.out.println("Found pattern \n "); 191 matchseqs.get(i).get(0).printSequence(); 192 matchseqs.get(i).get(1).printSequence(); 193 System.out.println(occurencecount + " times"); 194 System.out.println(); 195 } 185 196 } 186 197
Note: See TracChangeset
for help on using the changeset viewer.