/// <summary> /// Initializes a new instance of the <see cref="POSSequenceValidator"/> with the specified dictionary and a unknown word list. /// </summary> /// <param name="tagDictionary">The tag dictionary.</param> /// <param name="bosque">set true if the data is from BOSQUE file.</param> /// <param name="unknownList"> /// The unknown list. If specified the validator will include the unknown words to this list. /// </param> /// <exception cref="System.ArgumentNullException">tagDictionary</exception> public POSSequenceValidator(ITagDictionary tagDictionary, bool bosque, IList <string> unknownList) { if (tagDictionary == null) { throw new ArgumentNullException("tagDictionary"); } this.bosque = bosque; this.tagDictionary = tagDictionary; this.unknownList = unknownList; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultPOSSequenceValidator"/> class. /// </summary> /// <param name="dictionary">The dictionary.</param> public DefaultPOSSequenceValidator(ITagDictionary dictionary) { this.dictionary = dictionary; }
protected void Init(Dictionary.Dictionary ngramDic, ITagDictionary posDic) { dictionary = ngramDic; tagDictionary = posDic; }
internal ITagDictionary CreateEmptyTagDictionary() { tagDictionary = new POSDictionary(true); return(tagDictionary); }
internal ITagDictionary CreateEmptyTagDictionary() { tagDictionary = new POSDictionary(true); return tagDictionary; }
/// <summary> /// Initializes a new instance of the <see cref="POSSequenceValidator"/> with its respective tag dictionary. /// </summary> /// <param name="tagDictionary">The tag dictionary.</param> /// <param name="bosque">set true if the data is from BOSQUE file.</param> public POSSequenceValidator(ITagDictionary tagDictionary, bool bosque) : this(tagDictionary, bosque, null) { }