This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-513
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft-website.git


The following commit(s) were added to refs/heads/NLPCRAFT-513 by this push:
     new 84ea6d7  WIP.
84ea6d7 is described below

commit 84ea6d7a920b2f203c3f27b25150ae8d83e13d73
Author: skhdl <[email protected]>
AuthorDate: Fri Oct 14 18:39:40 2022 +0400

    WIP.
---
 docs.html | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/docs.html b/docs.html
index 7100234..fb19d6a 100644
--- a/docs.html
+++ b/docs.html
@@ -126,8 +126,26 @@ id: overview
                 <code>Variant filter</code>. Optional component which allows 
filtering detected variants, rejecting undesirable.
             </li>
         </ul>
+
+        <p>
+            Below example if <code>Model</code> creation. 
<code>Pipeline</code> is prepared using <code>NCPipelineBuilder</code> class 
helper.
+        </p>
+
+        <pre class="brush: scala, highlight: []">
+            val pipeline =
+                new NCPipelineBuilder().
+                    withTokenParser(new NCFrTokenParser()).
+                    withTokenEnricher(new NCFrLemmaPosTokenEnricher()).
+                    withTokenEnricher(new NCFrStopWordsTokenEnricher()).
+                    withEntityParser(new 
NCFrSemanticEntityParser("lightswitch_model_fr.yaml")).
+                    build
+            val cfg = NCModelConfig("nlpcraft.lightswitch.fr.ex", "LightSwitch 
Example Model FR", "1.0")
+
+            val mdl = new NCModelAdapter(cfg, pipeline)
+        </pre>
+
         <p>
-             This flexible system allows to create any pipelines on any 
language. You can collect NlpCraft predefined components, write your own and 
easy reuse custom components.
+            This flexible system allows to create any pipelines on any 
language. You can collect NlpCraft predefined components, write your own and 
easy reuse custom components.
         </p>
     </section>
 </div>

Reply via email to