concordia search php

This commit is contained in:
rjawor 2017-02-21 12:50:00 +01:00
parent 97fed9a645
commit b7f473eea5

View File

@ -39,7 +39,7 @@ $data = json_decode($response);
$lastInsertedEnd = 0; $lastInsertedEnd = 0;
for($i=0; $i<count($data->result->bestOverlay);$i++) { for($i=0; $i<count($data->result->bestOverlay);$i++) {
$fragment = data->result->bestOverlay[i]; $fragment = $data->result->bestOverlay[i];
//previous unmarked fragment //previous unmarked fragment
$markedSentence += substr($inputSentence,$lastInsertedEnd, $fragment->matchedPatternStart - $lastInsertedEnd); $markedSentence += substr($inputSentence,$lastInsertedEnd, $fragment->matchedPatternStart - $lastInsertedEnd);