/// <inheritdoc/> protected override bool equals(FeatureBase featureBase) { var uF = featureBase as SimpleFeature; if (uF == null) { return(false); } return(_utterance.Equals(uF._utterance)); }
/// <inheritdoc/> protected override bool equals(FeatureBase featureBase) { var o = featureBase as NodeFeature; if (o == null) { return(false); } return(Index == o.Index); }
/// <inheritdoc/> protected override bool equals(FeatureBase featureBase) { var uF = featureBase as UnigramFeature; if (uF == null) { return(false); } return(Word.Equals(uF.Word)); }
internal FeatureInstance(ParsedUtterance origin, FeatureBase feature, params int[] coveredPositions) { Origin = origin; Feature = feature; CoveredPositions = coveredPositions.ToArray(); }
abstract protected bool equals(FeatureBase featureBase);