forked from piskvorky/gensim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
24 lines (18 loc) · 678 Bytes
/
Copy path__init__.py
File metadata and controls
24 lines (18 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""
This package contains interfaces and functionality to compute pair-wise document
similarities within a corpus of documents.
"""
# for IPython tab-completion
from gensim import utils, matutils, interfaces, corpora, models, similarities
import logging
try:
__version__ = __import__('pkg_resources').get_distribution('gensim').version
except:
__version__ = '?'
class NullHandler(logging.Handler):
"""For python versions <= 2.6; same as `logging.NullHandler` in 2.7."""
def emit(self, record):
pass
logger = logging.getLogger('gensim')
if len(logger.handlers) == 0: # To ensure reload() doesn't add another one
logger.addHandler(NullHandler())