We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
line: 59
for f, y in zip(feature, label): label = self.r_l_map[y]
label parameter passed from seq_wc is a tensor type, therefore self.r_l_map[y] raise a KeyError
I guess it should be label = self.r_l_map[y.item()] instead?
The text was updated successfully, but these errors were encountered:
Thanks and fixed! Nice catch :-) #52 BTW, you may want to check our new implementation w. more powerful pre-trained models. https://github.com/LiyuanLucasLiu/LightNER
Sorry, something went wrong.
No branches or pull requests
line: 59
for f, y in zip(feature, label):
label = self.r_l_map[y]
label parameter passed from seq_wc is a tensor type, therefore self.r_l_map[y] raise a KeyError
I guess it should be label = self.r_l_map[y.item()] instead?
The text was updated successfully, but these errors were encountered: