Skip to content

Commit

Permalink
Merge pull request #233 from benfred/minor_doc_fixes
Browse files Browse the repository at this point in the history
Minor doc fixes
  • Loading branch information
Leonid Boytsov authored and GitHub committed Sep 3, 2017
2 parents 6350d29 + 60ecdf6 commit 8f065a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions python_bindings/docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ function should be called first before calling any other method.

.. autofunction:: nmslib.init


.. class:: nmslib.DistType

.. attribute:: FLOAT
.. attribute:: DOUBLE
.. attribute:: INT

.. class:: nmslib.DataType

.. attribute:: DENSE_VECTOR
.. attribute:: OBJECT_AS_STRING
.. attribute:: SPARSE_VECTOR

nmslib.FloatIndex
-----------------

Expand Down
2 changes: 1 addition & 1 deletion python_bindings/nmslib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ void exportIndex(py::module * m) {
.def("knnQueryBatch", &IndexWrapper<dist_t>::knnQueryBatch,
py::arg("queries"), py::arg("k") = 10, py::arg("num_threads") = 0,
"Performs multiple queries on the index, distributing the work over \n"
"a thread pool\n"
"a thread pool\n\n"
"Parameters\n"
"----------\n"
"input: list\n"
Expand Down

0 comments on commit 8f065a9

Please sign in to comment.