Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    onahjay
    @onahjay
    Hi, I've been working with NLPCraft for a few days and got some of the examples to work. However, I've been unable to set up the SQL example. Currently, I'm getting quite a few errors related to the dependencies, including the Scala dependencies. I think it's related to the versions I'm using, so I was wondering what dependencies I need and what versions I should be using. Thanks for the help.
    Aaron Radzinski
    @aradzinski
    You can see all necessary dependecies in pom.xml
    Also, what's version of NLPCraft you are using? I'm assuming just 'master', correct?
    Aaron Radzinski
    @aradzinski
    skhdl
    @skhdl
    Please file an issue with version number, errors log etc - we'll look at it and help you
    onahjay
    @onahjay
    I'm using version 0.5.0. Should I be using the 'NLPCraft Parent' or the 'NLPCraft' pom.xml?
    Aaron Radzinski
    @aradzinski
    pom.xml (not parent)
    For SQL example - I’d definitely look at the latest master
    it’s been improved quite a bit
    we are trying to release 0.6.2 but running into some legal/licensing clarifications wtih ASF - so it’s delayed for this reason
    onahjay
    @onahjay
    Thanks for the help. It's working now
    Aaron Radzinski
    @aradzinski
    Glad it worked! Ping us if you have any other questions - we’d love to help.
    onahjay
    @onahjay
    Hi again. This might be a complicated question, but if you give me any help that would be great. I'm trying to extend the sql example, but I'm using a postgres database that doesn't work with the H2 server. Is there a simple solution to this problem? If not, do you have any suggestions about how to make it work? Thanks again for the help
    onahjay
    @onahjay
    Just checking in to follow up on my last message. I'm able to start the postgres server, but I don't know how to connect the probe to it. Hopefully that clarification makes the question easier.
    Aaron Radzinski
    @aradzinski
    @skhdl I think you should answer this…. (you worked on SQL example)
    (Apologies for the late response)
    skhdl
    @skhdl

    Hi @onahjay ! Pleasel look at org.apache.nlpcraft.examples.sql.db.SqlAccess - it contains H2 related logic (getConnection method)

    Note please that SqlModel is just an example of usage nlpcraft for db request generation, but not the final product.
    You have to change and adapt this example according to your own needs.

    Sree Vaddi
    @sreev
    Hello NLPCraft
    Sree Vaddi
    @sreev
    Aaron Radzinski
    @aradzinski
    we’ll review in a few days - thanks for PRs!
    Aaron Radzinski
    @aradzinski
    merged
    Sree Vaddi
    @sreev
    thank you, @aradzinski .
    the other PR stuck at build using java 11.
    Sree Vaddi
    @sreev
    Sree Vaddi
    @sreev
    it's bin/nlpcraft.sh. documentation needs the name change.
    Aaron Radzinski
    @aradzinski
    thanks - will look at it shortly!
    nccurl.sh has been deprecated (and removed)
    Alexey Domozhirov
    @aldomozhirov

    Hi! I'm trying to get started with nlpcraft server, but when executing command bin/nlpcraft.sh start-server (on latest version) I'm getting following scala exception. Could you please say what might be the problem? Thanks in advance for the answer!

    Exception in thread "main" java.lang.NullPointerException: Cannot read the array length because "$this" is null
    at scala.collection.mutable.ArrayOps$ofRef$.length$extension(ArrayOps.scala:204)
    at scala.collection.mutable.ArrayOps$ofRef.length(ArrayOps.scala:204)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:35)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli$.cleanUpTempFiles(NCCli.scala:473)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli$.delayedEndpoint$org$apache$nlpcraft$model$tools$cmdline$NCCli$1(NCCli.scala:3069)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli$delayedInit$body.apply(NCCli.scala:75)
    at scala.Function0.apply$mcV$sp(Function0.scala:39)
    at scala.Function0.apply$mcV$sp$(Function0.scala:39)
    at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
    at scala.App.$anonfun$main$1$adapted(App.scala:80)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.App.main(App.scala:80)
    at scala.App.main$(App.scala:78)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli$.main(NCCli.scala:75)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli.main(NCCli.scala)
    Alekseis-MacBook-Pro:apache-nlpcraft aleksei$ java11
    Alekseis-MacBook-Pro:apache-nlpcraft aleksei$ bin/nlpcraft.sh
    Exception in thread "main" java.lang.NullPointerException
    at scala.collection.mutable.ArrayOps$ofRef$.length$extension(ArrayOps.scala:204)
    at scala.collection.mutable.ArrayOps$ofRef.length(ArrayOps.scala:204)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:35)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli$.cleanUpTempFiles(NCCli.scala:473)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli$.delayedEndpoint$org$apache$nlpcraft$model$tools$cmdline$NCCli$1(NCCli.scala:3069)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli$delayedInit$body.apply(NCCli.scala:75)
    at scala.Function0.apply$mcV$sp(Function0.scala:39)
    at scala.Function0.apply$mcV$sp$(Function0.scala:39)
    at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
    at scala.App.$anonfun$main$1$adapted(App.scala:80)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.App.main(App.scala:80)
    at scala.App.main$(App.scala:78)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli$.main(NCCli.scala:75)
    at org.apache.nlpcraft.model.tools.cmdline.NCCli.main(NCCli.scala)

    Aaron Radzinski
    @aradzinski
    Hi Alexey!
    What OS/JDK you are using?
    Alexey Domozhirov
    @aldomozhirov
    Hey! I'm using MacOS Catalina 10.15.7, openjdk 16.0.1
    But also tried with openjdk 11
    Aaron Radzinski
    @aradzinski
    NLPCraft 0.7.4?
    Alexey Domozhirov
    @aldomozhirov
    Yes, the latest one from here: https://nlpcraft.apache.org/download.html
    But also tried with 0.7.3 - the same outcome :(
    Aaron Radzinski
    @aradzinski
    I’ve just downloaded 0.7.4 (bin) and tested it on Mac OS 11.2.3 + jdk 11.0.8
    any chance you can download the latest ‘master’ and try it out?
    Alexey Domozhirov
    @aldomozhirov
    Sure, will do it right now
    Alexey Domozhirov
    @aldomozhirov
    Hmm... Now having:
    X Server failed to start: Cannot run program "/usr/bin/java" (in directory "/Users/aleksei/incubator-nlpcraft"): /Users/aleksei/.nlpcraft/server_log_1619108354386.txt (No such file or directory)
    Aaron Radzinski
    @aradzinski
    that’s strange
    I don’t think we test on MacOS 10.x - but it’s hard to see what can be wrong
    I’ve just run ‘master’ on 11.2.3 and it works fine
    can you try to remove ‘~/.nlpcraft’ folder and try again?