/** * Given a list of tokens, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table * @param tokens List of tokens to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(WordList tokens) { return findAllMatches(tokens, 0, tokens.size(), true); }
/** * Given a segment of text, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table * @param text Input text to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(String text) { WordList tokens = toNormalizedWordList(text); return findAllMatches(tokens, 0, tokens.size(), false); }
public List<PhraseMatch> findAllMatches(WordList tokens, int tokenStart, int tokenEnd, boolean needNormalization) { return findMatches(null, tokens, tokenStart, tokenEnd, needNormalization, true /* find all */, false /* don't need to match end exactly */); }
/** * Given a segment of text, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table (filtered by the list of acceptable phrase) * @param acceptablePhrases - What phrases to look for (need to be subset of phrases already in table) * @param text Input text to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(List<Phrase> acceptablePhrases, String text) { WordList tokens = toNormalizedWordList(text); return findAllMatches(acceptablePhrases, tokens, 0, tokens.size(), false); }
/** * Given a list of tokens, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table * @param tokens List of tokens to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(WordList tokens) { return findAllMatches(tokens, 0, tokens.size(), true); }
/** * Given a list of tokens, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table * @param tokens List of tokens to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(WordList tokens) { return findAllMatches(tokens, 0, tokens.size(), true); }
/** * Given a list of tokens, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table * @param tokens List of tokens to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(WordList tokens) { return findAllMatches(tokens, 0, tokens.size(), true); }
/** * Given a segment of text, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table * @param text Input text to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(String text) { WordList tokens = toNormalizedWordList(text); return findAllMatches(tokens, 0, tokens.size(), false); }
/** * Given a segment of text, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table (filtered by the list of acceptable phrase) * @param acceptablePhrases - What phrases to look for (need to be subset of phrases already in table) * @param text Input text to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(List<Phrase> acceptablePhrases, String text) { WordList tokens = toNormalizedWordList(text); return findAllMatches(acceptablePhrases, tokens, 0, tokens.size(), false); }
/** * Given a segment of text, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table (filtered by the list of acceptable phrase) * @param acceptablePhrases - What phrases to look for (need to be subset of phrases already in table) * @param text Input text to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(List<Phrase> acceptablePhrases, String text) { WordList tokens = toNormalizedWordList(text); return findAllMatches(acceptablePhrases, tokens, 0, tokens.size(), false); }
public List<PhraseMatch> findAllMatches(WordList tokens, int tokenStart, int tokenEnd, boolean needNormalization) { return findMatches(null, tokens, tokenStart, tokenEnd, needNormalization, true /* find all */, false /* don't need to match end exactly */); }
/** * Given a segment of text, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table (filtered by the list of acceptable phrase) * @param acceptablePhrases - What phrases to look for (need to be subset of phrases already in table) * @param text Input text to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(List<Phrase> acceptablePhrases, String text) { WordList tokens = toNormalizedWordList(text); return findAllMatches(acceptablePhrases, tokens, 0, tokens.size(), false); }
/** * Given a segment of text, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table * @param text Input text to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(String text) { WordList tokens = toNormalizedWordList(text); return findAllMatches(tokens, 0, tokens.size(), false); }
public List<PhraseMatch> findAllMatches(WordList tokens, int tokenStart, int tokenEnd, boolean needNormalization) { return findMatches(null, tokens, tokenStart, tokenEnd, needNormalization, true /* find all */, false /* don't need to match end exactly */); }
/** * Given a segment of text, returns list of spans (PhraseMatch) that corresponds * to a phrase in the table * @param text Input text to search over * @return List of all matched spans */ public List<PhraseMatch> findAllMatches(String text) { WordList tokens = toNormalizedWordList(text); return findAllMatches(tokens, 0, tokens.size(), false); }
public List<PhraseMatch> findAllMatches(WordList tokens, int tokenStart, int tokenEnd, boolean needNormalization) { return findMatches(null, tokens, tokenStart, tokenEnd, needNormalization, true /* find all */, false /* don't need to match end exactly */); }