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

Cannot recognize and recommend entities right before a newline character #14

Open
jinangela opened this issue Nov 6, 2018 · 0 comments

Comments

@jinangela
Copy link

I think in utils/recommend.py, the "## forward maximum matching (FMM)" part, the third condition should change to

elif entity_recognized_list[FMM_end] != 0:

i.e. remove the second part

decode_origin[FMM_end] == '\n'

otherwise, when FMM_end equals the end of a line, decode_origin[FMM_end] is a newline character, then FMM_end will be moved one character backward, which will then make decode_origin[FMM_start:FMM_end] a non-word.

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

1 participant