You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2022/12/23 18:10:53 UTC

[incubator-nlpcraft] 02/02: Merge branch 'NLPCRAFT-520' of https://github.com/apache/incubator-nlpcraft into NLPCRAFT-520

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

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

commit 7a0ae4d1bbb4c4aa64433660b9babc7cd9e598fb
Merge: f3bfcbc3 0c695b47
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Fri Dec 23 10:10:42 2022 -0800

    Merge branch 'NLPCRAFT-520' of https://github.com/apache/incubator-nlpcraft into NLPCRAFT-520

 .../entity/parser/NCFrSemanticEntityParser.scala   |   2 +-
 .../entity/parser/NCRuSemanticEntityParser.scala   |   2 +-
 .../components/PizzeriaModelPipeline.scala         |   4 +-
 .../stanford/NCStanfordNLPEntityParser.scala       |  14 ++-
 .../parser/stanford/NCStanfordNLPTokenParser.scala |   5 +-
 .../scala/org/apache/nlpcraft/NCEntityParser.scala |  14 +++
 .../org/apache/nlpcraft/NCPipelineBuilder.scala    |   4 +-
 .../nlp/enrichers/NCEnStopWordsTokenEnricher.scala |   2 +-
 .../nlpcraft/nlp/parsers/NCNLPEntityParser.scala   |  10 +-
 .../nlp/parsers/NCOpenNLPEntityParser.scala        |  23 ++---
 .../nlp/parsers/NCSemanticEntityParser.scala       | 114 +++++++++------------
 .../org/apache/nlpcraft/nlp/util/NCTestUtils.scala |   6 +-
 12 files changed, 101 insertions(+), 99 deletions(-)

diff --cc nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCNLPEntityParser.scala
index 2a748616,b184f779..24e75cef
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCNLPEntityParser.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCNLPEntityParser.scala
@@@ -28,12 -28,12 +28,12 @@@ import java.util.stream.Collector
  private object NCNLPEntityParser:
      private val id: String = "nlp:entity"
  
- import org.apache.nlpcraft.nlp.parsers.NCNLPEntityParser.*
+ import NCNLPEntityParser.*
  
  /**
 -  *  NLP data [[NCEntityParser entity parser]].
 +  * NLP data [[NCEntityParser entity parser]].
    *
-   * This parser converts list of input [[NCToken]] instances to list of [[NCEntity]] instances with ID **nlp:entity**.
+   * This parser converts list of input [[NCToken]] instances one-to-one to list of [[NCEntity]] instances with ID **nlp:entity**.
    * All [[NCEntity]] instances contain following mandatory [[NCPropertyMap metadata]] properties:
    *  - nlp:entity:text
    *  - nlp:entity:index