| @@ -42,6 +42,8 @@ release = '1.0' | |||||
| extensions = [ | extensions = [ | ||||
| 'sphinx.ext.autodoc', | 'sphinx.ext.autodoc', | ||||
| 'sphinx.ext.viewcode', | 'sphinx.ext.viewcode', | ||||
| 'sphinx.ext.autosummary', | |||||
| ] | ] | ||||
| # Add any paths that contain templates here, relative to this directory. | # Add any paths that contain templates here, relative to this directory. | ||||
| @@ -1,62 +1,48 @@ | |||||
| fastNLP.core package | |||||
| ==================== | |||||
| fastNLP.core | |||||
| ============= | |||||
| Submodules | |||||
| ---------- | |||||
| fastNLP.core.action module | |||||
| -------------------------- | |||||
| fastNLP.core.action | |||||
| -------------------- | |||||
| .. automodule:: fastNLP.core.action | .. automodule:: fastNLP.core.action | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.core.metrics module | |||||
| --------------------------- | |||||
| fastNLP.core.metrics | |||||
| --------------------- | |||||
| .. automodule:: fastNLP.core.metrics | .. automodule:: fastNLP.core.metrics | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.core.optimizer module | |||||
| ----------------------------- | |||||
| fastNLP.core.optimizer | |||||
| ----------------------- | |||||
| .. automodule:: fastNLP.core.optimizer | .. automodule:: fastNLP.core.optimizer | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.core.predictor module | |||||
| ----------------------------- | |||||
| fastNLP.core.predictor | |||||
| ----------------------- | |||||
| .. automodule:: fastNLP.core.predictor | .. automodule:: fastNLP.core.predictor | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.core.tester module | |||||
| -------------------------- | |||||
| fastNLP.core.preprocess | |||||
| ------------------------ | |||||
| .. automodule:: fastNLP.core.preprocess | |||||
| :members: | |||||
| fastNLP.core.tester | |||||
| -------------------- | |||||
| .. automodule:: fastNLP.core.tester | .. automodule:: fastNLP.core.tester | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.core.trainer module | |||||
| --------------------------- | |||||
| fastNLP.core.trainer | |||||
| --------------------- | |||||
| .. automodule:: fastNLP.core.trainer | .. automodule:: fastNLP.core.trainer | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| Module contents | |||||
| --------------- | |||||
| .. automodule:: fastNLP.core | .. automodule:: fastNLP.core | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -1,62 +1,36 @@ | |||||
| fastNLP.loader package | |||||
| ====================== | |||||
| fastNLP.loader | |||||
| =============== | |||||
| Submodules | |||||
| ---------- | |||||
| fastNLP.loader.base\_loader module | |||||
| ---------------------------------- | |||||
| fastNLP.loader.base\_loader | |||||
| ---------------------------- | |||||
| .. automodule:: fastNLP.loader.base_loader | .. automodule:: fastNLP.loader.base_loader | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.loader.config\_loader module | |||||
| ------------------------------------ | |||||
| fastNLP.loader.config\_loader | |||||
| ------------------------------ | |||||
| .. automodule:: fastNLP.loader.config_loader | .. automodule:: fastNLP.loader.config_loader | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.loader.dataset\_loader module | |||||
| ------------------------------------- | |||||
| fastNLP.loader.dataset\_loader | |||||
| ------------------------------- | |||||
| .. automodule:: fastNLP.loader.dataset_loader | .. automodule:: fastNLP.loader.dataset_loader | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.loader.embed\_loader module | |||||
| ----------------------------------- | |||||
| fastNLP.loader.embed\_loader | |||||
| ----------------------------- | |||||
| .. automodule:: fastNLP.loader.embed_loader | .. automodule:: fastNLP.loader.embed_loader | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.loader.model\_loader module | |||||
| ----------------------------------- | |||||
| fastNLP.loader.model\_loader | |||||
| ----------------------------- | |||||
| .. automodule:: fastNLP.loader.model_loader | .. automodule:: fastNLP.loader.model_loader | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.loader.preprocess module | |||||
| -------------------------------- | |||||
| .. automodule:: fastNLP.loader.preprocess | |||||
| :members: | |||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| Module contents | |||||
| --------------- | |||||
| .. automodule:: fastNLP.loader | .. automodule:: fastNLP.loader | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -1,46 +1,30 @@ | |||||
| fastNLP.models package | |||||
| ====================== | |||||
| fastNLP.models | |||||
| =============== | |||||
| Submodules | |||||
| ---------- | |||||
| fastNLP.models.base\_model module | |||||
| --------------------------------- | |||||
| fastNLP.models.base\_model | |||||
| --------------------------- | |||||
| .. automodule:: fastNLP.models.base_model | .. automodule:: fastNLP.models.base_model | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.models.char\_language\_model module | |||||
| ------------------------------------------- | |||||
| fastNLP.models.char\_language\_model | |||||
| ------------------------------------- | |||||
| .. automodule:: fastNLP.models.char_language_model | .. automodule:: fastNLP.models.char_language_model | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.models.cnn\_text\_classification module | |||||
| ----------------------------------------------- | |||||
| fastNLP.models.cnn\_text\_classification | |||||
| ----------------------------------------- | |||||
| .. automodule:: fastNLP.models.cnn_text_classification | .. automodule:: fastNLP.models.cnn_text_classification | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.models.sequence\_modeling module | |||||
| ---------------------------------------- | |||||
| fastNLP.models.sequence\_modeling | |||||
| ---------------------------------- | |||||
| .. automodule:: fastNLP.models.sequence_modeling | .. automodule:: fastNLP.models.sequence_modeling | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| Module contents | |||||
| --------------- | |||||
| .. automodule:: fastNLP.models | .. automodule:: fastNLP.models | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -1,54 +1,36 @@ | |||||
| fastNLP.modules.aggregation package | |||||
| =================================== | |||||
| fastNLP.modules.aggregation | |||||
| ============================ | |||||
| Submodules | |||||
| ---------- | |||||
| fastNLP.modules.aggregation.attention module | |||||
| -------------------------------------------- | |||||
| fastNLP.modules.aggregation.attention | |||||
| -------------------------------------- | |||||
| .. automodule:: fastNLP.modules.aggregation.attention | .. automodule:: fastNLP.modules.aggregation.attention | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.aggregation.avg\_pool module | |||||
| -------------------------------------------- | |||||
| fastNLP.modules.aggregation.avg\_pool | |||||
| -------------------------------------- | |||||
| .. automodule:: fastNLP.modules.aggregation.avg_pool | .. automodule:: fastNLP.modules.aggregation.avg_pool | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.aggregation.kmax\_pool module | |||||
| --------------------------------------------- | |||||
| fastNLP.modules.aggregation.kmax\_pool | |||||
| --------------------------------------- | |||||
| .. automodule:: fastNLP.modules.aggregation.kmax_pool | .. automodule:: fastNLP.modules.aggregation.kmax_pool | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.aggregation.max\_pool module | |||||
| -------------------------------------------- | |||||
| fastNLP.modules.aggregation.max\_pool | |||||
| -------------------------------------- | |||||
| .. automodule:: fastNLP.modules.aggregation.max_pool | .. automodule:: fastNLP.modules.aggregation.max_pool | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.aggregation.self\_attention module | |||||
| -------------------------------------------------- | |||||
| fastNLP.modules.aggregation.self\_attention | |||||
| -------------------------------------------- | |||||
| .. automodule:: fastNLP.modules.aggregation.self_attention | .. automodule:: fastNLP.modules.aggregation.self_attention | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| Module contents | |||||
| --------------- | |||||
| .. automodule:: fastNLP.modules.aggregation | .. automodule:: fastNLP.modules.aggregation | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -1,22 +1,12 @@ | |||||
| fastNLP.modules.decoder package | |||||
| =============================== | |||||
| fastNLP.modules.decoder | |||||
| ======================== | |||||
| Submodules | |||||
| ---------- | |||||
| fastNLP.modules.decoder.CRF module | |||||
| ---------------------------------- | |||||
| fastNLP.modules.decoder.CRF | |||||
| ---------------------------- | |||||
| .. automodule:: fastNLP.modules.decoder.CRF | .. automodule:: fastNLP.modules.decoder.CRF | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| Module contents | |||||
| --------------- | |||||
| .. automodule:: fastNLP.modules.decoder | .. automodule:: fastNLP.modules.decoder | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -1,78 +1,54 @@ | |||||
| fastNLP.modules.encoder package | |||||
| =============================== | |||||
| fastNLP.modules.encoder | |||||
| ======================== | |||||
| Submodules | |||||
| ---------- | |||||
| fastNLP.modules.encoder.char\_embedding module | |||||
| ---------------------------------------------- | |||||
| fastNLP.modules.encoder.char\_embedding | |||||
| ---------------------------------------- | |||||
| .. automodule:: fastNLP.modules.encoder.char_embedding | .. automodule:: fastNLP.modules.encoder.char_embedding | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.encoder.conv module | |||||
| ----------------------------------- | |||||
| fastNLP.modules.encoder.conv | |||||
| ----------------------------- | |||||
| .. automodule:: fastNLP.modules.encoder.conv | .. automodule:: fastNLP.modules.encoder.conv | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.encoder.conv\_maxpool module | |||||
| -------------------------------------------- | |||||
| fastNLP.modules.encoder.conv\_maxpool | |||||
| -------------------------------------- | |||||
| .. automodule:: fastNLP.modules.encoder.conv_maxpool | .. automodule:: fastNLP.modules.encoder.conv_maxpool | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.encoder.embedding module | |||||
| ---------------------------------------- | |||||
| fastNLP.modules.encoder.embedding | |||||
| ---------------------------------- | |||||
| .. automodule:: fastNLP.modules.encoder.embedding | .. automodule:: fastNLP.modules.encoder.embedding | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.encoder.linear module | |||||
| ------------------------------------- | |||||
| fastNLP.modules.encoder.linear | |||||
| ------------------------------- | |||||
| .. automodule:: fastNLP.modules.encoder.linear | .. automodule:: fastNLP.modules.encoder.linear | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.encoder.lstm module | |||||
| ----------------------------------- | |||||
| fastNLP.modules.encoder.lstm | |||||
| ----------------------------- | |||||
| .. automodule:: fastNLP.modules.encoder.lstm | .. automodule:: fastNLP.modules.encoder.lstm | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.encoder.masked\_rnn module | |||||
| ------------------------------------------ | |||||
| fastNLP.modules.encoder.masked\_rnn | |||||
| ------------------------------------ | |||||
| .. automodule:: fastNLP.modules.encoder.masked_rnn | .. automodule:: fastNLP.modules.encoder.masked_rnn | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.encoder.variational\_rnn module | |||||
| ----------------------------------------------- | |||||
| fastNLP.modules.encoder.variational\_rnn | |||||
| ----------------------------------------- | |||||
| .. automodule:: fastNLP.modules.encoder.variational_rnn | .. automodule:: fastNLP.modules.encoder.variational_rnn | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| Module contents | |||||
| --------------- | |||||
| .. automodule:: fastNLP.modules.encoder | .. automodule:: fastNLP.modules.encoder | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -1,10 +1,5 @@ | |||||
| fastNLP.modules.interaction package | |||||
| =================================== | |||||
| Module contents | |||||
| --------------- | |||||
| fastNLP.modules.interaction | |||||
| ============================ | |||||
| .. automodule:: fastNLP.modules.interaction | .. automodule:: fastNLP.modules.interaction | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -1,8 +1,5 @@ | |||||
| fastNLP.modules package | |||||
| ======================= | |||||
| Subpackages | |||||
| ----------- | |||||
| fastNLP.modules | |||||
| ================ | |||||
| .. toctree:: | .. toctree:: | ||||
| @@ -11,30 +8,18 @@ Subpackages | |||||
| fastNLP.modules.encoder | fastNLP.modules.encoder | ||||
| fastNLP.modules.interaction | fastNLP.modules.interaction | ||||
| Submodules | |||||
| ---------- | |||||
| fastNLP.modules.other\_modules module | |||||
| ------------------------------------- | |||||
| fastNLP.modules.other\_modules | |||||
| ------------------------------- | |||||
| .. automodule:: fastNLP.modules.other_modules | .. automodule:: fastNLP.modules.other_modules | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.modules.utils module | |||||
| ---------------------------- | |||||
| fastNLP.modules.utils | |||||
| ---------------------- | |||||
| .. automodule:: fastNLP.modules.utils | .. automodule:: fastNLP.modules.utils | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| Module contents | |||||
| --------------- | |||||
| .. automodule:: fastNLP.modules | .. automodule:: fastNLP.modules | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -1,8 +1,5 @@ | |||||
| fastNLP package | |||||
| =============== | |||||
| Subpackages | |||||
| ----------- | |||||
| fastNLP | |||||
| ======== | |||||
| .. toctree:: | .. toctree:: | ||||
| @@ -12,22 +9,12 @@ Subpackages | |||||
| fastNLP.modules | fastNLP.modules | ||||
| fastNLP.saver | fastNLP.saver | ||||
| Submodules | |||||
| ---------- | |||||
| fastNLP.fastnlp module | |||||
| ---------------------- | |||||
| fastNLP.fastnlp | |||||
| ---------------- | |||||
| .. automodule:: fastNLP.fastnlp | .. automodule:: fastNLP.fastnlp | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| Module contents | |||||
| --------------- | |||||
| .. automodule:: fastNLP | .. automodule:: fastNLP | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -1,30 +1,18 @@ | |||||
| fastNLP.saver package | |||||
| ===================== | |||||
| fastNLP.saver | |||||
| ============== | |||||
| Submodules | |||||
| ---------- | |||||
| fastNLP.saver.logger module | |||||
| --------------------------- | |||||
| fastNLP.saver.logger | |||||
| --------------------- | |||||
| .. automodule:: fastNLP.saver.logger | .. automodule:: fastNLP.saver.logger | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| fastNLP.saver.model\_saver module | |||||
| --------------------------------- | |||||
| fastNLP.saver.model\_saver | |||||
| --------------------------- | |||||
| .. automodule:: fastNLP.saver.model_saver | .. automodule:: fastNLP.saver.model_saver | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| Module contents | |||||
| --------------- | |||||
| .. automodule:: fastNLP.saver | .. automodule:: fastNLP.saver | ||||
| :members: | :members: | ||||
| :undoc-members: | |||||
| :show-inheritance: | |||||
| @@ -3,14 +3,24 @@ | |||||
| You can adapt this file completely to your liking, but it should at least | You can adapt this file completely to your liking, but it should at least | ||||
| contain the root `toctree` directive. | contain the root `toctree` directive. | ||||
| Welcome to fastNLP's documentation! | |||||
| =================================== | |||||
| fastNLP documentation | |||||
| ===================== | |||||
| Introduction | |||||
| ------------ | |||||
| API Reference | |||||
| ------------- | |||||
| If you are looking for information on a specific function, class or | |||||
| method, this part of the documentation is for you. | |||||
| .. toctree:: | .. toctree:: | ||||
| :maxdepth: 4 | |||||
| :caption: Contents: | |||||
| :maxdepth: 2 | |||||
| fastNLP | |||||
| fastNLP API <fastNLP> | |||||
| @@ -1,7 +0,0 @@ | |||||
| fastNLP | |||||
| ======= | |||||
| .. toctree:: | |||||
| :maxdepth: 4 | |||||
| fastNLP | |||||