/** * Read in phrases where there is each pattern has a score of being associated with a certain tag. * The file format is assumed to be * phrase\ttag1 count\ttag2 count... * where the phrases and tags are delimited by tabs, and each tag and count is delimited by whitespaces * @param filename * @throws IOException */ public void readPhrasesWithTagScores(String filename) throws IOException { readPhrasesWithTagScores(filename, tabPattern, whitespacePattern); }
public void readPhrasesWithTagScores(String filename, String fieldDelimiterRegex, String countDelimiterRegex) throws IOException { readPhrasesWithTagScores(filename, Pattern.compile(fieldDelimiterRegex), Pattern.compile(countDelimiterRegex)); }
/** * Read in phrases where there is each pattern has a score of being associated with a certain tag. * The file format is assumed to be * phrase\ttag1 count\ttag2 count... * where the phrases and tags are delimited by tabs, and each tag and count is delimited by whitespaces * @param filename * @throws IOException */ public void readPhrasesWithTagScores(String filename) throws IOException { readPhrasesWithTagScores(filename, tabPattern, whitespacePattern); }
/** * Read in phrases where there is each pattern has a score of being associated with a certain tag. * The file format is assumed to be * phrase\ttag1 count\ttag2 count... * where the phrases and tags are delimited by tabs, and each tag and count is delimited by whitespaces * @param filename * @throws IOException */ public void readPhrasesWithTagScores(String filename) throws IOException { readPhrasesWithTagScores(filename, tabPattern, whitespacePattern); }
/** * Read in phrases where there is each pattern has a score of being associated with a certain tag. * The file format is assumed to be * phrase\ttag1 count\ttag2 count... * where the phrases and tags are delimited by tabs, and each tag and count is delimited by whitespaces * @param filename * @throws IOException */ public void readPhrasesWithTagScores(String filename) throws IOException { readPhrasesWithTagScores(filename, tabPattern, whitespacePattern); }
public void readPhrasesWithTagScores(String filename, String fieldDelimiterRegex, String countDelimiterRegex) throws IOException { readPhrasesWithTagScores(filename, Pattern.compile(fieldDelimiterRegex), Pattern.compile(countDelimiterRegex)); }
public void readPhrasesWithTagScores(String filename, String fieldDelimiterRegex, String countDelimiterRegex) throws IOException { readPhrasesWithTagScores(filename, Pattern.compile(fieldDelimiterRegex), Pattern.compile(countDelimiterRegex)); }
public void readPhrasesWithTagScores(String filename, String fieldDelimiterRegex, String countDelimiterRegex) throws IOException { readPhrasesWithTagScores(filename, Pattern.compile(fieldDelimiterRegex), Pattern.compile(countDelimiterRegex)); }