Simple vim-like tool for NER annotation.
- quickly visualize NER annotations from Spacy
- start labeling instantly (no Docker hassle like in Doccano or Label Studio)
- vim-like keybindings and interface
nix shell github:vglfr/tan
with Nixcargo install tantan
with crates.io
tan [OPTIONS] [NAME]
Options:
-f FORMAT
,--format FORMAT
[default: plain] [possible values: plain, spacy, tan]
For now only plain and Spacy formats are supported. Spacy NER annotations could be exported like this:
import json
import spacy
nlp = spacy.load("en_core_web_sm")
with open("data/test.txt") as f:
doc = nlp(f.read())
with open("data/test.json", "w") as f:
json.dump(doc.to_json(), f)
mode | description |
---|---|
normal |
text preview and navigation |
visual |
visual selection |
command |
command prompt |
tag |
tag modal |
key | command |
---|---|
: |
command mode |
m |
tag mode |
v |
visual mode |
key | command |
---|---|
h |
left |
j |
down |
k |
up |
l |
right |
H |
top of the screen |
M |
middle of the screen |
L |
bottom of the screen |
C-n |
screen down |
C-p |
screen up |
s |
start of the line |
e |
end of the line |
S |
start of the file |
E |
end of the file |
w |
word ahead |
b |
word behind |
key | command |
---|---|
t |
tag selection with active label |
u |
untag selection |
key | command |
---|---|
j |
next tag |
k |
previous tag |
h |
next color |
l |
previous color |
a |
add tag |
d |
delete tag |
i |
edit tag name |
v |
toggle active tag visibility |
V |
toggle all tag visibility |
Return |
rename tag / activate tag |
command | description |
---|---|
q , quit |
quit |
w , write |
write file at tan format |