From 29a3d9e8ea2afc1d64e58cf263440496484eff1e Mon Sep 17 00:00:00 2001 From: Adam Lopez Date: Wed, 5 Sep 2012 10:35:09 -0400 Subject: Extractor no longer complains if feature definitions aren't supplied --- python/pkg/cdec/sa/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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) -- cgit v1.2.3