GithubHelp home page GithubHelp logo

ucla-bd2k / trainingsetbuilder Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 179 KB

Build a training set for the Aztec tool classification.

Home Page: http://10.44.115.120:8000/classify

Python 83.23% HTML 16.77%

trainingsetbuilder's Introduction

trainingsetbuilder

This project helps us build a training set for the Aztec tool classification project. Users can manually classify publications as either containing a new software tool or not.

#setup
pip install virtualenv
virtualenv --python=`which python` ~/.virtualenvs/django
source ~/.virtualenvs/django/bin/activate
pip install django

#launch
source ~/.virtualenvs/django/bin/activate
python manage.py runserver

Find a tool to classify on localhost:8000/classify/next

View database at localhost:8000/admin

How to add a bunch of new publications to the database(example):

from classify.models import Publication
import urllib2, json

journal = 'Bioinformatics (Oxford, England)'
count = 5000
query = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term="' + journal + '"[Journal]&retmode=json&retmax=' + str(count)

response = urllib2.urlopen(query).read()
data = json.loads(response)
idlist = data["esearchresult"]["idlist"]
for pm_id in idlist:
	p = Publication(pmid=pm_id, classification=-1)
	p.save()

trainingsetbuilder's People

Contributors

bleakley avatar vincekyi avatar

Watchers

James Cloos avatar  avatar  avatar defibull avatar

trainingsetbuilder's Issues

Other journals

Might consider some of the following:

  • IEEE/ACM Trans Comput Biol Bioinform

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.