ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1633179 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/THYMEData.java
Date Mon, 20 Oct 2014 15:58:21 GMT
Author: clin
Date: Mon Oct 20 15:58:20 2014
New Revision: 1633179

URL: http://svn.apache.org/r1633179
Log:
reserve residue 6 and 7. Re-split the thyme data:
0,1,2 for train
3 for dev
4 and 5 for test

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/THYMEData.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/THYMEData.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/THYMEData.java?rev=1633179&r1=1633178&r2=1633179&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/THYMEData.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/THYMEData.java
Mon Oct 20 15:58:20 2014
@@ -30,12 +30,12 @@ import com.google.common.collect.Sets;
 public class THYMEData {
   public static final Set<String> SEGMENTS_TO_SKIP = Sets.newHashSet("20104", "20105",
"20116", "20138");
 
-  public static final Set<Integer> TRAIN_REMAINDERS = Sets.newHashSet(0, 1, 2, 3);
-  public static final Set<Integer> DEV_REMAINDERS = Sets.newHashSet(4, 5);
-  public static final Set<Integer> TEST_REMAINDERS = Sets.newHashSet(6, 7);
+  public static final Set<Integer> TRAIN_REMAINDERS = Sets.newHashSet(0, 1, 2);//,
3);
+  public static final Set<Integer> DEV_REMAINDERS = Sets.newHashSet(3);//(4, 5);
+  public static final Set<Integer> TEST_REMAINDERS = Sets.newHashSet(4, 5);//(6, 7);
//6 and 7 were reserved.
 
   public static List<Integer> getPatientSets(List<Integer> patientSets, Collection<Integer>
remainders) {
-    List<Integer> items = new ArrayList<Integer>();
+    List<Integer> items = new ArrayList<>();
     for (Integer i : patientSets) {
       int remainder = i % 8;
       if (remainders.contains(remainder)) {
@@ -70,7 +70,7 @@ public class THYMEData {
 	  if ( !rawTextDirectory.exists() ) {
 		  return Collections.emptyList();
 	  }
-	  List<File> files = new ArrayList<File>();
+	  List<File> files = new ArrayList<>();
 	  for (Integer set : patientSets) {
 		  final int setNum = set;
 		  for (File file : rawTextDirectory.listFiles(new FilenameFilter(){



Mime
View raw message