Menu

Tree [054512] master /
 History

HTTPS access


File Date Author Commit
 config 2022-11-16 Christophe Lohr Christophe Lohr [054512] Initial commit
 launch 2022-11-16 Christophe Lohr Christophe Lohr [054512] Initial commit
 src 2022-11-16 Christophe Lohr Christophe Lohr [054512] Initial commit
 srv 2022-11-16 Christophe Lohr Christophe Lohr [054512] Initial commit
 CMakeLists.txt 2022-11-16 Christophe Lohr Christophe Lohr [054512] Initial commit
 COPYING 2022-11-16 Christophe Lohr Christophe Lohr [054512] Initial commit
 README.md 2022-11-16 Christophe Lohr Christophe Lohr [054512] Initial commit
 package.xml 2022-11-16 Christophe Lohr Christophe Lohr [054512] Initial commit

Read Me

grammalecte4ros

A minimalist Grammalecte wrapper for ROS

Grammalecte is an open source spell and grammar checker, coded in Python, supporting for now French and Occitan.
It is used here in a non-interactive way; for each detected error, the first correction suggestion is blindly accepted.
The idea could be to use this in conjunction with a speech-to-text or a chatbot, in an attempt to possibly slimly improve the quality of the interactions... maybe...
This ros node has been tested with Grammalecte 2.1.2.

System dependency

  • Make sure the necessary system dependencies are installed:
sudo apt-get install python3-grammalecte
  • You may also be interested in the command-line interface, despite it is not mandatory for this ros node
sudo apt-get install grammalecte-cli
  • Note that, at the time of wrigting this, a 'pip install pygrammalecte' provides Grammalecte 1.3.0, which is not compatible with this ros node

Tests

  • Do the typical ROS & catkin stuff according to your favorite cookbook, eg.:
$ mkdip -p ~/catkin_ws/src  
$ cd ~/catkin_ws  
$ catkin_make  
$ git clone  https://git.code.sf.net/p/grammalecte4ros/code  src/grammalecte4ros  
$ . devel/setup.bash  
$ catkin_make  
$ . devel/setup.bash  
$ roscore &  
  • Start the grammalecte4ros node:
$ rosrun grammalecte4ros grammalecte_node &
  • Test it with a simple call to it service:
$ rosservice call /grammalecte/correct 'input: "Dès que le vent soufflera, je repartira."'
MongoDB Logo MongoDB