Giter Site home page Giter Site logo

mti's Introduction

MTI Project

Introduce

NIM Medical Text Indexer, use its API to get tags from medical text. I have download its need jar libraries, and give an examples.
Here is Web api link, https://ii.nlm.nih.gov/Web_API/index.shtml
Here is blog link, https://blog.csdn.net/wl1710582732/article/details/79869234

Libraries

  • jars
    • skrAPI.jar
    • httpclint.jar
    • httpcore.jar
    • ...
  • jdk 1.8

eg. All need jars exist MTI/libs, and you must apply an UMLS account to use its Web API.

Batch Solve

Because it says you must only resquest no more than 10 time a minute and a request contains character no more than 10000. So we need batch solve.

  • samples.txt like:
    • 00000011|your medical txt, ...
    • 00000012|your medical txt, ...
    • 00000013|your medical txt, ...
  • result like:
    • 00000011|tag1|...
    • 00000011|tag2|...
    • 00000012|tag3|...
    • 00000013|tag1|...
  • java code:
    • you should add "myGenericObj.setField("SingLinePMID", true);" to your java code.

Conclusion

My code is very easy, and give some medical texts to let you test! Remember use absolute path!
I have give the multi threads method in my code, so you can batch request Web API to solve batchs .txt files.

mti's People

Contributors

wangleihitcs avatar

Stargazers

SONG Yan avatar zhanyuwang avatar  avatar Zhenbang Wu avatar lixiangtnt avatar  avatar yongzhili avatar

Forkers

braindevices

mti's Issues

USML 帐号

帐号注册后一直没回复啊,兄弟你有注册到么?

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.