summaryrefslogtreecommitdiff
path: root/python/pkg/cdec/sa/extract.py
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
commit29a3d9e8ea2afc1d64e58cf263440496484eff1e (patch)
treeec55e1ca8d7a84ee855ec4fe9142c0a4377476c3 /python/pkg/cdec/sa/extract.py
parentfb4a9cd8874976a1c013b880b342961b72a8c0d7 (diff)
Extractor no longer complains if feature definitions aren't supplied
Diffstat (limited to 'python/pkg/cdec/sa/extract.py')
-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)