コード例 #1
0
 public static TrainingStatistics undefined() {
   return new TrainingStatistics(Maybe.<Map<SentenceKey, EnsembleStatistics>>Nothing());
 }
コード例 #2
0
 public SentenceStatistics(Counter<String> relationDistribution) {
   this.confidence = Maybe.Nothing();
   this.relationDistribution = relationDistribution;
 }
コード例 #3
0
 public Maybe<Set<SentenceKey>> getSentenceKeys() {
   if (!impl.isDefined()) return Maybe.Nothing();
   return Maybe.Just(impl.get().keySet());
 }