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

bug fixing for MPNetEntityInjector and run file #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Crime2321
Copy link

Dear KAPING author,

While replicating your source code, I encountered the following bugs, which have been fixed in this pull request:

  1. In the call function of MPNetEntityInjector, the type of the question is expected to be in list format, but a string format was input when using the call function. I have adjusted the input in model.py to be a list. Additionally, in the injection function of MPNetEntityInjector, the question is expected to be a string, which has also been correspondingly adjusted.
  2. The top_k_triple_extractor function of MPNetEntityInjector incorrectly outputted the triples embedding instead of the intended triples list. The reason is that the function only received the triples embedding as input. This has been fixed. Moreover, when the random flag is set to True, the infos variable does not exist. Based on my understanding of your paper, I have adjusted it to triples.
  3. In run.py, evaluated is a list, and evaluate is the assessment function. It seems you have confused the two in the source code.
  4. There was an issue with the format of entity_verbalization.py, which has now been fixed.

I hope you will accept this pull request to facilitate the replication of this paper in the future.

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

Successfully merging this pull request may close these issues.

1 participant