Skip to content

Commit

Permalink
Ignore flake8 in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zsef123 committed Aug 31, 2017
1 parent 624c272 commit 7a5dd56
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 54 deletions.
24 changes: 12 additions & 12 deletions gensim/corpora/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
"""
This package contains implementations of various streaming corpus I/O format.
"""

# flake8: noqa
# bring corpus classes directly into package namespace, to save some typing
from .indexedcorpus import IndexedCorpus # noqa:F401 must appear before the other classes
from .indexedcorpus import IndexedCorpus # must appear before the other classes

from .mmcorpus import MmCorpus # noqa:F401
from .bleicorpus import BleiCorpus # noqa:F401
from .svmlightcorpus import SvmLightCorpus # noqa:F401
from .lowcorpus import LowCorpus # noqa:F401
from .dictionary import Dictionary # noqa:F401
from .hashdictionary import HashDictionary # noqa:F401
from .wikicorpus import WikiCorpus # noqa:F401
from .textcorpus import TextCorpus # noqa:F401
from .ucicorpus import UciCorpus # noqa:F401
from .malletcorpus import MalletCorpus # noqa:F401
from .mmcorpus import MmCorpus
from .bleicorpus import BleiCorpus
from .svmlightcorpus import SvmLightCorpus
from .lowcorpus import LowCorpus
from .dictionary import Dictionary
from .hashdictionary import HashDictionary
from .wikicorpus import WikiCorpus
from .textcorpus import TextCorpus
from .ucicorpus import UciCorpus
from .malletcorpus import MalletCorpus
36 changes: 18 additions & 18 deletions gensim/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
This package contains algorithms for extracting document representations from their raw
bag-of-word counts.
"""

# flake8: noqa
# bring model classes directly into package namespace, to save some typing
from .coherencemodel import CoherenceModel # noqa:F401
from .hdpmodel import HdpModel # noqa:F401
from .ldamodel import LdaModel # noqa:F401
from .lsimodel import LsiModel # noqa:F401
from .tfidfmodel import TfidfModel # noqa:F401
from .rpmodel import RpModel # noqa:F401
from .logentropy_model import LogEntropyModel # noqa:F401
from .word2vec import Word2Vec # noqa:F401
from .doc2vec import Doc2Vec # noqa:F401
from .keyedvectors import KeyedVectors # noqa:F401
from .ldamulticore import LdaMulticore # noqa:F401
from .phrases import Phrases # noqa:F401
from .normmodel import NormModel # noqa:F401
from .atmodel import AuthorTopicModel # noqa:F401
from .ldaseqmodel import LdaSeqModel # noqa:F401

from . import wrappers # noqa:F401
from .coherencemodel import CoherenceModel
from .hdpmodel import HdpModel
from .ldamodel import LdaModel
from .lsimodel import LsiModel
from .tfidfmodel import TfidfModel
from .rpmodel import RpModel
from .logentropy_model import LogEntropyModel
from .word2vec import Word2Vec
from .doc2vec import Doc2Vec
from .keyedvectors import KeyedVectors
from .ldamulticore import LdaMulticore
from .phrases import Phrases
from .normmodel import NormModel
from .atmodel import AuthorTopicModel
from .ldaseqmodel import LdaSeqModel

from . import wrappers

from gensim import interfaces, utils

Expand Down
14 changes: 7 additions & 7 deletions gensim/models/wrappers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""
This package contains wrappers for other topic modeling programs.
"""

from .ldamallet import LdaMallet # noqa:F401
from .dtmmodel import DtmModel # noqa:F401
from .ldavowpalwabbit import LdaVowpalWabbit # noqa:F401
from .fasttext import FastText # noqa:F401
from .wordrank import Wordrank # noqa:F401
from .varembed import VarEmbed # noqa:F401
# flake8: noqa
from .ldamallet import LdaMallet
from .dtmmodel import DtmModel
from .ldavowpalwabbit import LdaVowpalWabbit
from .fasttext import FastText
from .wordrank import Wordrank
from .varembed import VarEmbed
8 changes: 6 additions & 2 deletions gensim/parsing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""
This package contains functions to preprocess raw text
"""

# flake8: noqa
# bring model classes directly into package namespace, to save some typing
from .porter import PorterStemmer
from .preprocessing import *
from .preprocessing import remove_stopwords, strip_punctuation, strip_tags, \
strip_short, strip_numeric, strip_non_alphanum, \
strip_multiple_whitespaces, split_alphanum, \
stem_text, preprocess_string, preprocess_documents, \
read_file, read_files
24 changes: 12 additions & 12 deletions gensim/sklearn_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
[1] http://scikit-learn.org/stable/developers/
"""


from .ldamodel import LdaTransformer # noqa: F401
from .lsimodel import LsiTransformer # noqa: F401
from .rpmodel import RpTransformer # noqa: F401
from .ldaseqmodel import LdaSeqTransformer # noqa: F401
from .w2vmodel import W2VTransformer # noqa: F401
from .atmodel import AuthorTopicTransformer # noqa: F401
from .d2vmodel import D2VTransformer # noqa: F401
from .text2bow import Text2BowTransformer # noqa: F401
from .tfidf import TfIdfTransformer # noqa: F401
from .hdp import HdpTransformer # noqa: F401
from .phrases import PhrasesTransformer # noqa: F401
# flake8: noqa
from .ldamodel import LdaTransformer
from .lsimodel import LsiTransformer
from .rpmodel import RpTransformer
from .ldaseqmodel import LdaSeqTransformer
from .w2vmodel import W2VTransformer
from .atmodel import AuthorTopicTransformer
from .d2vmodel import D2VTransformer
from .text2bow import Text2BowTransformer
from .tfidf import TfIdfTransformer
from .hdp import HdpTransformer
from .phrases import PhrasesTransformer
6 changes: 3 additions & 3 deletions gensim/summarization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# flake8: noqa
# bring model classes directly into package namespace, to save some typing
from .summarizer import summarize, summarize_corpus # noqa:F401
from .keywords import keywords # noqa:F401
from .summarizer import summarize, summarize_corpus
from .keywords import keywords

0 comments on commit 7a5dd56

Please sign in to comment.