semvec/pypi-packages huggingface dataset:
Sastrawi 1.0.1
Library for stemming Indonesian (Bahasa) text
License: MIT
Keywords: linguistic stemming indonesian bahasa

Sastrawi
========

| Sastrawi is a simple Python library which allows you to reduce
  inflected words in Indonesian Language (Bahasa Indonesia) to their
  base form (`stem`_).
| This is Python port of the original `Sastrawi`_ project written in
  PHP.

|Build Status|
|Coverage Status|

Installation
------------

Sastrawi can be installed via `pip`_, by running the following commands
in terminal/command prompt : ``pip install Sastrawi``

Example Usage
-------------

Run the following commands in *Python interactive terminal* :

.. code:: python

    # import Sastrawi package
    from Sastrawi.Stemmer.StemmerFactory import StemmerFactory

    # create stemmer
    factory = StemmerFactory()
    stemmer = factory.create_stemmer()

    # stem
    sentence = 'Perekonomian Indonesia sedang dalam pertumbuhan yang membanggakan'
    output   = stemmer.stem(sentence)

    print(output)
    # ekonomi indonesia sedang dalam tumbuh yang bangga

    print(stemmer.stem('Mereka meniru-nirukannya'))
    # mereka tiru

Demo
---------

Live demo : https://pysastrawi-demo.appspot.com/

Repository : https://github.com/har07/pystastrawi-demo

More Info
---------

-  `Sastrawi PHP Repository page`_

.. _stem: http://en.wikipedia.org/wiki/Stemming
.. _Sastrawi: https://github.com/sastrawi/sastrawi
.. _pip: https://docs.python.org/3.6/installing/index.html
.. _Sastrawi PHP Repository page: https://github.com/sastrawi/sastrawi

.. |Build Status| image:: https://travis-ci.org/har07/PySastrawi.svg?branch=master
   :target: https://travis-ci.org/har07/PySastrawi
.. |Coverage Status| image:: https://coveralls.io/repos/har07/sastrawi/badge.svg?branch=master&service=github
   :target: https://coveralls.io/github/har07/sastrawi?branch=master
dialog-watson-client 1.0.2
Client for dialog watson module
License: MIT
Keywords: natural langage dialog robot watson IBM

# dialog-watson-client

Client for dialogs watson module

## Requirements

- **Python 2.7**
- **Pip**

## Installation

Install with pip: `pip install dialog-watson-client`

## Run the playground

Simply run in command line: `dialog-watson-client --name=dialog-name path/to/dialog/file [--clean](optional: clean your dialogs in watson)` and you will chat with your robot

**At the first launch it will create a config file located to `~/.config-dialog-watson.yml` and ask you your watson credentials**

## Usage for developers

Bootstrap example:

```python
from dialog_watson_client.Client import Client
watsonClient = Client('user_watson', 'password_watson', 'file/path/to/dialog', 'your_dialog_name') # this library abstract the registering of dialog (and the update when you cahnge it) and run it, to do that it will store your dialog id in a file called `dialog_id_file.txt`
watsonClient.start_dialog() # this will create the dialog into watson or update it and run the initialization of the conversation

resp = watsonClient.converse('hi') # talk to the robot, here it will say 'hi' and watson will answered
print resp.response # show the response from watson
watsonClient.get_profile().get_data() # get extracted data from watson in format: [key => value]
```

**Note**: If your file is in xml (and you have `lxml` lib installed) it will also check your format with xsd: https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/dialog/download/WatsonDialogDocument_1.0.xsd