mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-14 18:22:27 +03:00
Fix typo [ci skip]
This commit is contained in:
parent
d8533f0149
commit
b532386a60
|
@ -404,7 +404,7 @@ class BadHTMLMerger(object):
|
||||||
for match_id, start, end in matches:
|
for match_id, start, end in matches:
|
||||||
spans.append(doc[start:end])
|
spans.append(doc[start:end])
|
||||||
with doc.retokenize() as retokenizer:
|
with doc.retokenize() as retokenizer:
|
||||||
for span in spans:
|
for span in hashtags:
|
||||||
retokenizer.merge(span)
|
retokenizer.merge(span)
|
||||||
for token in span:
|
for token in span:
|
||||||
token._.bad_html = True # Mark token as bad HTML
|
token._.bad_html = True # Mark token as bad HTML
|
||||||
|
|
Loading…
Reference in New Issue
Block a user