public UserDictionary( InputStream input, int totalFeatures, int readingFeature, int partOfSpeechFeature) throws IOException { this.totalFeatures = totalFeatures; this.readingFeature = readingFeature; this.partOfSpeechFeature = partOfSpeechFeature; read(input); }
/** * 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; }