Skip to content
Snippets Groups Projects
Commit 9fc2cace authored by Franck Dary's avatar Franck Dary
Browse files

removed fixed path to udpipe

parent 18f1683c
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,10 @@ if __name__ == "__main__" :
splited = os.path.splitext(pathToFile)
target = sys.argv[3]
if which("word2vec") is None :
if which("word2vec") is None or which("udpipe") is None :
exit(0)
p = subprocess.Popen("~/Documents/ud_pipe/src/udpipe --output=horizontal none %s > in.text"%pathToFile, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
p = subprocess.Popen("udpipe --output=horizontal none %s > in.text && rm in.text"%pathToFile, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
p.wait()
args = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment