mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2024-12-26 21:54:17 +00:00
Fix check_encoding functionality
This commit is contained in:
parent
504861ae07
commit
1a3e4a0a02
6
nlp
6
nlp
@ -60,7 +60,7 @@ class NLPWorkflow(WorkflowRunner):
|
|||||||
self.n_cores = args.n_cores
|
self.n_cores = args.n_cores
|
||||||
self.output_dir = args.output_dir
|
self.output_dir = args.output_dir
|
||||||
self.zip = args.zip
|
self.zip = args.zip
|
||||||
self.check_encoding
|
self.check_encoding = args.check_encoding
|
||||||
|
|
||||||
def workflow(self):
|
def workflow(self):
|
||||||
if len(self.jobs) == 0:
|
if len(self.jobs) == 0:
|
||||||
@ -95,8 +95,8 @@ class NLPWorkflow(WorkflowRunner):
|
|||||||
cmd = 'spacy_nlp -l "{}" "{}" "{}" "{}"'.format(
|
cmd = 'spacy_nlp -l "{}" "{}" "{}" "{}"'.format(
|
||||||
self.lang,
|
self.lang,
|
||||||
job['path'],
|
job['path'],
|
||||||
os.path.join(job['output_dir'], job['name'] + '.vrt',
|
os.path.join(job['output_dir'], job['name'] + '.vrt'),
|
||||||
if self.check_encoding "--check-encoding" else "")
|
"--check-encoding" if self.check_encoding else ""
|
||||||
)
|
)
|
||||||
nlp_jobs.append(
|
nlp_jobs.append(
|
||||||
self.addTask(
|
self.addTask(
|
||||||
|
Loading…
Reference in New Issue
Block a user