1

I am trying to install the MITIE as described in the RASA documentation.

Where they are trying to clone and install the repository NLP Mitie using the Python command:

pip install git+https://github.com/mit-nlp/MITIE.git

I am getting this screen: Some permission error

I have also downloaded the NLP Mitie and builded the tools using CMake on Windows successfully.

But I am confused as how to integrate it with RASA NLU.

In the RASA documentation they are including a total_word_feature_extractor.dat in the "mitie_file" key in the config file.

Any Pointers would be helpful as to how to install MITIE and integrate it with RASA.

Kunal Mukherjee
  • 5,775
  • 3
  • 25
  • 53
  • I know I see a decent amount of Windows related requests on the Rasa Github. Some of these ML tools are just harder to get running on Windows. I can't help you specifically get it running on Windows as I don't have a good Windows machine to test it on. But perhaps you could run it in Docker so that you don't have to worry about the specific MITIE setup. – Caleb Keller Dec 01 '17 at 22:02
  • @CalebKeller Any pointers as how to integrate it with RASA after installing MITIE through Docker? – Kunal Mukherjee Dec 02 '17 at 05:00
  • Sorry I was meaning running Rasa with MITIE already connected: `docker run rasa/rasa_nlu:latest-mitie` – Caleb Keller Dec 03 '17 at 00:07
  • @CalebKeller can you tell how to do it with docker? – Kunal Mukherjee Dec 10 '17 at 14:45

1 Answers1

2

For UNIX O.S:

pip install git+https://github.com/mit-nlp/MITIE.git


For Windows O.S:

I solved my issue by doing the following, hope it helps someone in the future.

1) Firstly clone the git package from MITIE's official GIT page.

2) After downloading, Seems like ~\MITIE-master\mitielib has a __init__.py file which makes the directory a valid Python module. Navigate to the ~\MITIE-master\mitielib folder, it will look something like this:

contents of mitielib directory

3) Packages installed from pip reside in the C:\Anaconda3\Lib\site-packages\ directory. Make a new folder called mitie and paste the contents there.

After copying into site-packages folder

4) Lastly modify your configuration file as follows, in the mitie_file key's value provide the path to the total_word_feature_extractor.dat file:

{
    "project": "xyz",
    "path": "C:\\Users\\xyz\\Desktop\\RASA\\models",
    "response_log": "C:\\Users\\xyz\\Desktop\\RASA\\logs",
    "pipeline": ["nlp_mitie", "tokenizer_mitie", "ner_mitie", "ner_synonyms", "intent_entity_featurizer_regex", "intent_classifier_mitie"], 
    "data": "C:\\Users\\xyz\\Desktop\\RASA\\data\\examples\\RASAFormat.json",
    "cors_origins": ["*"],
    "mitie_file" : "C:\\Users\\xyz\\Desktop\\total_word_feature_extractor.dat",
    "aws_endpoint_url": null,
    "token": null,
    "num_threads": 2,
    "port": 5000
}
Kunal Mukherjee
  • 5,775
  • 3
  • 25
  • 53