Пример #1
0
        public override bool IsCompatibleWith(IEarleyInput input)
        {
            var typedInput = (LexicalItem)input;

            return(typedInput.PartOfSpeech == this.ParentNode.Name);

            //IEnumerable<string> possibleWordsForCategory = null;

            //return items.TryGetValue(this.ParentNode.Name, out possibleWordsForCategory)
            //       && possibleWordsForCategory.Contains(typedInput.Word);
        }
Пример #2
0
 public bool IsCompatibleWith(IEarleyInput input)
 {
     return(this.Node.IsCompatibleWith(input));
 }
Пример #3
0
 public bool IsCompatibleWith(IEarleyInput input)
 {
     return(this.Data.Equals(((RegularEarleyInput)input).Data));
 }
Пример #4
0
 public virtual bool IsCompatibleWith(IEarleyInput input)
 {
     return(false);
 }