/** * Read in phrases from a file (assumed to be tab delimited) * @param filename - Name of file * @param checkTag - Indicates if there is a tag column (assumed to be 2nd column) * If false, treats entire line as the phrase * @throws IOException */ public void readPhrases(String filename, boolean checkTag) throws IOException { readPhrases(filename, checkTag, tabPattern); }
/** * Read in phrases from a file. Column delimiters are matched using regex * @param filename - Name of file * @param checkTag - Indicates if there is a tag column (assumed to be 2nd column) * If false, treats entire line as the phrase * @param delimiterRegex - Regex for identifying column delimiter * @throws IOException */ public void readPhrases(String filename, boolean checkTag, String delimiterRegex) throws IOException { readPhrases(filename, checkTag, Pattern.compile(delimiterRegex)); }
/** * Read in phrases from a file (assumed to be tab delimited) * @param filename - Name of file * @param checkTag - Indicates if there is a tag column (assumed to be 2nd column) * If false, treats entire line as the phrase * @throws IOException */ public void readPhrases(String filename, boolean checkTag) throws IOException { readPhrases(filename, checkTag, tabPattern); }
/** * Read in phrases from a file (assumed to be tab delimited) * @param filename - Name of file * @param checkTag - Indicates if there is a tag column (assumed to be 2nd column) * If false, treats entire line as the phrase * @throws IOException */ public void readPhrases(String filename, boolean checkTag) throws IOException { readPhrases(filename, checkTag, tabPattern); }
/** * Read in phrases from a file (assumed to be tab delimited) * @param filename - Name of file * @param checkTag - Indicates if there is a tag column (assumed to be 2nd column) * If false, treats entire line as the phrase * @throws IOException */ public void readPhrases(String filename, boolean checkTag) throws IOException { readPhrases(filename, checkTag, tabPattern); }
/** * Read in phrases from a file. Column delimiters are matched using regex * @param filename - Name of file * @param checkTag - Indicates if there is a tag column (assumed to be 2nd column) * If false, treats entire line as the phrase * @param delimiterRegex - Regex for identifying column delimiter * @throws IOException */ public void readPhrases(String filename, boolean checkTag, String delimiterRegex) throws IOException { readPhrases(filename, checkTag, Pattern.compile(delimiterRegex)); }
/** * Read in phrases from a file. Column delimiters are matched using regex * @param filename - Name of file * @param checkTag - Indicates if there is a tag column (assumed to be 2nd column) * If false, treats entire line as the phrase * @param delimiterRegex - Regex for identifying column delimiter * @throws IOException */ public void readPhrases(String filename, boolean checkTag, String delimiterRegex) throws IOException { readPhrases(filename, checkTag, Pattern.compile(delimiterRegex)); }
/** * Read in phrases from a file. Column delimiters are matched using regex * @param filename - Name of file * @param checkTag - Indicates if there is a tag column (assumed to be 2nd column) * If false, treats entire line as the phrase * @param delimiterRegex - Regex for identifying column delimiter * @throws IOException */ public void readPhrases(String filename, boolean checkTag, String delimiterRegex) throws IOException { readPhrases(filename, checkTag, Pattern.compile(delimiterRegex)); }