mirror of
https://github.com/explosion/spaCy.git
synced 2025-09-09 21:52:37 +03:00
Fix typos
This commit is contained in:
parent
e87eb11beb
commit
98767122a7
|
@ -132,7 +132,7 @@ p
|
||||||
infixes = find_infixes(substring)
|
infixes = find_infixes(substring)
|
||||||
offset = 0
|
offset = 0
|
||||||
for match in infixes:
|
for match in infixes:
|
||||||
tokens.append(substring[i : match.start()])
|
tokens.append(substring[offset : match.start()])
|
||||||
tokens.append(substring[match.start() : match.end()])
|
tokens.append(substring[match.start() : match.end()])
|
||||||
offset = match.end()
|
offset = match.end()
|
||||||
substring = substring[offset:]
|
substring = substring[offset:]
|
||||||
|
@ -140,7 +140,7 @@ p
|
||||||
tokens.append(substring)
|
tokens.append(substring)
|
||||||
substring = ''
|
substring = ''
|
||||||
tokens.extend(reversed(suffixes))
|
tokens.extend(reversed(suffixes))
|
||||||
return tokens
|
return tokens
|
||||||
|
|
||||||
p
|
p
|
||||||
| The algorithm can be summarized as follows:
|
| The algorithm can be summarized as follows:
|
||||||
|
|
|
@ -190,7 +190,7 @@ p
|
||||||
|
|
||||||
+infobox("How the ._ is implemented")
|
+infobox("How the ._ is implemented")
|
||||||
| Extension definitions – the defaults, methods, getters and setters you
|
| Extension definitions – the defaults, methods, getters and setters you
|
||||||
| pass in to #[code set_extension] are stored in class attributes on the
|
| pass in to #[code set_extension] – are stored in class attributes on the
|
||||||
| #[code Underscore] class. If you write to an extension attribute, e.g.
|
| #[code Underscore] class. If you write to an extension attribute, e.g.
|
||||||
| #[code doc._.hello = True], the data is stored within the
|
| #[code doc._.hello = True], the data is stored within the
|
||||||
| #[+api("doc#attributes") #[code Doc.user_data]] dictionary. To keep the
|
| #[+api("doc#attributes") #[code Doc.user_data]] dictionary. To keep the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user