concordia search php

This commit is contained in:
rjawor 2017-02-21 12:41:49 +01:00
parent 370a95dd44
commit 714a9f2f0c

View File

@ -32,6 +32,7 @@ $data = json_decode($response);
<pre><?php print_r($data);?></pre> <pre><?php print_r($data);?></pre>
<div id="result-score">Concordia score: <b><?= round($data->result->bestOverlayScore*100) ?>%</b></div> <div id="result-score">Concordia score: <b><?= round($data->result->bestOverlayScore*100) ?>%</b></div>
<?php <?php
/*
$inputSentence = $_GET["pattern"]; $inputSentence = $_GET["pattern"];
$markedSentence = ""; $markedSentence = "";
$fragments = array(); $fragments = array();
@ -51,7 +52,7 @@ $data = json_decode($response);
} }
//remaining unmarked fragment //remaining unmarked fragment
$markedSentence += substr($inputSentence, $lastInsertedEnd); $markedSentence += substr($inputSentence, $lastInsertedEnd);
*/
?> ?>
<div id="result-sentence" onMouseUp="phraseSearch(this)"><?=$markedSentence ?></div> <div id="result-sentence" onMouseUp="phraseSearch(this)"><?=$markedSentence ?></div>
<br/><br/><br/> <br/><br/><br/>