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

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


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

commit a6a3bd2cff7a33aa77e4f4963a1f574559a0b070
Author: Sergey Kamov <[email protected]>
AuthorDate: Wed Jan 5 14:42:36 2022 +0300

    WIP.
---
 .../entity/parser/stanford/NCStanfordEntityParserSpec.scala    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/nlpcraft-stanford/src/test/java/org/apache/nlpcraft/nlp/entity/parser/stanford/NCStanfordEntityParserSpec.scala
 
b/nlpcraft-stanford/src/test/java/org/apache/nlpcraft/nlp/entity/parser/stanford/NCStanfordEntityParserSpec.scala
index 811fb07..a76cf5a 100644
--- 
a/nlpcraft-stanford/src/test/java/org/apache/nlpcraft/nlp/entity/parser/stanford/NCStanfordEntityParserSpec.scala
+++ 
b/nlpcraft-stanford/src/test/java/org/apache/nlpcraft/nlp/entity/parser/stanford/NCStanfordEntityParserSpec.scala
@@ -26,22 +26,22 @@ import org.junit.jupiter.api.Test
 import scala.jdk.CollectionConverters.*
 
 class NCStanfordEntityParserSpec:
-    private val parser = NCStanfordTokenParser(NCStanfordTestConfig.STANFORD)
+    private val tokParser = 
NCStanfordTokenParser(NCStanfordTestConfig.STANFORD)
 
-    parser.start(null)
+    tokParser.start(null)
 
     @Test
     def test(): Unit =
-        val p = NCStanfordEntityParser(
+        val entParser = NCStanfordEntityParser(
             NCStanfordTestConfig.STANFORD,
             Set("city", "date", "number", "email").asJava
         )
 
-        p.start(null)
+        entParser.start(null)
 
         val txt = "Los Angeles today, 23 and [email protected]"
 
-        val res = p.parse(null, null, NCTestUtils.mkTokens(parser, txt))
+        val res = entParser.parse(null, null, NCTestUtils.mkTokens(tokParser, 
txt))
 
         NCTestUtils.printEntities(txt, res.asScala.toSeq)
 

Reply via email to