Example usage for edu.stanford.nlp.util StringUtils longestCommonSubstring

List of usage examples for edu.stanford.nlp.util StringUtils longestCommonSubstring

Introduction

In this page you can find the example usage for edu.stanford.nlp.util StringUtils longestCommonSubstring.

Prototype

public static int longestCommonSubstring(String s, String t) 

Source Link

Document

Computes the longest common substring of s and t.

Usage

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);
}