concordia search php
This commit is contained in:
parent
70efd22b29
commit
b32c79c4c0
@ -37,7 +37,7 @@ $data = json_decode($response);
|
|||||||
$markedSentence = "";
|
$markedSentence = "";
|
||||||
$fragments = array();
|
$fragments = array();
|
||||||
$lastInsertedEnd = 0;
|
$lastInsertedEnd = 0;
|
||||||
for($i=0; $i<count($data->result->bestOverlayScore);$i++) {
|
for($i=0; $i<2;$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);
|
||||||
|
Loading…
Reference in New Issue
Block a user