IEntity ITextFactory.CreateEntity(ISentence sentence, Span span) { var s = sentence as Sentence; if (s != null) { return(CreateEntity(s, span)); } throw new NotSupportedException("The sentence type " + sentence.GetType().Name + " is not supported."); }
IToken ITextFactory.CreateToken(ISentence sentence, Span span, string lexeme) { if (sentence == null) { throw new ArgumentNullException(nameof(sentence)); } if (span == null) { throw new ArgumentNullException(nameof(span)); } var s = sentence as Sentence; if (s != null) { return(CreateToken(s, span, lexeme)); } throw new NotSupportedException("The sentence type " + sentence.GetType().Name + " is not supported."); }
IToken ITextFactory.CreateToken(ISentence sentence, Span span, string lexeme) { if (sentence == null) throw new ArgumentNullException("sentence"); if (span == null) throw new ArgumentNullException("span"); var s = sentence as Sentence; if (s != null) return CreateToken(s, span, lexeme); throw new NotSupportedException("The sentence type " + sentence.GetType().Name + " is not supported."); }
IEntity ITextFactory.CreateEntity(ISentence sentence, Span span) { var s = sentence as Sentence; if (s != null) return CreateEntity(s, span); throw new NotSupportedException("The sentence type " + sentence.GetType().Name + " is not supported."); }