tree: b62688667e4cf112e9a504f6a1e7a5382f2bcb9b [path history] [tgz]
  1. marvin_nlp_ner_engine/
  2. notebooks/
  3. tests/
  4. .bumpversion.cfg
  5. .coveragerc
  6. .gitignore
  7. CHANGES.md
  8. Dockerfile
  9. docs.yaml
  10. engine.messages
  11. engine.metadata
  12. engine.params
  13. fabfile.py
  14. feedback.messages
  15. INSTALL
  16. LICENSE
  17. Makefile
  18. MANIFEST.in
  19. marvin.ini
  20. pytest.ini
  21. README.md
  22. setup.cfg
  23. setup.py
  24. tox.ini
public-engines/nlp-ner-engine/README.md

nlp_ner v0.0.1

Overview

Named-Entity-Recognition example using Marvin platform

Requirements

REPLACE: Add here the list of requirements. For example:

  • Python 2.7
  • Numpy 1.11.0 or higher

Installation

_REPLACE: Add here the best way to install this engine

Development

Getting started

First, create a new virtualenv

mkvirtualenv marvin_nlp_ner_engine_env

Now install the development dependencies

make marvin

You are now ready to code.

Adding new dependencies

It`s very important. All development dependencies should be added to setup.py.

Running tests

This project uses py.test as test runner and Tox to manage virtualenvs.

To run all tests use the following command

marvin test

To run specific test

marvin test tests/test_file.py::TestClass::test_method

Writting documentation

The project documentation is written using Jupyter notebooks. You can start the notebook server from the command line by running the following command

marvin notebook

Use notebooks to demonstrate how to use the lib features. It can also be useful to show some use cases.

Bumping version

marvin pkg-bumpversion [patch|minor|major]
git add . && git commit -m "Bump version"

Tagging version

marvin pkg-createtag
git push origin master --follow-tags

Logging

The default log level is set to WARNING. You can change the log level at runtime setting another value to one of the following environment variable: MARVIN_NLP_NER_ENGINE_LOG_LEVEL or LOG_LEVEL. The available values are CRITICAL, ERROR, WARNING, INFO and DEBUG.

Be careful using LOG_LEVEL, it may affect another lib.