From 98767122a73997567aff6950991ad16af9bc6486 Mon Sep 17 00:00:00 2001 From: ines Date: Thu, 9 Nov 2017 04:13:03 +0100 Subject: [PATCH] Fix typos --- website/usage/_linguistic-features/_tokenization.jade | 4 ++-- website/usage/_processing-pipelines/_custom-components.jade | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/usage/_linguistic-features/_tokenization.jade b/website/usage/_linguistic-features/_tokenization.jade index f635e6658..f149556ce 100644 --- a/website/usage/_linguistic-features/_tokenization.jade +++ b/website/usage/_linguistic-features/_tokenization.jade @@ -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: diff --git a/website/usage/_processing-pipelines/_custom-components.jade b/website/usage/_processing-pipelines/_custom-components.jade index 79cd77eef..d2100b5cd 100644 --- a/website/usage/_processing-pipelines/_custom-components.jade +++ b/website/usage/_processing-pipelines/_custom-components.jade @@ -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