Giter Club home page Giter Club logo

genia-tagger-py's Introduction

genia-tagger-py

Python wrapper for GENIA tagger

Example usage

import os
from geniatagger import GENIATagger

executable_path = os.path.join(".", "geniatagger-3.0.2", "geniatagger")
tagger = GENIATagger(executable_path)

text = "Recombinant MIP-1-alpha induces a dose-dependent inhibition of different strains of \
        HIV-1, HIV-2, and simian immunodeficiency virus (SIV)."

for word, base_form, pos_tag, chunk, named_entity in tagger.tag(text):
    print("{:20}{:20}{:10}{:10}{:10}".format(word, base_form, pos_tag, chunk, named_entity))
Recombinant         Recombinant         JJ        B-NP      B-protein 
MIP-1-alpha         MIP-1-alpha         NN        I-NP      I-protein 
induces             induce              VBZ       B-VP      O         
a                   a                   DT        B-NP      O         
dose-dependent      dose-dependent      JJ        I-NP      O         
inhibition          inhibition          NN        I-NP      O         
of                  of                  IN        B-PP      O         
different           different           JJ        B-NP      O         
strains             strain              NNS       I-NP      O         
of                  of                  IN        B-PP      O         
HIV-1               HIV-1               NN        B-NP      O         
,                   ,                   ,         O         O         
HIV-2               HIV-2               NN        B-NP      O         
,                   ,                   ,         O         O         
and                 and                 CC        O         O         
simian              simian              JJ        B-NP      O         
immunodeficiency    immunodeficiency    NN        I-NP      O         
virus               virus               NN        I-NP      O         
(                   (                   (         O         O         
SIV                 SIV                 NN        B-NP      O         
)                   )                   )         O         O         
.                   .                   .         O         O         

genia-tagger-py's People

Contributors

bornabesic avatar

Stargazers

 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.