Skip to content

Commit

Permalink
Merge pull request #34 from amir-zeldes/dev
Browse files Browse the repository at this point in the history
Build bot fixes
  • Loading branch information
amir-zeldes authored Mar 3, 2018
2 parents fdd5479 + e2e211a commit 9c2665e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
15 changes: 11 additions & 4 deletions _build/build_gum.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def setup_directories(gum_source, gum_target):


parser = ArgumentParser()
parser.add_argument("-t",dest="target",action="store",help="GUM build target directory", default="target")
parser.add_argument("-s",dest="source",action="store",help="GUM build source directory", default="src")
parser.add_argument("-t",dest="target",action="store",help="GUM build target directory", default=None)
parser.add_argument("-s",dest="source",action="store",help="GUM build source directory", default=None)
parser.add_argument("-p",dest="parse",action="store_true",help="Whether to reparse constituents")
parser.add_argument("-c",dest="claws",action="store_true",help="Whether to reassign claws5 tags")
parser.add_argument("-u",dest="unidep",action="store_true",help="Whether to create a Universal Dependencies version")
Expand All @@ -40,8 +40,15 @@ def setup_directories(gum_source, gum_target):

options = parser.parse_args()

gum_source = os.path.abspath(options.source)
gum_target = os.path.abspath(options.target)
build_dir = os.path.dirname(os.path.realpath(__file__))
if options.source is None:
gum_source = build_dir + os.sep + "src"
else:
gum_source = os.path.abspath(options.source)
if options.target is None:
gum_target = build_dir + os.sep + "target"
else:
gum_target = os.path.abspath(options.target)

if gum_source[-1] != os.sep:
gum_source += os.sep
Expand Down
3 changes: 3 additions & 0 deletions _build/utils/stanford2ud.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys, os, ntpath, io
from glob import glob
from collections import defaultdict
Expand Down

0 comments on commit 9c2665e

Please sign in to comment.