Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yoshinaka committed Jan 24, 2020
1 parent 24c1ea8 commit ce8df78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ After preparing a **tokenized** sentence pair (`tokenized_sentence_a: list` and
>>> result = aligner.align(tokenized_sentence_a, tokenized_sentence_b)
>>> alignment = result.top_alignment[0][0]
>>> print(alignment)
1,2,3-2,3 8,9-5,6 13-8 27-9
[(1, 3, 2, 3), (8, 9, 5, 6), (13, 13, 8, 8), (27, 27, 9, 9)]
```
Output format: 1-indexed alignment
phrase pair (x, y): (x_start, x_end, y_start, y_end) # 1-indexed alignment

0 comments on commit ce8df78

Please sign in to comment.