Пример #1
0
 public UserDictionary(
     InputStream input, int totalFeatures, int readingFeature, int partOfSpeechFeature)
     throws IOException {
   this.totalFeatures = totalFeatures;
   this.readingFeature = readingFeature;
   this.partOfSpeechFeature = partOfSpeechFeature;
   read(input);
 }
Пример #2
0
 /**
  * Set user dictionary input stream
  *
  * @param userDictionaryInputStream dictionary file as input stream
  * @return Builder
  * @throws java.io.IOException
  */
 public synchronized Builder userDictionary(InputStream userDictionaryInputStream)
     throws IOException {
   this.userDictionary = UserDictionary.read(userDictionaryInputStream);
   return this;
 }