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

Matching a pattern for dependencies #204

Open
mitramir55 opened this issue Jan 19, 2021 · 4 comments
Open

Matching a pattern for dependencies #204

mitramir55 opened this issue Jan 19, 2021 · 4 comments

Comments

@mitramir55
Copy link

Hi everyone. Recently, I built a model that can detect passive voice in the records of a dataset using SpaCy dependency parsing, rule-based matcher, and nlp.pipe(). Here's the code for the project for more clarity.

Now, my question is, is there any way I can use Spacy matcher for this task in R using SpaCyr? I couldn't find any specific thing myself but I think there may be some ways I can construct something with a similar functionality myself.

I also could make use of n_processes in nlp.pipe() function as the dataset I'm working with is quit large. So if anyone has any idea about this too I'd love to hear it!

Thanks in advance!

@kbenoit
Copy link
Collaborator

kbenoit commented Jan 20, 2021

Thanks for sharing that. We could pass through arguments to Matcher(). @amatsuo what do you think?

Also as a separate issue, using n_processes sounds like the answer to a bottleneck we've noticed for some time too: large corpora tend to be hard to process all at once.

@mitramir55
Copy link
Author

Hi @kbenoit and @amatsuo, any updates on these functions? I'm willing to contribute to expanding and building the tools if you needed any help.

@kbenoit
Copy link
Collaborator

kbenoit commented Jan 5, 2022

Just picking this up - sorry it took so long - but @mitramir55 if you wanted to contribute any code for this, that would be great. spacyr needs some attention generally in light of updates to spaCy and new developments in the reticulate package.

@kbenoit
Copy link
Collaborator

kbenoit commented Sep 1, 2022

We will keep this open and tag it as Wishlist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants