Commit 45b5b97a authored by Dominik Schwabe's avatar Dominik Schwabe
Browse files

fixed small markup bug

parent 40207070
...@@ -87,7 +87,7 @@ const Evaluate = () => { ...@@ -87,7 +87,7 @@ const Evaluate = () => {
</Button> </Button>
); );
return ( return (
<div className="uk-container uk-container-expand uk-margin-medium-top uk-margin-large-top@l "> <div className="uk-container uk-container-expand">
<div className="metric-layout"> <div className="metric-layout">
<div> <div>
<FileInput setCalculation={setComputedCalculation} /> <FileInput setCalculation={setComputedCalculation} />
......
...@@ -25,10 +25,10 @@ const OneHypRefResult = ({ className, calculation }) => { ...@@ -25,10 +25,10 @@ const OneHypRefResult = ({ className, calculation }) => {
<tbody> <tbody>
<tr> <tr>
<td> <td>
<Markup markups={hypothesis} markupState={markupState} /> <Markup markups={reference} markupState={markupState} />
</td> </td>
<td> <td>
<Markup markups={reference} markupState={markupState} /> <Markup markups={hypothesis} markupState={markupState} />
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -127,7 +127,8 @@ const compute_matches = (docs, min_length, allow_self_similarities) => { ...@@ -127,7 +127,8 @@ const compute_matches = (docs, min_length, allow_self_similarities) => {
let curr_start = 0; let curr_start = 0;
let curr_depth = 0; let curr_depth = 0;
for (let i = 0; i < lcp_array.length; i++) { let i = 0
while (i < lcp_array.length) {
if (lcp_array[i] > curr_depth) { if (lcp_array[i] > curr_depth) {
start.push(curr_start); start.push(curr_start);
depth.push(curr_depth); depth.push(curr_depth);
...@@ -147,7 +148,7 @@ const compute_matches = (docs, min_length, allow_self_similarities) => { ...@@ -147,7 +148,7 @@ const compute_matches = (docs, min_length, allow_self_similarities) => {
curr_start = start.pop(); curr_start = start.pop();
curr_depth = depth.pop(); curr_depth = depth.pop();
} }
} } else i++
} }
const matches = []; const matches = [];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment