PCQRSCANER/venv/Lib/site-packages/nltk/test/probability_fixt.py
2019-12-22 21:51:47 +01:00

16 lines
345 B
Python

# -*- coding: utf-8 -*-
from __future__ import absolute_import
# probability.doctest uses HMM which requires numpy;
# skip probability.doctest if numpy is not available
def setup_module(module):
from nose import SkipTest
try:
import numpy
except ImportError:
raise SkipTest("probability.doctest requires numpy")