Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.44 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.44 KB

word alignment labeling tool

A commend line tool for labeling alignments of parallel sentences.

Designed and implented by Charles Xin-Tong Li

screenshot

Usage

Label alignments for source file and target file.

chmod +x alt.py
./alt.py source target alignment

View alignments for source file and target file with no modification.

./alt.py -v source target alignment

Key bindings

key Description
q quit and save
n next target word
p previous target word
w move forward by a source word
b move backward by a source word
a move alignment right by 10 char
d move alignment left by 10 char
s toggle SURE and POSSIBLE
<num> input a selection number
> next sentences
< previous sentences
L go to selected sentences
<space> toggle alignment of selected words

Data

source and target should be parallel corpus. alignment should be alignment file corresponding to these two corpus. If alignment does not exits, it will be created. The form of align data should be <source_word>:<target_word>/<sure=1/possible=0>.