Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
release 0.5.2 (#124)
Browse files Browse the repository at this point in the history
* bump version
* update docs
  • Loading branch information
Peter Izsak authored Dec 5, 2019
1 parent 34271e9 commit 3d2479b
Show file tree
Hide file tree
Showing 264 changed files with 3,767 additions and 4,685 deletions.
12 changes: 6 additions & 6 deletions docs-source/source/tagging/ner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ See ```nlp-train tagger -h``` for full list of options for training.

Running inference on trained model::

nlp_architect run tagger --data_file <input data file> --model_dir <model dir> --output_dir <output dir>
nlp-inference tagger --data_file <input data file> --model_dir <model dir> --output_dir <output dir>

See ```nlp_architect run tagger -h``` for full list of options for running a trained model.
See ```nlp-inference tagger -h``` for full list of options for running a trained model.

.. autoclass:: nlp_architect.nn.torch.modules.embedders.CNNLSTM

Expand Down Expand Up @@ -86,10 +86,10 @@ See ```nlp-train tagger -h``` for full list of options for training.

Running inference on trained model::

nlp_architect run tagger --data_file <input data file> --model_dir <model dir> --output_dir <output dir>
nlp-inference tagger --data_file <input data file> --model_dir <model dir> --output_dir <output dir>


See ```nlp_architect run tagger -h``` for full list of options for running a trained model.
See ```nlp-inference tagger -h``` for full list of options for running a trained model.

.. autoclass:: nlp_architect.nn.torch.modules.embedders.IDCNN

Expand Down Expand Up @@ -121,13 +121,13 @@ See ```nlp-train transformer_token -h``` for full list of options for training.

Running inference on a trained model::

nlp_architect run transformer_token \
nlp-inference transformer_token \
--data_file <path to input file> \
--model_path <path to trained model> \
--model_type [bert, quant_bert, xlnet] \
--output_dir <output path>

See ``nlp_architect run tagger -h`` for full list of options for running a trained model.
See ``nlp-inference tagger -h`` for full list of options for running a trained model.

.. _BIO: https://en.wikipedia.org/wiki/Inside%E2%80%93outside%E2%80%93beginning_(tagging)
.. _`Lample et al.`: https://arxiv.org/abs/1603.01360
Expand Down
2 changes: 1 addition & 1 deletion docs-source/source/transformers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Running a model:

.. code-block:: bash
nlp_architect run transformer_glue \
nlp-inference run transformer_glue \
--model_path <path to model> \
--task_name <task_name> \
--model_type bert \
Expand Down
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 5dd294d4366b7396fcf3f5004c932f42
config: 9119a13eb86ec33f0ffaad24236ad494
tags: 645f666f9bcd5a90fca523b33c5a78b7
3 changes: 1 addition & 2 deletions docs/CONTRIBUTING.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Contribution Process &mdash; NLP Architect by Intel® AI Lab 0.5.1 documentation</title>
<title>Contribution Process &mdash; NLP Architect by Intel® AI Lab 0.5.2 documentation</title>



Expand Down Expand Up @@ -116,7 +116,6 @@
<p class="caption"><span class="caption-text">For Developers</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
<li class="toctree-l1"><a class="reference internal" href="service.html">REST Server</a></li>
<li class="toctree-l1"><a class="reference internal" href="developer_guide.html">Developer Guide</a></li>
</ul>

Expand Down
Binary file removed docs/_images/service_deploy.png
Binary file not shown.
20 changes: 15 additions & 5 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Overview: module code &mdash; NLP Architect by Intel® AI Lab 0.5.1 documentation</title>
<title>Overview: module code &mdash; NLP Architect by Intel® AI Lab 0.5.2 documentation</title>



Expand Down Expand Up @@ -116,7 +116,6 @@
<p class="caption"><span class="caption-text">For Developers</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
<li class="toctree-l1"><a class="reference internal" href="../service.html">REST Server</a></li>
<li class="toctree-l1"><a class="reference internal" href="../developer_guide.html">Developer Guide</a></li>
</ul>

Expand Down Expand Up @@ -185,7 +184,9 @@ <h1>All modules for which code is available</h1>
<li><a href="nlp_architect/api/intent_extraction_api.html">nlp_architect.api.intent_extraction_api</a></li>
<li><a href="nlp_architect/api/machine_comprehension_api.html">nlp_architect.api.machine_comprehension_api</a></li>
<li><a href="nlp_architect/api/ner_api.html">nlp_architect.api.ner_api</a></li>
<li><a href="nlp_architect/common/cdc/cluster.html">nlp_architect.common.cdc.cluster</a></li>
<li><a href="nlp_architect/cli.html">nlp_architect.cli</a></li>
<ul><li><a href="nlp_architect/cli/cli_commands.html">nlp_architect.cli.cli_commands</a></li>
</ul><li><a href="nlp_architect/common/cdc/cluster.html">nlp_architect.common.cdc.cluster</a></li>
<li><a href="nlp_architect/common/cdc/mention_data.html">nlp_architect.common.cdc.mention_data</a></li>
<li><a href="nlp_architect/common/cdc/topics.html">nlp_architect.common.cdc.topics</a></li>
<li><a href="nlp_architect/common/config.html">nlp_architect.common.config</a></li>
Expand Down Expand Up @@ -270,6 +271,10 @@ <h1>All modules for which code is available</h1>
<li><a href="nlp_architect/models/supervised_sentiment.html">nlp_architect.models.supervised_sentiment</a></li>
<li><a href="nlp_architect/models/tagging.html">nlp_architect.models.tagging</a></li>
<li><a href="nlp_architect/models/temporal_convolutional_network.html">nlp_architect.models.temporal_convolutional_network</a></li>
<li><a href="nlp_architect/models/transformers/base_model.html">nlp_architect.models.transformers.base_model</a></li>
<li><a href="nlp_architect/models/transformers/quantized_bert.html">nlp_architect.models.transformers.quantized_bert</a></li>
<li><a href="nlp_architect/models/transformers/sequence_classification.html">nlp_architect.models.transformers.sequence_classification</a></li>
<li><a href="nlp_architect/models/transformers/token_classification.html">nlp_architect.models.transformers.token_classification</a></li>
</ul><li><a href="nlp_architect/nn/tensorflow/python/keras/callbacks.html">nlp_architect.nn.tensorflow.python.keras.callbacks</a></li>
<li><a href="nlp_architect/nn/tensorflow/python/keras/layers/crf.html">nlp_architect.nn.tensorflow.python.keras.layers.crf</a></li>
<li><a href="nlp_architect/nn/tensorflow/python/keras/utils/layer_utils.html">nlp_architect.nn.tensorflow.python.keras.utils.layer_utils</a></li>
Expand All @@ -281,8 +286,12 @@ <h1>All modules for which code is available</h1>
<li><a href="nlp_architect/nn/torch/quantization.html">nlp_architect.nn.torch.quantization</a></li>
</ul><li><a href="nlp_architect/pipelines/spacy_bist.html">nlp_architect.pipelines.spacy_bist</a></li>
<li><a href="nlp_architect/pipelines/spacy_np_annotator.html">nlp_architect.pipelines.spacy_np_annotator</a></li>
<li><a href="nlp_architect/server/serve.html">nlp_architect.server.serve</a></li>
<li><a href="nlp_architect/server/service.html">nlp_architect.server.service</a></li>
<li><a href="nlp_architect/procedures/procedure.html">nlp_architect.procedures.procedure</a></li>
<li><a href="nlp_architect/procedures/registry.html">nlp_architect.procedures.registry</a></li>
<li><a href="nlp_architect/procedures/token_tagging.html">nlp_architect.procedures.token_tagging</a></li>
<li><a href="nlp_architect/procedures/transformers/base.html">nlp_architect.procedures.transformers.base</a></li>
<li><a href="nlp_architect/procedures/transformers/glue.html">nlp_architect.procedures.transformers.glue</a></li>
<li><a href="nlp_architect/procedures/transformers/seq_tag.html">nlp_architect.procedures.transformers.seq_tag</a></li>
<li><a href="nlp_architect/solutions/absa_solution/sentiment_solution.html">nlp_architect.solutions.absa_solution.sentiment_solution</a></li>
<li><a href="nlp_architect/solutions/absa_solution/ui.html">nlp_architect.solutions.absa_solution.ui</a></li>
<li><a href="nlp_architect/solutions/absa_solution/utils.html">nlp_architect.solutions.absa_solution.utils</a></li>
Expand All @@ -307,6 +316,7 @@ <h1>All modules for which code is available</h1>
<li><a href="nlp_architect/utils/testing.html">nlp_architect.utils.testing</a></li>
<li><a href="nlp_architect/utils/text.html">nlp_architect.utils.text</a></li>
<li><a href="pathlib.html">pathlib</a></li>
<li><a href="transformers/configuration_roberta.html">transformers.configuration_roberta</a></li>
</ul>

</div>
Expand Down
5 changes: 2 additions & 3 deletions docs/_modules/nlp_architect/api/abstract_api.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>nlp_architect.api.abstract_api &mdash; NLP Architect by Intel® AI Lab 0.5.1 documentation</title>
<title>nlp_architect.api.abstract_api &mdash; NLP Architect by Intel® AI Lab 0.5.2 documentation</title>



Expand Down Expand Up @@ -116,7 +116,6 @@
<p class="caption"><span class="caption-text">For Developers</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../service.html">REST Server</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../developer_guide.html">Developer Guide</a></li>
</ul>

Expand Down Expand Up @@ -197,7 +196,7 @@ <h1>Source code for nlp_architect.api.abstract_api</h1><div class="highlight"><p
<span class="c1"># limitations under the License.</span>
<span class="c1"># ******************************************************************************</span>

<span class="kn">from</span> <span class="nn">abc</span> <span class="k">import</span> <span class="n">abstractmethod</span>
<span class="kn">from</span> <span class="nn">abc</span> <span class="kn">import</span> <span class="n">abstractmethod</span>


<span class="n">Not_Implemented</span> <span class="o">=</span> <span class="s1">&#39;Not Implemented&#39;</span>
Expand Down
9 changes: 4 additions & 5 deletions docs/_modules/nlp_architect/api/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>nlp_architect.api.base &mdash; NLP Architect by Intel® AI Lab 0.5.1 documentation</title>
<title>nlp_architect.api.base &mdash; NLP Architect by Intel® AI Lab 0.5.2 documentation</title>



Expand Down Expand Up @@ -116,7 +116,6 @@
<p class="caption"><span class="caption-text">For Developers</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../service.html">REST Server</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../developer_guide.html">Developer Guide</a></li>
</ul>

Expand Down Expand Up @@ -197,7 +196,7 @@ <h1>Source code for nlp_architect.api.base</h1><div class="highlight"><pre>
<span class="c1"># limitations under the License.</span>
<span class="c1"># ******************************************************************************</span>
<span class="kn">import</span> <span class="nn">logging</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="k">import</span> <span class="n">Union</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Dict</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Union</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Dict</span>

<span class="n">logger</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="vm">__name__</span><span class="p">)</span>

Expand All @@ -213,7 +212,7 @@ <h1>Source code for nlp_architect.api.base</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">default_model</span> <span class="o">=</span> <span class="kc">None</span> <span class="c1"># pre-trained model from library</span>

<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">model_path</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">):</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">model_path</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">):</span>
<span class="k">if</span> <span class="n">model_path</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">load_model</span><span class="p">(</span><span class="n">model_path</span><span class="p">)</span>
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">default_model</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
Expand All @@ -229,7 +228,7 @@ <h1>Source code for nlp_architect.api.base</h1><div class="highlight"><pre>
<div class="viewcode-block" id="ModelAPI.run"><a class="viewcode-back" href="../../../generated_api/nlp_architect.api.html#nlp_architect.api.base.ModelAPI.run">[docs]</a> <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">inputs</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]])</span> <span class="o">-&gt;</span> <span class="n">Dict</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">NotImplementedError</span></div>

<span class="k">def</span> <span class="nf">__call__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">inputs</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]]):</span>
<span class="k">def</span> <span class="fm">__call__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">inputs</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]]):</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">inputs</span><span class="p">)</span></div>
</pre></div>

Expand Down
9 changes: 4 additions & 5 deletions docs/_modules/nlp_architect/api/bist_parser_api.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>nlp_architect.api.bist_parser_api &mdash; NLP Architect by Intel® AI Lab 0.5.1 documentation</title>
<title>nlp_architect.api.bist_parser_api &mdash; NLP Architect by Intel® AI Lab 0.5.2 documentation</title>



Expand Down Expand Up @@ -116,7 +116,6 @@
<p class="caption"><span class="caption-text">For Developers</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../service.html">REST Server</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../developer_guide.html">Developer Guide</a></li>
</ul>

Expand Down Expand Up @@ -197,15 +196,15 @@ <h1>Source code for nlp_architect.api.bist_parser_api</h1><div class="highlight"
<span class="c1"># limitations under the License.</span>
<span class="c1"># ******************************************************************************</span>

<span class="kn">from</span> <span class="nn">nlp_architect.api.abstract_api</span> <span class="k">import</span> <span class="n">AbstractApi</span>
<span class="kn">from</span> <span class="nn">nlp_architect.pipelines.spacy_bist</span> <span class="k">import</span> <span class="n">SpacyBISTParser</span>
<span class="kn">from</span> <span class="nn">nlp_architect.api.abstract_api</span> <span class="kn">import</span> <span class="n">AbstractApi</span>
<span class="kn">from</span> <span class="nn">nlp_architect.pipelines.spacy_bist</span> <span class="kn">import</span> <span class="n">SpacyBISTParser</span>


<div class="viewcode-block" id="BistParserApi"><a class="viewcode-back" href="../../../generated_api/nlp_architect.api.html#nlp_architect.api.bist_parser_api.BistParserApi">[docs]</a><span class="k">class</span> <span class="nc">BistParserApi</span><span class="p">(</span><span class="n">AbstractApi</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Bist Parser API</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="kc">None</span>

<div class="viewcode-block" id="BistParserApi.load_model"><a class="viewcode-back" href="../../../generated_api/nlp_architect.api.html#nlp_architect.api.bist_parser_api.BistParserApi.load_model">[docs]</a> <span class="k">def</span> <span class="nf">load_model</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
Expand Down
Loading

0 comments on commit 3d2479b

Please sign in to comment.