LSTM-CRF icon indicating copy to clipboard operation
LSTM-CRF copied to clipboard

some bugs

Open Felix0805 opened this issue 6 years ago • 6 comments

I think there are some bugs about FLAGS

Felix0805 avatar Feb 28 '18 07:02 Felix0805

There are many UnrecognizedFlagErrors

Felix0805 avatar Feb 28 '18 07:02 Felix0805

@Felix0805 Thank you for reporting the bugs. Can you please provide some details about the bugs?

heshenghuan avatar Mar 01 '18 03:03 heshenghuan

When you run the whole project In main.py line 245-247 have the error: absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'label2idx'

Felix0805 avatar Mar 01 '18 07:03 Felix0805

Do you have the Traceback for this bug?

'label2idx' isn't an argument, you don't need to give a 'label2idx' in command line.

heshenghuan avatar Mar 01 '18 12:03 heshenghuan

yeah,I don't give a 'label2idx' in command line, but 'label2idx' is undefined in Flag

Felix0805 avatar Mar 02 '18 02:03 Felix0805

OK, I understood. It looks like the API has changed. And it was not recommended to use FLAGS like that.

Thank you for your advice. I think it can be fixed by using a dictionary to store those undefined variables.

heshenghuan avatar Mar 02 '18 07:03 heshenghuan