Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 protected void Init(Dictionary.Dictionary ngramDic, ITagDictionary posDic)
 {
     dictionary    = ngramDic;
     tagDictionary = posDic;
 }
Exemplo n.º 4
0
 internal ITagDictionary CreateEmptyTagDictionary()
 {
     tagDictionary = new POSDictionary(true);
     return(tagDictionary);
 }
Exemplo n.º 5
0
 protected void Init(Dictionary.Dictionary ngramDic, ITagDictionary posDic) {
     dictionary = ngramDic;
     tagDictionary = posDic;
 }
Exemplo n.º 6
0
 internal ITagDictionary CreateEmptyTagDictionary() {
     tagDictionary = new POSDictionary(true);
     return tagDictionary;
 }
Exemplo n.º 7
0
 /// <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)
 {
 }