Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Aaron Radzinski
    @aradzinski
    can you try to remove ‘~/.nlpcraft’ folder and try again?
    Alexey Domozhirov
    @aldomozhirov
    Looks like this folder have not been created for me, as I cannot see it
    I think I will try to upgrade my MacOS version to latest and will see, may be it somehow could affect
    Aaron Radzinski
    @aradzinski
    You don’t have '/Users/aleksei/.nlpcraft’?
    Alexey Domozhirov
    @aldomozhirov
    Nope:
    Alekseis-MacBook-Pro:~ aleksei$ ls /Users/aleksei/.nlpcraft
    ls: /Users/aleksei/.nlpcraft: No such file or directory
    Aaron Radzinski
    @aradzinski
    hmm...
    let me ask around to see if anyone is running MacOS 10.x
    btw, did you download src or bin distribution?
    Alexey Domozhirov
    @aldomozhirov
    I tried downloading src and bin from here https://nlpcraft.apache.org/download.html, and also cloning git repo iself. The outcome is the same :(
    Aaron Radzinski
    @aradzinski
    ok, got it
    can you run “java -version”?
    Alexey Domozhirov
    @aldomozhirov
    Here it is:
    openjdk 16.0.1 2021-04-20
    OpenJDK Runtime Environment (build 16.0.1+9-24)
    OpenJDK 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)
    Aaron Radzinski
    @aradzinski
    it could be openjdk - we don’t test openjdk on macos
    Here’s what I have right now on MacOS 11.2.3:
    ~/incubator-nlpcraft master ❯ java -version
    java version "11.0.8" 2020-07-14 LTS
    Java(TM) SE Runtime Environment 18.9 (build 11.0.8+10-LTS)
    Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode)
    Alexey Domozhirov
    @aldomozhirov
    It is Oracle, right?
    Aaron Radzinski
    @aradzinski
    yes
    Alexey Domozhirov
    @aldomozhirov
    Ok, will try to upgarde my MacOS and install Oracle JDK this time. Thanks for the hint!
    Aaron Radzinski
    @aradzinski
    we’ll do some digging here as well - let us know if you get it to work
    Alexey Domozhirov
    @aldomozhirov
    Ok, thanks for so quick responses!
    skhdl
    @skhdl
    Seems CLI mode is broken for current release (0.7.4).
    Easiest way (before fix which we'll prepare in few days) - start server from IDE - org.apache.nlpcraft.server.NCServer
    Sorry for this inconvenience
    skhdl
    @skhdl
    tested for Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS) 64-Bit (macOS)
    Alexey Domozhirov
    @aldomozhirov

    Hey! I've updated MacOS to version 11.2.3 and changed jdk to Oracle one:

    java 16.0.1 2021-04-20
    Java(TM) SE Runtime Environment (build 16.0.1+9-24)
    Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

    Now when attempting to start server from IntlliJ IDEA IDE (IntelliJ IDEA 2020.3.2 (Ultimate Edition) Build #IU-203.7148.57, built on January 26, 2021), I'm getting following error:

    Module 'nlpcraft' production: java.lang.ExceptionInInitializerError

    Any ideas, might it be connected with IDE or with my local environment?

    skhdl
    @skhdl
    use please java 11
    Alexey Domozhirov
    @aldomozhirov
    Yes, with java 11 it worked 👌 Thanks!
    Aaron Radzinski
    @aradzinski
    we are fixing 0.7.4 and we’ll release 0.7.5 shortly as well - sorry for the instabilities
    Alexey Domozhirov
    @aldomozhirov
    No problem! Thanks a lot for your help 🙏
    Alexey Domozhirov
    @aldomozhirov

    Could you please help me with one more issue? I'm trying to run the probe using JVM run configuration (as described in readme.txt) with server running as separate app. So, the probe is managing to connect to server, but when trying to execute any "ask", I'm getting this in probe logs:

    Apr-23|14:07:23|ERR| Uplink connection failed.
    Apr-23|14:07:23|ERR|   +-+ Error reading data. -> (NCSocket.scala:111)
    Apr-23|14:07:23|ERR|     | o.a.n.common.socket.NCSocket.read -> (NCSocket.scala:111)
    Apr-23|14:07:23|ERR|     | o.a.n.common.util.NCUtils$$anon$3.run -> (NCUtils.scala:985)
    Apr-23|14:07:23|ERR|     +-+ Error deserialization data -> (NCUtils.scala:868)
    Apr-23|14:07:23|ERR|       | o.a.n.common.util.NCUtils$.deserialize -> (NCUtils.scala:868)
    Apr-23|14:07:23|ERR|       | o.a.n.common.socket.NCSocket.read -> (NCSocket.scala:106)
    Apr-23|14:07:23|ERR|       | o.a.n.common.util.NCUtils$$anon$3.run -> (NCUtils.scala:985)
    Apr-23|14:07:23|ERR|       +-+ [java.io.InvalidClassException] org.apache.nlpcraft.common.nlp.NCNlpSentence; local class incompatible: stream classdesc serialVersionUID = -2459378081725392973, local class serialVersionUID = -4180989482790036043 -> (ObjectStreamClass.java:689)
    Apr-23|14:07:23|ERR|         | o.a.n.common.util.NCUtils$.deserialize -> (NCUtils.scala:863)
    Apr-23|14:07:23|ERR|         | o.a.n.common.socket.NCSocket.read -> (NCSocket.scala:106)
    Apr-23|14:07:23|ERR|         | o.a.n.common.util.NCUtils$$anon$3.run -> (NCUtils.scala:985)

    Am I running the probe correctly or missing something?

    Aaron Radzinski
    @aradzinski
    is this ‘master’, MacOS 12.x and JDK 11?
    skhdl
    @skhdl
    Seems like you have different versions probe and server.
    For example, server started from IDE (master branch), and probe 0.7.4 from maven or something like this.
    Can it be?
    Alexey Domozhirov
    @aldomozhirov
    I have now MacOS 12.x and JDK 11. This is not master, but distribution of version 0.7.4. I've started server from IDE in one window and probe in another (the same IDE). Project was generated using gen-project from the same distribution.
    So, both server and probe started from IDE with the same Oracle JDK 11
    Alexey Domozhirov
    @aldomozhirov
    Hmm... Seems like I found the solution. I just started server from my project itself as Run Configuration (as written in readme.txt), but not from distribution (in the same IDE window). Now it's working.
    Aaron Radzinski
    @aradzinski
    Alexey - I would recommend to switch to master (upcoming 0.7.5). This release will bring some chnages that are not backward compatible (esprecially for intent DSL) + plenty of bug fixes
    Aaron Radzinski
    @aradzinski
    @rahul3 can you please review the fix NLPCRAFT-327 and confirm it?
    For some reason I can't assign the ticket to you back...
    rahul3
    @rahul3
    @aradzinski I was working today and didn't have the time to do it sooner. I see the logic is already merged with master. Is any input from me still required?
    Aaron Radzinski
    @aradzinski
    @rahul3 Yes, the bug was fixed in the code (it has to be fixed in the code to affect all possible runtimes such as probe, server and CLI).
    @rahul3 Thanks for pointint this out!
    @rahul3 Rahul - take a look at NLPCRAFT-219, NLPCRAFT-186 and NLPCRAFT-330. These are Python related tickets - may be can takcle some of those!
    rahul3
    @rahul3
    @aradzinski I initially wanted to take on NLPCRAFT-330. That is my original goal but I'm still trying to build a model in Scala to actually use NLPCraft to see what you require. I didn't particulary understand what you mean by native Python client. If I have an example of the functionality required, it would help me understand greatly.
    rahul3
    @rahul3
    @aradzinski On a different note: The examples need to be built into the jar files for the examples in the documentation of the website to work. I foresee that you will eventually get a lot of data scientists curious about NLPCraft but who don't know much java and I see them struggling with this part.
    skhdl
    @skhdl

    Hi @rahul3 !
    Now everything works in the master branch, so you can continue to review examples.

    Native Python client is REST access library for users (It will be more clear after examples review)
    Also you can look at existing Native Java client - https://github.com/apache/incubator-nlpcraft-java-client

    Aaron Radzinski
    @aradzinski
    As a general note - NLPCraft specifically DOES NOT catter to data sciennce crowd. It was specifically designed for commercial software development - and NOT for academic interests.
    NLPCraft fills the void created by dozens of Python frameworks that are unsuitable for the actual commercial software development and, in my personal opinion, stigmed the development and adoption of NLP in enterprise world
    rahul3
    @rahul3
    That makes a lot of sense. I wasn't aware of the audience you intended NLPCraft to be for.
    rahul3
    @rahul3
    There is an issue with the example on the website: https://nlpcraft.apache.org/first-example.html either the param --mdls=demo.LightSwitch needs to be changed to --mdls=demo.LightSwitchModel or the class name needs to be changed in the example code of LightSwitch.scala
    Otherwise we get a java.lang.ClassNotFoundException
    Aaron Radzinski
    @aradzinski
    Good catch! Can you please file the ticket?
    (so that we can track it)
    rahul3
    @rahul3
    Will do within the next 24 hours.