GithubHelp home page GithubHelp logo

ibent's Introduction

IBEnt

Framework for identifying biomedical entities

Dependencies:

Configuration

A Dockerfile is provided to help with the installation. Build and then run with the -i flag. After setting up the dependencies, you have to run python src/config/config.py to set up some values. You can use the CHEMDNER-patents sample data to check if the system is working correctly. Then run ./benchmarks/check_setup.sh to confirm if everything is set up correctly.

Usage

To run distant supervision multi-instance learning experiments, use src/trainevaluate.py and check mil.sh for an example.

You can either run the system in batch or server mode. Batch mode expects specific data formats and can be used to train classifiers and evaluate on a test set. For example, to train a classifier models/class1.ser.gz from the data on corpus1:

python src/main.py load_corpus --goldstd corpus1
python src/main.py train --goldstd corpus1 --models models/class1

To test with this classifier on corpus2 and save the results to data/results1.pickle:

python src/main.py load_corpus --goldstd corpus2
python src/main.py test --goldstd corpus2 -o pickle data/results1 --models models/class1

To evaluate the results on the corpus2 gold standard:

python src/evaluate.py evaluate corpus2 --results data/results1 --models models/class1

To map the term to the ChEBI ontology:

python src/evaluate.py chebi corpus2 --results data/results1 --models models/class1

If you just want to send text to previously trained classifiers and get results, use the server mode. Start the server with python src/server.py and input text with python src/client. You can also use your own client, sending a POST request to the address in config.host_ip.

ibent's People

Contributors

andrelamurias avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.