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

Question about passive voice #15

Closed
airship-explorer opened this issue Apr 15, 2019 · 1 comment
Closed

Question about passive voice #15

airship-explorer opened this issue Apr 15, 2019 · 1 comment

Comments

@airship-explorer
Copy link

In your paper "Semi-Supervised Bootstrapping of Relationship Extractors with Distributional Semantics", you said "BREDS also tries to identify the passive voice using part-of-speech (PoS) tags ,..., it will swap the order of the entities when producing a relational triple".

But I can't find this process in your code. If BREDS detect the passive voice and swap the entities, about the words before the first entity and words after the second entity? Can you give
me some advice? Thank you!

@davidsbatista
Copy link
Owner

davidsbatista commented Apr 15, 2019

You can see the code that detects the passive voice here:

https://github.com/davidsbatista/BREDS/blob/master/breds/reverb.py#L277

It's a bit messy and I plant to change it so it uses the NLTK's RegexpParser, instead of long list of regexes and if statements, like I did here:

http://www.davidsbatista.net/blog/2017/05/08/ReVerb/

The before and after words remain the same, it's only the relationship that changes directions, see examples in the paper.

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