List of usage examples for edu.stanford.nlp.util StringUtils longestCommonSubstring
public static int longestCommonSubstring(String s, String t)
From source file:edu.cmu.lti.oaqa.baseqa.passage.rerank.PassageCandidateProvider.java
License:Apache License
private boolean match(String candidateText, String gsText) { return Math.max(candidateText.length(), gsText.length()) * 0.9 < StringUtils .longestCommonSubstring(candidateText, gsText); }