mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix typo, formatting and operator descriptions (resolves #1820)
This commit is contained in:
parent
a2a06dce24
commit
65babd9e2e
|
@ -148,7 +148,7 @@ p
|
||||||
+cell Negate the pattern, by requiring it to match exactly 0 times.
|
+cell Negate the pattern, by requiring it to match exactly 0 times.
|
||||||
|
|
||||||
+row
|
+row
|
||||||
+cell #[code *]
|
+cell #[code ?]
|
||||||
+cell Make the pattern optional, by allowing it to match 0 or 1 times.
|
+cell Make the pattern optional, by allowing it to match 0 or 1 times.
|
||||||
|
|
||||||
+row
|
+row
|
||||||
|
@ -156,8 +156,8 @@ p
|
||||||
+cell Require the pattern to match 1 or more times.
|
+cell Require the pattern to match 1 or more times.
|
||||||
|
|
||||||
+row
|
+row
|
||||||
+cell #[code ?]
|
+cell #[code *]
|
||||||
+cell Allow the pattern to zero or more times.
|
+cell Allow the pattern to match zero or more times.
|
||||||
|
|
||||||
p
|
p
|
||||||
| The #[code +] and #[code *] operators are usually interpretted
|
| The #[code +] and #[code *] operators are usually interpretted
|
||||||
|
@ -354,7 +354,7 @@ p
|
||||||
# append mock entity for match in displaCy style to matched_sents
|
# append mock entity for match in displaCy style to matched_sents
|
||||||
# get the match span by ofsetting the start and end of the span with the
|
# get the match span by ofsetting the start and end of the span with the
|
||||||
# start and end of the sentence in the doc
|
# start and end of the sentence in the doc
|
||||||
match_ents = [{'start': span.start_char - sent.start_char,
|
match_ents = [{'start': span.start_char - sent.start_char,
|
||||||
'end': span.end_char - sent.start_char,
|
'end': span.end_char - sent.start_char,
|
||||||
'label': 'MATCH'}]
|
'label': 'MATCH'}]
|
||||||
matched_sents.append({'text': sent.text, 'ents': match_ents })
|
matched_sents.append({'text': sent.text, 'ents': match_ents })
|
||||||
|
|
Loading…
Reference in New Issue
Block a user