diff options
author | Adam Lopez <alopez@cs.jhu.edu> | 2012-09-05 10:35:09 -0400 |
---|---|---|
committer | Adam Lopez <alopez@cs.jhu.edu> | 2012-09-05 10:35:09 -0400 |
commit | 29a3d9e8ea2afc1d64e58cf263440496484eff1e (patch) | |
tree | ec55e1ca8d7a84ee855ec4fe9142c0a4377476c3 | |
parent | fb4a9cd8874976a1c013b880b342961b72a8c0d7 (diff) |
Extractor no longer complains if feature definitions aren't supplied
-rw-r--r-- | python/pkg/cdec/sa/extract.py | 2 |
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) |