コード例 #1
0
ファイル: UserDictionary.java プロジェクト: atilika/kuromoji
 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
ファイル: Tokenizer.java プロジェクト: jacobiz/kuromoji
 /**
  * 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;
 }