Skip to content

Commit

Permalink
tagSchemeConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
jiesutd committed Jun 25, 2018
1 parent 4729cee commit 084bae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ NCRF++ is designed in three layers (shown below): character sequence layer; word
* NCRF++ supports both BIO and BIOES(BMES) tag scheme.
* Notice that IOB format (***different*** from BIO) is currently not supported, because this tag scheme is old and works worse than other schemes [Reimers and Gurevych, 2017](https://arxiv.org/pdf/1707.06799.pdf).
* The difference among these three tag schemes is explained in this [paper](https://arxiv.org/pdf/1707.06799.pdf).
* I have written a [script](utils/tagSchemeConvertor.py) which converts the tag scheme among IOB/BIO/BIOES. Welcome to have a try.
* I have written a [script](utils/tagSchemeConverter.py) which converts the tag scheme among IOB/BIO/BIOES. Welcome to have a try.


3.Performance
Expand Down
4 changes: 2 additions & 2 deletions utils/tagSchemeConvertor.py → utils/tagSchemeConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @Author: Jie Yang
# @Date: 2017-11-27 16:53:36
# @Last Modified by: Jie Yang, Contact: [email protected]
# @Last Modified time: 2018-06-21 22:52:25
# @Last Modified time: 2018-06-25 10:26:30


"""
Expand Down Expand Up @@ -122,7 +122,7 @@ def choose_label(input_file, output_file):
if __name__ == '__main__':
'''Convert NER tag schemes among IOB/BIO/BIOES.
For example: if you want to convert the IOB tag scheme to BIO, then you run as following:
python NERSchemeConvertor.py IOB2BIO input_iob_file output_bio_file
python NERSchemeConverter.py IOB2BIO input_iob_file output_bio_file
Input data format is the standard CoNLL 2003 data format.
'''
if sys.argv[1].upper() == "IOB2BIO":
Expand Down

0 comments on commit 084bae9

Please sign in to comment.