net.java.sen.compiler
Class IpadicPreprocessor

java.lang.Object
  extended by net.java.sen.compiler.IpadicPreprocessor

public class IpadicPreprocessor
extends Object

Preprocesses an unpacked Ipadic dictionary into the CSV form used for compilation


Constructor Summary
IpadicPreprocessor(String charset, String inputDirectory)
          Creates a new preprocessor for the unpacked dictionary in the given directory
 
Method Summary
 void build(String outputDirectory)
          Preprocesses the dictionary
 void buildConnectionCSV(String outputFilename)
          Builds a connection CSV file from an unpacked ipadic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpadicPreprocessor

public IpadicPreprocessor(String charset,
                          String inputDirectory)
Creates a new preprocessor for the unpacked dictionary in the given directory

Parameters:
charset - The charset used to read the dictionary
inputDirectory - The directory of the unpacked dictionary
Method Detail

buildConnectionCSV

public void buildConnectionCSV(String outputFilename)
                        throws UnsupportedEncodingException,
                               FileNotFoundException,
                               IOException
Builds a connection CSV file from an unpacked ipadic

Parameters:
outputFilename - The output filename for the connection CSV file
Throws:
UnsupportedEncodingException
FileNotFoundException
IOException

build

public void build(String outputDirectory)
           throws IOException
Preprocesses the dictionary

Parameters:
outputDirectory - The directory to write the preprocessed dictionary to
Throws:
IOException


Copyright © 2012. All Rights Reserved.