Code Monkey home page Code Monkey logo

biorobotics_naturallanguage's Introduction

Biorobotics_NaturalLanguage

Using the Spacy Parser to build the conceptual dependencies

Setup

Clone this repository into the src folder:

git clone https://github.com/StephanyChanelo/Biorobotics_NaturalLanguage

You need a structure like this: catkin_ws/src/biorobotics_nlu

├── ...
| catkin_ws                   
│   └── src         
│        └── biorobotics_nlu         
|              └── ...
└──

You may need to install the spacy library: https://spacy.io/usage

pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download en_core_web_sm

Build the project

cd catkin_ws
source devel/setup.bash
catkin_make

Initialization

Start ROS in one terminal

roscore

Start the nlu_server on a different terminal

rosrun biorobotics_nlu nlu_server.py

Usage

Run the nlu_client on a different terminal

- python client

rosrun biorobotics_nlu nlu_client.py
NOTE 1: The client will ask you for a command.
NOTE 2: The personal pronouns have to start with capital letters: Robot, Mary, John
For example: 
* go to the bedroom
* give the book to the mother
* go to the kitchen, find Mary and deliver an apple to her
* Robot, give me an apple

- c++ client

NOTE 1: You need to give a command just after the name of the script.
NOTE 2: The personal pronouns have to start with capital letters: Robot, Mary, John
rosrun biorobotics_nlu nlu_server_client_c go to the kitchen

You will have a result like that

ptrans((actor robot)(object robot)(to the kitchen))

biorobotics_naturallanguage's People

Contributors

stephanychanelo avatar

Watchers

Marco Negrete avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.