Commit 87d4a58d authored by Markus Krug's avatar Markus Krug
Browse files

Merge branch 'dev_mk' into 'master'

update



See merge request !3
parents f145d091 78b022b4
......@@ -38,7 +38,8 @@ public class InListFeatureGenerator extends AFeatureGenerator {
public String[] generateFeatures(AnnotationFS token) {
if(listEntries.contains(token.getCoveredText())){
return new String[]{super.featureIdentifier+"=IN_LIST" };
String id = token.getCoveredText().substring(0,Math.min(2, token.getCoveredText().length()));
return new String[]{super.featureIdentifier+id+"=IN_LIST" };
}
return new String[]{super.featureIdentifier+"=NOT_IN_LIST" };
}
......
......@@ -261,6 +261,7 @@ public class BinaryRepresentationRuleLearningAlgorithm implements IRepresentatio
maxEntryLocation.getLocation(), mappings,instances, indexMap, beamSize);
System.out.println("Map:"+(System.currentTimeMillis() - time));
mappings.add(mappingForMaximum);
System.out.println(System.currentTimeMillis()-time);
time = System.currentTimeMillis();
// assert that the maximum is within bounds
......@@ -397,4 +398,4 @@ public class BinaryRepresentationRuleLearningAlgorithm implements IRepresentatio
this.otherLabel = otherLabel;
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment