From b32c79c4c0d7bcc66e16fd094e8517c9f18c9ca4 Mon Sep 17 00:00:00 2001 From: rjawor Date: Tue, 21 Feb 2017 12:46:00 +0100 Subject: [PATCH] concordia search php --- cat/concordia_search.php_pattern | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cat/concordia_search.php_pattern b/cat/concordia_search.php_pattern index bc4ac34..0429193 100644 --- a/cat/concordia_search.php_pattern +++ b/cat/concordia_search.php_pattern @@ -37,7 +37,7 @@ $data = json_decode($response); $markedSentence = ""; $fragments = array(); $lastInsertedEnd = 0; - for($i=0; $iresult->bestOverlayScore);$i++) { + for($i=0; $i<2;$i++) { $fragment = data->result->bestOverlay[i]; //previous unmarked fragment $markedSentence += substr($inputSentence,$lastInsertedEnd, $fragment->matchedPatternStart - $lastInsertedEnd);