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

UnrecognizedFlagError: Unknown command line flag 'f' #4

Closed
vijender412 opened this issue May 28, 2020 · 2 comments
Closed

UnrecognizedFlagError: Unknown command line flag 'f' #4

vijender412 opened this issue May 28, 2020 · 2 comments

Comments

@vijender412
Copy link

vijender412 commented May 28, 2020

Getting this issue.

    10 bleurt_ops = score.create_bleurt_ops()
---> 11 bleurt_out = bleurt_ops(references, candidates)
     12 
     13 assert bleurt_out["predictions"].shape == (1,)

11 frames
/usr/local/lib/python3.6/dist-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
    631       suggestions = _helpers.get_flag_suggestions(name, list(self))
    632       raise _exceptions.UnrecognizedFlagError(
--> 633           name, value, suggestions=suggestions)
    634 
    635     self.mark_as_parsed()

UnrecognizedFlagError: Unknown command line flag 'f'
@vijender412
Copy link
Author

While running from jupyter notebook if needs argument to pass.

import sys
sys.argv = sys.argv[:1]

Issue Resolved

@ratthachat
Copy link

ratthachat commented Jul 19, 2020

Guys, either the resolve of this issue or #7 should be written on README since it always happen in Colab ... @tsellam

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