Example #1
0
 protected void fillNominalData(NominalData data) {
   for (LObject<String> gold : goldObjects) {
     data.addObject(gold);
   }
   for (AssignedLabel<String> assign : assigns) {
     data.addAssign(assign);
   }
 }
Example #2
0
 @Test
 public void testIncrementalMV() {
   IncrementalMV mv = new IncrementalMV();
   NominalProject np = new NominalProject(mv);
   np.initializeCategories(categories, null, null);
   NominalData nd = np.getData();
   Results<String, DatumResult, WorkerResult> results = np.getResults();
   mv.setData(nd);
   mv.setResults(results);
   nd.addNewUpdatableAlgorithm(mv);
   fillNominalData(nd);
   testMVResults(results);
 }