writer / replaCy

spaCy match and replace, maintaining conjugation
https://pypi.org/project/replacy/
MIT License
34 stars 8 forks source link

part_of_compound hook and support nullary match hooks #15

Closed sam-writer closed 4 years ago

sam-writer commented 4 years ago

This introduces the hook part_of_compound, which identifies if the matched word is part of a compound phrase, and allows support for nullary match hooks, which part_of_compound is

sam-writer commented 4 years ago

This is built and on PyPi - we can take it down if this PR isn't okay, but I wanted to use it ASAP

sam-writer commented 4 years ago

BTW, this closes #14

sam-writer commented 4 years ago

@melisa-qordoba sorry for merging without review, but tests pass, and this works in a downstream app...