mirror of https://github.com/explosion/spaCy.git
* Fix Python3 problem in align_raw
This commit is contained in:
parent
dcafb181b9
commit
bb910cff92
|
@ -211,9 +211,9 @@ def do_web(src_dir, onto_dir, out_dir):
|
||||||
src_doc = sgml_extract(open(src_loc).read())
|
src_doc = sgml_extract(open(src_loc).read())
|
||||||
ptb_doc = [read_ptb.parse(parse_str, strip_bad_periods=True)[0]
|
ptb_doc = [read_ptb.parse(parse_str, strip_bad_periods=True)[0]
|
||||||
for parse_str in read_ptb.split(open(ptb_loc).read())]
|
for parse_str in read_ptb.split(open(ptb_loc).read())]
|
||||||
print 'Found'
|
print('Found')
|
||||||
else:
|
else:
|
||||||
print 'Miss'
|
print('Miss')
|
||||||
|
|
||||||
|
|
||||||
def may_mkdir(parent, *subdirs):
|
def may_mkdir(parent, *subdirs):
|
||||||
|
|
Loading…
Reference in New Issue