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

Commit 3d2479b

Browse files
author
Peter Izsak
authored
release 0.5.2 (#124)
* bump version * update docs
1 parent 34271e9 commit 3d2479b

File tree

264 files changed

+3767
-4685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+3767
-4685
lines changed

docs-source/source/tagging/ner.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ See ```nlp-train tagger -h``` for full list of options for training.
5252

5353
Running inference on trained model::
5454

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

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

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

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

8787
Running inference on trained model::
8888

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

9191

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

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

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

122122
Running inference on a trained model::
123123

124-
nlp_architect run transformer_token \
124+
nlp-inference transformer_token \
125125
--data_file <path to input file> \
126126
--model_path <path to trained model> \
127127
--model_type [bert, quant_bert, xlnet] \
128128
--output_dir <output path>
129129

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

132132
.. _BIO: https://en.wikipedia.org/wiki/Inside%E2%80%93outside%E2%80%93beginning_(tagging)
133133
.. _`Lample et al.`: https://arxiv.org/abs/1603.01360

docs-source/source/transformers.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Running a model:
7272

7373
.. code-block:: bash
7474
75-
nlp_architect run transformer_glue \
75+
nlp-inference run transformer_glue \
7676
--model_path <path to model> \
7777
--task_name <task_name> \
7878
--model_type bert \

docs/.buildinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 5dd294d4366b7396fcf3f5004c932f42
3+
config: 9119a13eb86ec33f0ffaad24236ad494
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/CONTRIBUTING.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

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

1313

1414

@@ -116,7 +116,6 @@
116116
<p class="caption"><span class="caption-text">For Developers</span></p>
117117
<ul>
118118
<li class="toctree-l1"><a class="reference internal" href="generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
119-
<li class="toctree-l1"><a class="reference internal" href="service.html">REST Server</a></li>
120119
<li class="toctree-l1"><a class="reference internal" href="developer_guide.html">Developer Guide</a></li>
121120
</ul>
122121

docs/_images/service_deploy.png

-8.74 KB
Binary file not shown.

docs/_modules/index.html

+15-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

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

1313

1414

@@ -116,7 +116,6 @@
116116
<p class="caption"><span class="caption-text">For Developers</span></p>
117117
<ul>
118118
<li class="toctree-l1"><a class="reference internal" href="../generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
119-
<li class="toctree-l1"><a class="reference internal" href="../service.html">REST Server</a></li>
120119
<li class="toctree-l1"><a class="reference internal" href="../developer_guide.html">Developer Guide</a></li>
121120
</ul>
122121

@@ -185,7 +184,9 @@ <h1>All modules for which code is available</h1>
185184
<li><a href="nlp_architect/api/intent_extraction_api.html">nlp_architect.api.intent_extraction_api</a></li>
186185
<li><a href="nlp_architect/api/machine_comprehension_api.html">nlp_architect.api.machine_comprehension_api</a></li>
187186
<li><a href="nlp_architect/api/ner_api.html">nlp_architect.api.ner_api</a></li>
188-
<li><a href="nlp_architect/common/cdc/cluster.html">nlp_architect.common.cdc.cluster</a></li>
187+
<li><a href="nlp_architect/cli.html">nlp_architect.cli</a></li>
188+
<ul><li><a href="nlp_architect/cli/cli_commands.html">nlp_architect.cli.cli_commands</a></li>
189+
</ul><li><a href="nlp_architect/common/cdc/cluster.html">nlp_architect.common.cdc.cluster</a></li>
189190
<li><a href="nlp_architect/common/cdc/mention_data.html">nlp_architect.common.cdc.mention_data</a></li>
190191
<li><a href="nlp_architect/common/cdc/topics.html">nlp_architect.common.cdc.topics</a></li>
191192
<li><a href="nlp_architect/common/config.html">nlp_architect.common.config</a></li>
@@ -270,6 +271,10 @@ <h1>All modules for which code is available</h1>
270271
<li><a href="nlp_architect/models/supervised_sentiment.html">nlp_architect.models.supervised_sentiment</a></li>
271272
<li><a href="nlp_architect/models/tagging.html">nlp_architect.models.tagging</a></li>
272273
<li><a href="nlp_architect/models/temporal_convolutional_network.html">nlp_architect.models.temporal_convolutional_network</a></li>
274+
<li><a href="nlp_architect/models/transformers/base_model.html">nlp_architect.models.transformers.base_model</a></li>
275+
<li><a href="nlp_architect/models/transformers/quantized_bert.html">nlp_architect.models.transformers.quantized_bert</a></li>
276+
<li><a href="nlp_architect/models/transformers/sequence_classification.html">nlp_architect.models.transformers.sequence_classification</a></li>
277+
<li><a href="nlp_architect/models/transformers/token_classification.html">nlp_architect.models.transformers.token_classification</a></li>
273278
</ul><li><a href="nlp_architect/nn/tensorflow/python/keras/callbacks.html">nlp_architect.nn.tensorflow.python.keras.callbacks</a></li>
274279
<li><a href="nlp_architect/nn/tensorflow/python/keras/layers/crf.html">nlp_architect.nn.tensorflow.python.keras.layers.crf</a></li>
275280
<li><a href="nlp_architect/nn/tensorflow/python/keras/utils/layer_utils.html">nlp_architect.nn.tensorflow.python.keras.utils.layer_utils</a></li>
@@ -281,8 +286,12 @@ <h1>All modules for which code is available</h1>
281286
<li><a href="nlp_architect/nn/torch/quantization.html">nlp_architect.nn.torch.quantization</a></li>
282287
</ul><li><a href="nlp_architect/pipelines/spacy_bist.html">nlp_architect.pipelines.spacy_bist</a></li>
283288
<li><a href="nlp_architect/pipelines/spacy_np_annotator.html">nlp_architect.pipelines.spacy_np_annotator</a></li>
284-
<li><a href="nlp_architect/server/serve.html">nlp_architect.server.serve</a></li>
285-
<li><a href="nlp_architect/server/service.html">nlp_architect.server.service</a></li>
289+
<li><a href="nlp_architect/procedures/procedure.html">nlp_architect.procedures.procedure</a></li>
290+
<li><a href="nlp_architect/procedures/registry.html">nlp_architect.procedures.registry</a></li>
291+
<li><a href="nlp_architect/procedures/token_tagging.html">nlp_architect.procedures.token_tagging</a></li>
292+
<li><a href="nlp_architect/procedures/transformers/base.html">nlp_architect.procedures.transformers.base</a></li>
293+
<li><a href="nlp_architect/procedures/transformers/glue.html">nlp_architect.procedures.transformers.glue</a></li>
294+
<li><a href="nlp_architect/procedures/transformers/seq_tag.html">nlp_architect.procedures.transformers.seq_tag</a></li>
286295
<li><a href="nlp_architect/solutions/absa_solution/sentiment_solution.html">nlp_architect.solutions.absa_solution.sentiment_solution</a></li>
287296
<li><a href="nlp_architect/solutions/absa_solution/ui.html">nlp_architect.solutions.absa_solution.ui</a></li>
288297
<li><a href="nlp_architect/solutions/absa_solution/utils.html">nlp_architect.solutions.absa_solution.utils</a></li>
@@ -307,6 +316,7 @@ <h1>All modules for which code is available</h1>
307316
<li><a href="nlp_architect/utils/testing.html">nlp_architect.utils.testing</a></li>
308317
<li><a href="nlp_architect/utils/text.html">nlp_architect.utils.text</a></li>
309318
<li><a href="pathlib.html">pathlib</a></li>
319+
<li><a href="transformers/configuration_roberta.html">transformers.configuration_roberta</a></li>
310320
</ul>
311321

312322
</div>

docs/_modules/nlp_architect/api/abstract_api.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

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

1313

1414

@@ -116,7 +116,6 @@
116116
<p class="caption"><span class="caption-text">For Developers</span></p>
117117
<ul>
118118
<li class="toctree-l1"><a class="reference internal" href="../../../generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
119-
<li class="toctree-l1"><a class="reference internal" href="../../../service.html">REST Server</a></li>
120119
<li class="toctree-l1"><a class="reference internal" href="../../../developer_guide.html">Developer Guide</a></li>
121120
</ul>
122121

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

200-
<span class="kn">from</span> <span class="nn">abc</span> <span class="k">import</span> <span class="n">abstractmethod</span>
199+
<span class="kn">from</span> <span class="nn">abc</span> <span class="kn">import</span> <span class="n">abstractmethod</span>
201200

202201

203202
<span class="n">Not_Implemented</span> <span class="o">=</span> <span class="s1">&#39;Not Implemented&#39;</span>

docs/_modules/nlp_architect/api/base.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

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

1313

1414

@@ -116,7 +116,6 @@
116116
<p class="caption"><span class="caption-text">For Developers</span></p>
117117
<ul>
118118
<li class="toctree-l1"><a class="reference internal" href="../../../generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
119-
<li class="toctree-l1"><a class="reference internal" href="../../../service.html">REST Server</a></li>
120119
<li class="toctree-l1"><a class="reference internal" href="../../../developer_guide.html">Developer Guide</a></li>
121120
</ul>
122121

@@ -197,7 +196,7 @@ <h1>Source code for nlp_architect.api.base</h1><div class="highlight"><pre>
197196
<span class="c1"># limitations under the License.</span>
198197
<span class="c1"># ******************************************************************************</span>
199198
<span class="kn">import</span> <span class="nn">logging</span>
200-
<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>
199+
<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>
201200

202201
<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>
203202

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

216-
<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>
215+
<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>
217216
<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>
218217
<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>
219218
<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>
@@ -229,7 +228,7 @@ <h1>Source code for nlp_architect.api.base</h1><div class="highlight"><pre>
229228
<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>
230229
<span class="k">raise</span> <span class="ne">NotImplementedError</span></div>
231230

232-
<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>
231+
<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>
233232
<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>
234233
</pre></div>
235234

docs/_modules/nlp_architect/api/bist_parser_api.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

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

1313

1414

@@ -116,7 +116,6 @@
116116
<p class="caption"><span class="caption-text">For Developers</span></p>
117117
<ul>
118118
<li class="toctree-l1"><a class="reference internal" href="../../../generated_api/nlp_architect_api_index.html">nlp_architect API</a></li>
119-
<li class="toctree-l1"><a class="reference internal" href="../../../service.html">REST Server</a></li>
120119
<li class="toctree-l1"><a class="reference internal" href="../../../developer_guide.html">Developer Guide</a></li>
121120
</ul>
122121

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

200-
<span class="kn">from</span> <span class="nn">nlp_architect.api.abstract_api</span> <span class="k">import</span> <span class="n">AbstractApi</span>
201-
<span class="kn">from</span> <span class="nn">nlp_architect.pipelines.spacy_bist</span> <span class="k">import</span> <span class="n">SpacyBISTParser</span>
199+
<span class="kn">from</span> <span class="nn">nlp_architect.api.abstract_api</span> <span class="kn">import</span> <span class="n">AbstractApi</span>
200+
<span class="kn">from</span> <span class="nn">nlp_architect.pipelines.spacy_bist</span> <span class="kn">import</span> <span class="n">SpacyBISTParser</span>
202201

203202

204203
<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>
205204
<span class="sd">&quot;&quot;&quot;</span>
206205
<span class="sd"> Bist Parser API</span>
207206
<span class="sd"> &quot;&quot;&quot;</span>
208-
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
207+
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
209208
<span class="bp">self</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="kc">None</span>
210209

211210
<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>

0 commit comments

Comments
 (0)