Skip to content

Commit

Permalink
Fix broken doc/pep8 tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsroten committed Aug 21, 2019
1 parent da2d30a commit 5fbf6a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Initializing and Exiting the API

Before you can call any other NLPIR functions, you need to initialize the NLPIR API.
This is done by calling :func:`~pynlpir.nlpir.Init`. You have to specify where
NLPIR's ``Data`` directory is. PyNLPIR ships with a copy and it's found in the
NLPIR's ``Data`` directory is. PyNLPIR ships with a copy and it's found in the
top-level of the package directory. So, you can use the module-level constant
:data:`~pynlpir.nlpir.PACKAGE_DIR` when calling :func:`~pynlpir.nlpir.Init`:

Expand Down Expand Up @@ -168,7 +168,7 @@ The Rest of the NLPIR Functions

For a complete list of NLPIR functions that :mod:`pynlpir.nlpir` includes,
check out the :doc:`api`. NLPIR's documentation is included in a PDF file in
the `NLPIR/ICTCLAS 2016 download <http:https://ictclas.nlpir.org/downloads>`_.
the `NLPIR/ICTCLAS repository <https:https://github.com/NLPIR-team/NLPIR/tree/master/NLPIR%20SDK/NLPIR-ICTCLAS/doc>`_.
Consult it for detailed information on how to use NLPIR.

What's Next
Expand Down
2 changes: 1 addition & 1 deletion pynlpir/nlpir.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def load_library(platform, is_64bit, lib_dir=LIB_DIR):
is_64bit = sys.maxsize > 2**32

#: A :class:`ctypes.CDLL` instance for the NLPIR API library.
libNLPIR = load_library(sys.platform, is_64bit)
libNLPIR = load_library(sys.platform, is_64bit) # noqa: N816


def get_func(name, argtypes=None, restype=c_int, lib=libNLPIR):
Expand Down

0 comments on commit 5fbf6a7

Please sign in to comment.