public boolean addPhrase(String phraseText, String tag, Object phraseData) { WordList wordList = toNormalizedWordList(phraseText); return addPhrase(phraseText, tag, wordList, phraseData); }
public List<PhraseMatch> findMatches(String text, int tokenStart, int tokenEnd, boolean needNormalization) { WordList tokens = toNormalizedWordList(text); return findMatches(tokens, tokenStart, tokenEnd, false); }
public Phrase lookupNormalized(String phrase) { return lookup(toNormalizedWordList(phrase)); }
/** * 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> findMatches(String text) { WordList tokens = toNormalizedWordList(text); return findMatches(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 Phrase lookupNormalized(String phrase) { return lookup(toNormalizedWordList(phrase)); }
public List<PhraseMatch> findMatches(String text, int tokenStart, int tokenEnd, boolean needNormalization) { WordList tokens = toNormalizedWordList(text); return findMatches(tokens, tokenStart, tokenEnd, false); }
public List<PhraseMatch> findMatches(String text, int tokenStart, int tokenEnd, boolean needNormalization) { WordList tokens = toNormalizedWordList(text); return findMatches(tokens, tokenStart, tokenEnd, false); }
public List<PhraseMatch> findMatches(String text, int tokenStart, int tokenEnd, boolean needNormalization) { WordList tokens = toNormalizedWordList(text); return findMatches(tokens, tokenStart, tokenEnd, false); }
public boolean addPhrase(String phraseText, String tag, Object phraseData) { WordList wordList = toNormalizedWordList(phraseText); return addPhrase(phraseText, tag, wordList, phraseData); }
/** * 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> findMatches(String text) { WordList tokens = toNormalizedWordList(text); return findMatches(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 * @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 * @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); }
public List<PhraseMatch> findMatches(String text) { WordList tokens = toNormalizedWordList(text); return findMatches(tokens, 0, tokens.size(), false); }
public List<PhraseMatch> findMatches(String text) { WordList tokens = toNormalizedWordList(text); return findMatches(tokens, 0, tokens.size(), false); }