Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported tag format #52

Open
massongit opened this issue Dec 6, 2017 · 2 comments
Open

Supported tag format #52

massongit opened this issue Dec 6, 2017 · 2 comments

Comments

@massongit
Copy link
Contributor

massongit commented Dec 6, 2017

Is supported tag format by deep-crf "[BI] - {Tag Name}" and "O" only?

@aonotas
Copy link
Owner

aonotas commented Dec 11, 2017

I think deep-crf supports BIES-{Tag Name} and O.

@massongit
Copy link
Contributor Author

massongit commented Dec 11, 2017

Accoding to source code, "[ES] - {Tag Name}" are only supported in evaluate mode (That aren't supported in train and test mode).

def replace_S_E_tags(tag_lists):
def rep_func(tag):
tag = re.sub(r'^S-', "B-", tag)
tag = re.sub(r'^E-', "I-", tag)
return tag
return [[rep_func(tag) for tag in tags] for tags in tag_lists]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants