From 32fb50dc35358cacdfe3a9867c3507be24f2ac31 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 3 Nov 2014 00:15:47 +1100 Subject: [PATCH] * Remove non_sparse method --- features wanting this can do it easily enough. --- spacy/orth.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/spacy/orth.py b/spacy/orth.py index e27ef9119..0152fd17e 100644 --- a/spacy/orth.py +++ b/spacy/orth.py @@ -151,15 +151,6 @@ def word_shape(string): return ''.join(shape) -def non_sparse(string, prob, cluster, upper_pc, title_pc, lower_pc): - if is_alpha(string): - return canon_case(string, upper_pc, title_pc, lower_pc) - elif prob >= math.log(0.0001): - return string - else: - return word_shape(string) - - def asciied(string): ascii_string = unidecode(string) if not ascii_string: