Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Update Docs & Update Embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrochukM committed Mar 8, 2018
1 parent 212d191 commit c71365e
Show file tree
Hide file tree
Showing 21 changed files with 304 additions and 423 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PyTorch-NLP

PyTorch-NLP is a library for Natural Language Processing in Python. It's built with the very latest research in mind, and was designed from day one to support rapid prototyping. PyTorch-NLP comes with pre-trained word vectors, iterators, dataset library, metrics, and tokenization. It's commercial open-source software, released under the BSD3 license.
PyTorch-NLP is a library for Natural Language Processing in Python. It's built with the very latest research in mind, and was designed from day one to support rapid prototyping. PyTorch-NLP comes with pre-trained word vectors, iterators, dataset library, metrics, and tokenization. It's open-source software, released under the BSD3 license.

[![codecov](https://codecov.io/gh/PetrochukM/PyTorch-NLP/branch/master/graph/badge.svg)](https://codecov.io/gh/PetrochukM/PyTorch-NLP)
[![Documentation Status](https://readthedocs.org/projects/pytorchnlp/badge/?version=latest)](http://pytorchnlp.readthedocs.io/en/latest/?badge=latest)
Expand Down
4 changes: 1 addition & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
import os
import sys
sys.path.insert(0, os.path.abspath('../torchnlp'))
import torchnlp

# -- Project information -----------------------------------------------------

import io
import re

project = 'PyTorch-NLP'
copyright = '2018, Michael Petrochuk'
author = 'Michael Petrochuk'
Expand Down
17 changes: 10 additions & 7 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
.. Pytorch-NLP documentation master file, created by
sphinx-quickstart on Tue Feb 27 18:27:23 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

:github_url: https://github.com/pytorch/pytorch

Welcome to Pytorch-NLP's documentation!
=======================================

PyTorch-NLP is a library for Natural Language Processing in Python. It's built with the very latest
research in mind, and was designed from day one to support rapid prototyping. PyTorch-NLP comes with
pre-trained word vectors, iterators, dataset library, metrics, and tokenization. It's
open-source software, released under the BSD3 license.

.. toctree::
:maxdepth: 2
:maxdepth: 1
:caption: Package Reference

source/torchnlp
source/torchnlp.datasets
source/torchnlp.metrics
source/torchnlp.nn
source/torchnlp.samplers
source/torchnlp.text_encoders
source/torchnlp.embeddings
source/torchnlp.utils

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
48 changes: 2 additions & 46 deletions docs/source/torchnlp.datasets.rst
Original file line number Diff line number Diff line change
@@ -1,52 +1,8 @@
torchnlp.datasets package
=========================

Submodules
----------

torchnlp.datasets.count module
------------------------------

.. automodule:: torchnlp.datasets.count
:members:
:undoc-members:
:show-inheritance:

torchnlp.datasets.dataset module
--------------------------------

.. automodule:: torchnlp.datasets.dataset
:members:
:undoc-members:
:show-inheritance:

torchnlp.datasets.reverse module
--------------------------------

.. automodule:: torchnlp.datasets.reverse
:members:
:undoc-members:
:show-inheritance:

torchnlp.datasets.simple\_qa module
-----------------------------------

.. automodule:: torchnlp.datasets.simple_qa
:members:
:undoc-members:
:show-inheritance:

torchnlp.datasets.zero\_to\_zero module
---------------------------------------

.. automodule:: torchnlp.datasets.zero_to_zero
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------
All datasets are subclasses of :class:`torchnlp.datasets.Dataset`, which inherits from
:class:`torch.utils.data.Dataset`.

.. automodule:: torchnlp.datasets
:members:
Expand Down
7 changes: 7 additions & 0 deletions docs/source/torchnlp.embeddings.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
torchnlp.embeddings package
===========================

.. automodule:: torchnlp.embeddings
:members:
:undoc-members:
:show-inheritance:
23 changes: 0 additions & 23 deletions docs/source/torchnlp.metrics.rst
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
torchnlp.metrics package
========================

Submodules
----------

torchnlp.metrics.accuracy module
--------------------------------

.. automodule:: torchnlp.metrics.accuracy
:members:
:undoc-members:
:show-inheritance:

torchnlp.metrics.bleu module
----------------------------

.. automodule:: torchnlp.metrics.bleu
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: torchnlp.metrics
:members:
:undoc-members:
Expand Down
23 changes: 0 additions & 23 deletions docs/source/torchnlp.nn.rst
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
torchnlp.nn package
===================

Submodules
----------

torchnlp.nn.attention module
----------------------------

.. automodule:: torchnlp.nn.attention
:members:
:undoc-members:
:show-inheritance:

torchnlp.nn.lock\_dropout module
--------------------------------

.. automodule:: torchnlp.nn.lock_dropout
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: torchnlp.nn
:members:
:undoc-members:
Expand Down
41 changes: 0 additions & 41 deletions docs/source/torchnlp.rst

This file was deleted.

39 changes: 0 additions & 39 deletions docs/source/torchnlp.samplers.rst
Original file line number Diff line number Diff line change
@@ -1,45 +1,6 @@
torchnlp.samplers package
=========================

Submodules
----------

torchnlp.samplers.bucket\_batch\_sampler module
-----------------------------------------------

.. automodule:: torchnlp.samplers.bucket_batch_sampler
:members:
:undoc-members:
:show-inheritance:

torchnlp.samplers.noisy\_sorted\_sampler module
-----------------------------------------------

.. automodule:: torchnlp.samplers.noisy_sorted_sampler
:members:
:undoc-members:
:show-inheritance:

torchnlp.samplers.random\_batch\_sampler module
-----------------------------------------------

.. automodule:: torchnlp.samplers.random_batch_sampler
:members:
:undoc-members:
:show-inheritance:

torchnlp.samplers.sorted\_sampler module
----------------------------------------

.. automodule:: torchnlp.samplers.sorted_sampler
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: torchnlp.samplers
:members:
:undoc-members:
Expand Down
103 changes: 0 additions & 103 deletions docs/source/torchnlp.text_encoders.rst
Original file line number Diff line number Diff line change
@@ -1,109 +1,6 @@
torchnlp.text\_encoders package
===============================

Submodules
----------

torchnlp.text\_encoders.character\_encoder module
-------------------------------------------------

.. automodule:: torchnlp.text_encoders.character_encoder
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.delimiter\_encoder module
-------------------------------------------------

.. automodule:: torchnlp.text_encoders.delimiter_encoder
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.identity\_encoder module
------------------------------------------------

.. automodule:: torchnlp.text_encoders.identity_encoder
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.moses\_encoder module
---------------------------------------------

.. automodule:: torchnlp.text_encoders.moses_encoder
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.reserved\_tokens module
-----------------------------------------------

.. automodule:: torchnlp.text_encoders.reserved_tokens
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.spacy\_encoder module
---------------------------------------------

.. automodule:: torchnlp.text_encoders.spacy_encoder
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.static\_tokenizer\_encoder module
---------------------------------------------------------

.. automodule:: torchnlp.text_encoders.static_tokenizer_encoder
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.subword\_encoder module
-----------------------------------------------

.. automodule:: torchnlp.text_encoders.subword_encoder
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.subword\_text\_tokenizer module
-------------------------------------------------------

.. automodule:: torchnlp.text_encoders.subword_text_tokenizer
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.text\_encoders module
---------------------------------------------

.. automodule:: torchnlp.text_encoders.text_encoders
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.treebank\_encoder module
------------------------------------------------

.. automodule:: torchnlp.text_encoders.treebank_encoder
:members:
:undoc-members:
:show-inheritance:

torchnlp.text\_encoders.word\_encoder module
--------------------------------------------

.. automodule:: torchnlp.text_encoders.word_encoder
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: torchnlp.text_encoders
:members:
:undoc-members:
Expand Down
7 changes: 7 additions & 0 deletions docs/source/torchnlp.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
torchnlp.utils package
===============================

.. automodule:: torchnlp.utils
:members:
:undoc-members:
:show-inheritance:

0 comments on commit c71365e

Please sign in to comment.