language.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ==================
  2. Language support
  3. ==================
  4. By default IEPY will use English models, but it's also able to work with different
  5. languages.
  6. The preprocess machinery that's provided by default (Stanford Core NLP) has support
  7. for some other languages, so, check their models and documentation in case you need this.
  8. .. note::
  9. The main goal until now was to architecture IEPY to allow different languages.
  10. Right now, the only fully supported languages are English, Spanish and German. If you need
  11. something else, do not hesitate in contacting us.
  12. Language Installation and Models
  13. --------------------------------
  14. The language models used by IEPY (the information used during preprocessing phase)
  15. are stored on your IEPY installation. Several models for different languages can be
  16. installed on the same installation.
  17. In order to download Spanish models you should run
  18. .. code-block:: bash
  19. iepy --download-third-party-data --lang=es
  20. In order to download German models you should run
  21. .. code-block:: bash
  22. iepy --download-third-party-data --lang=de
  23. .. note::
  24. Check Stanford Core NLP documentation and files to download for more language packages.
  25. Language Definition and Instances
  26. ---------------------------------
  27. Every IEPY instance works for a single language, which is declared on the settings.py file like this:
  28. To change the instance language, change the settings file on the section where it says `IEPY_VERSION`:
  29. ::
  30. IEPY_VERSION = 'en'
  31. To create an IEPY instance for a different language, you should run
  32. .. code-block:: bash
  33. iepy --create --lang=es <folder_path>