Search Unity

Local Natural Language Processing Library?

Discussion in 'General Discussion' started by greglieb, Sep 13, 2018.

  1. greglieb

    greglieb

    Joined:
    Jul 22, 2014
    Posts:
    9
    Hey folks,

    I am working on a Grammar game and would like to leverage Part-Of-Speech tagging from a NLP library. I have found lots of online options for NLP libraries such as Google Cloud Natural Language, but I'm wondering if any Unity plugins exist to run a NLP library locally on a client device.

    If no plugins exist, could I possibly take something like https://spacy.io/ which is written in Cython, compile it to a dll, then wrap that as a Unity plugin?
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    4,831
    Instead of trying to convert, which may be none trivial task, you should focus on building an interface, which will talk between Unity and python app, if that what you want.
     
  3. greglieb

    greglieb

    Joined:
    Jul 22, 2014
    Posts:
    9
    I'm deploying this game as a mobile app on iOS and Android, so bundling the NLP library with the game is essential. Given the file size demands of the English language NLP data, I have decided I am better off running a 100% server-side NLP implementation.