Skip to content

Commit

Permalink
disassemble import *
Browse files Browse the repository at this point in the history
  • Loading branch information
zsef123 committed Sep 1, 2017
1 parent 624c272 commit 22816c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions gensim/parsing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"""

# bring model classes directly into package namespace, to save some typing
from .porter import PorterStemmer
from .preprocessing import *
from .porter import PorterStemmer # noqa:F401
from .preprocessing import (remove_stopwords, strip_punctuation, strip_punctuation2, # noqa:F401
strip_tags, strip_short, strip_numeric,
strip_non_alphanum, strip_multiple_whitespaces,
split_alphanum, stem_text, preprocess_string,
preprocess_documents, read_file, read_files)
6 changes: 4 additions & 2 deletions gensim/test/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
import logging
import unittest
import numpy as np

from gensim.parsing.preprocessing import * # noqa:F403
from .preprocessing import (remove_stopwords, strip_punctuation2,
strip_tags, strip_short, strip_numeric,
strip_non_alphanum, strip_multiple_whitespaces,
split_alphanum, stem_text)


# several documents
Expand Down

0 comments on commit 22816c0

Please sign in to comment.