Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

too few arguments #1313

Open
XuanMiaoJ opened this issue Apr 30, 2019 · 2 comments
Open

too few arguments #1313

XuanMiaoJ opened this issue Apr 30, 2019 · 2 comments

Comments

@XuanMiaoJ
Copy link

when i want to run anntoconll.py
it has an error like this anntoconll.py: error: too few arguments

@yangshuothtf
Copy link

def argparser():
import argparse

ap=argparse.ArgumentParser(description='Convert text and standoff ' +
                           'annotations into CoNLL format.')
ap.add_argument('-a', '--annsuffix', default="ann",
                help='Standoff annotation file suffix (default "ann")')
ap.add_argument('-c', '--singleclass', default=None,
                help='Use given single class for annotations')
ap.add_argument('-n', '--nosplit', default=False, action='store_true', 
                help='No sentence splitting')
ap.add_argument('-o', '--outsuffix', default="conll",
                help='Suffix to add to output files (default "conll")')
ap.add_argument('-v', '--verbose', default=False, action='store_true', 
                help='Verbose output')    
ap.add_argument('text', metavar='TEXT', nargs='+', 
                help='Text files ("-" for STDIN)')
return ap

@yangshuothtf
Copy link

you need to fill arg "text"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants