mirror of https://github.com/explosion/spaCy.git
Fix typos
This commit is contained in:
parent
e87eb11beb
commit
98767122a7
|
@ -132,7 +132,7 @@ p
|
|||
infixes = find_infixes(substring)
|
||||
offset = 0
|
||||
for match in infixes:
|
||||
tokens.append(substring[i : match.start()])
|
||||
tokens.append(substring[offset : match.start()])
|
||||
tokens.append(substring[match.start() : match.end()])
|
||||
offset = match.end()
|
||||
substring = substring[offset:]
|
||||
|
@ -140,7 +140,7 @@ p
|
|||
tokens.append(substring)
|
||||
substring = ''
|
||||
tokens.extend(reversed(suffixes))
|
||||
return tokens
|
||||
return tokens
|
||||
|
||||
p
|
||||
| The algorithm can be summarized as follows:
|
||||
|
|
|
@ -190,7 +190,7 @@ p
|
|||
|
||||
+infobox("How the ._ is implemented")
|
||||
| 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 doc._.hello = True], the data is stored within the
|
||||
| #[+api("doc#attributes") #[code Doc.user_data]] dictionary. To keep the
|
||||
|
|
Loading…
Reference in New Issue