Skip to content

Commit

Permalink
remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Dec 18, 2015
1 parent ffe50a6 commit 8b22a6b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions formasaurus/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,23 +326,6 @@ def get_tree(self, path, info=None):
with open(os.path.join(self.folder, path), "rb") as f:
return load_html(f.read(), info["url"])

def get_Xy(self, drop_duplicates=True, verbose=False, leave=False,
simplify_form_types=True):
"""
Return X, y with formtype training data.
"""
return self.annotations_to_Xy(self.iter_annotations(
drop_duplicates=drop_duplicates,
verbose=verbose,
leave=leave,
simplify_form_types=simplify_form_types,
))

@classmethod
def annotations_to_Xy(cls, annotations):
X, y, _, _, _, _, _ = zip(*annotations)
return X, y

def check(self):
"""
Check that items in storage are correct; print the problems found.
Expand Down

0 comments on commit 8b22a6b

Please sign in to comment.