Permalink
Browse files

local.sen.p is now optional

  • Loading branch information...
tevino committed Sep 14, 2012
1 parent 296094e commit b987b83b3e50a24328bea5417d36edb1485f0d35
Showing with 1 addition and 1 deletion.
  1. +1 −1 cloudi/d
View
@@ -72,7 +72,7 @@ def print_result(dct):
des += '\n'
sents = ''
for sent in local.get('sen', []):
- s_type = sent['p']
+ s_type = sent.get('p', '')
sents += s_type + '\n'
for s in sent['s']:
sents += ' %s\n' % s['es'].replace('<b>', lgreen_s).replace('</b>', ed)

0 comments on commit b987b83

Please sign in to comment.