Giter Site home page Giter Site logo

lidongrong / cbdb-bio-to-xml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cbdb-project/cbdb-bio-to-xml

0.0 1.0 0.0 0 B

The Python script displayed is a program that converts the txt files after BIO tagging into xml files that are readable on the website Markus for further investigation conducted by experts

Python 100.00%

cbdb-bio-to-xml's Introduction

CBDB-BIO-to-xml

This file is a python package that converts BIO tagged files(in txt format) into xml files. The output files will be uploaded to the website Markus(https://dh.chinese-empires.eu/markus/beta/index.html) for further investigation conducted by experts.

STEP1:

The tagged txt files should be saved in a document folder named "tag_results". At the same time, the folder shall be put under the same directory with bio2markus.py

STEP2:

you could directly run the code in the package or import this module into your own script. In both ways, this python package will read the txt files and output xml files

STEP3:

The output files are of .html format. All output files generated by this package will be saved in a document folder named "markus" which is also placed in the same directory.

PS.

Please make sure that the txt files you would like to parse are of .txt format

My Python version is 3.7.4

#Chinese Version

第一步:

这一Python模块接收的BIO标注文件必须是txt格式。与此同时,这些txt格式文件应当被保存在文件夹"tag_results"中,并且该文件夹需要与bio2markus.py位于同一目录下

第二步:

你可以直接运行脚本中的代码,你也可以使用import命令将这一模块导入你自己的Python脚本中。

第三步:

程序输出的文件格式为 .html。所有输出的文件都被存放于相同目录内名为”markus“的文件夹内。

PS.

请确保所有的输入文件为BIO格式

我的Python版本为3.7.4

cbdb-bio-to-xml's People

Contributors

lidongrong avatar

Watchers

James Cloos 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.