mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 21:54:54 +03:00
Added documentation to matcher.md and rule-based-matching.md
#More documentations can be added? Need feedback
This commit is contained in:
parent
f5fa0d0bad
commit
57ec153587
|
@ -69,6 +69,8 @@ matched:
|
||||||
| `?` | Make the pattern optional, by allowing it to match 0 or 1 times. |
|
| `?` | Make the pattern optional, by allowing it to match 0 or 1 times. |
|
||||||
| `+` | Require the pattern to match 1 or more times. |
|
| `+` | Require the pattern to match 1 or more times. |
|
||||||
| `*` | Allow the pattern to match 0 or more times. |
|
| `*` | Allow the pattern to match 0 or more times. |
|
||||||
|
| `+?` | Require the pattern to match non-greedily 1 or more times. |
|
||||||
|
| `*?` | Allow the pattern to match non-greedily 0 or more times. |
|
||||||
| `{n}` | Require the pattern to match exactly _n_ times. |
|
| `{n}` | Require the pattern to match exactly _n_ times. |
|
||||||
| `{n,m}` | Require the pattern to match at least _n_ but not more than _m_ times. |
|
| `{n,m}` | Require the pattern to match at least _n_ but not more than _m_ times. |
|
||||||
| `{n,}` | Require the pattern to match at least _n_ times. |
|
| `{n,}` | Require the pattern to match at least _n_ times. |
|
||||||
|
|
|
@ -380,6 +380,8 @@ callbacks.
|
||||||
| `?` | Make the pattern optional, by allowing it to match 0 or 1 times. |
|
| `?` | Make the pattern optional, by allowing it to match 0 or 1 times. |
|
||||||
| `+` | Require the pattern to match 1 or more times. |
|
| `+` | Require the pattern to match 1 or more times. |
|
||||||
| `*` | Allow the pattern to match zero or more times. |
|
| `*` | Allow the pattern to match zero or more times. |
|
||||||
|
| `+?` | Require the pattern to match non-greedily 1 or more times. |
|
||||||
|
| `*?` | Allow the pattern to match non-greedily 0 or more times. |
|
||||||
| `{n}` | Require the pattern to match exactly _n_ times. |
|
| `{n}` | Require the pattern to match exactly _n_ times. |
|
||||||
| `{n,m}` | Require the pattern to match at least _n_ but not more than _m_ times. |
|
| `{n,m}` | Require the pattern to match at least _n_ but not more than _m_ times. |
|
||||||
| `{n,}` | Require the pattern to match at least _n_ times. |
|
| `{n,}` | Require the pattern to match at least _n_ times. |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user