Skip to content

Commit

Permalink
finished annotation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ned2 committed Feb 2, 2018
1 parent 89498e1 commit 8ff7e36
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 7 deletions.
3 changes: 1 addition & 2 deletions typediff/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def process_the_profiles():

if neg_prof_name != '':
prof = PROFILES[neg_prof_name]
query = f'{prof.home}:{pos_prof_filter}'
query = f'{prof.home}:{neg_prof_filter}'
opts.grammar = get_grammar(prof.grammar)
opts.treebank = prof.treebank
neg_items = process_profiles(query, opts)
Expand All @@ -78,7 +78,6 @@ def process_the_profiles():

@app.route('/annotate', methods=['POST'])
def annotate():
#import ipdb; ipdb.set_trace()
name = request.form.get('name').lower().replace(' ', '_')
label = request.form.get('label')
comment = request.form.get('comment')
Expand Down
Loading

0 comments on commit 8ff7e36

Please sign in to comment.