summaryrefslogtreecommitdiff
path: root/python/pkg/cdec
diff options
context:
space:
mode:
authorAdam Lopez <alopez@cs.jhu.edu>2012-09-05 10:35:09 -0400
committerAdam Lopez <alopez@cs.jhu.edu>2012-09-05 10:35:09 -0400
commit90ea67a64e94d2e7464bcd9c5b908c09e2271fdc (patch)
tree22e0f302f7c154ee636eee79446a6f3bf4737214 /python/pkg/cdec
parent6fb3cc36cc4113c9f3510d87b3ae3b9c9351bf4e (diff)
Extractor no longer complains if feature definitions aren't supplied
Diffstat (limited to 'python/pkg/cdec')
-rw-r--r--python/pkg/cdec/sa/extract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pkg/cdec/sa/extract.py b/python/pkg/cdec/sa/extract.py
index b370c4ca..472f128b 100644
--- a/python/pkg/cdec/sa/extract.py
+++ b/python/pkg/cdec/sa/extract.py
@@ -50,7 +50,7 @@ def main():
if not os.path.exists(args.grammars):
os.mkdir(args.grammars)
- if not args.features.endswith('.py'):
+ if not (args.features is None or args.features.endswith('.py')):
sys.stderr.write('Error: feature definition file should be a python module\n')
sys.exit(1)