Beispiel #1
0
        /// <inheritdoc/>
        protected override bool equals(FeatureBase featureBase)
        {
            var uF = featureBase as SimpleFeature;

            if (uF == null)
            {
                return(false);
            }

            return(_utterance.Equals(uF._utterance));
        }
Beispiel #2
0
        /// <inheritdoc/>
        protected override bool equals(FeatureBase featureBase)
        {
            var o = featureBase as NodeFeature;

            if (o == null)
            {
                return(false);
            }

            return(Index == o.Index);
        }
Beispiel #3
0
        /// <inheritdoc/>
        protected override bool equals(FeatureBase featureBase)
        {
            var uF = featureBase as UnigramFeature;

            if (uF == null)
            {
                return(false);
            }

            return(Word.Equals(uF.Word));
        }
Beispiel #4
0
 internal FeatureInstance(ParsedUtterance origin, FeatureBase feature, params int[] coveredPositions)
 {
     Origin           = origin;
     Feature          = feature;
     CoveredPositions = coveredPositions.ToArray();
 }
Beispiel #5
0
 abstract protected bool equals(FeatureBase featureBase);