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

Fuzzy assign bio tags #22

Open
wants to merge 266 commits into
base: master
Choose a base branch
from
Open

Conversation

tpeng
Copy link
Contributor

@tpeng tpeng commented Aug 4, 2014

allow assign the BIO tags with fuzzy match. this can be useful when having some of partially labelled dataset.

if x != 'O':
return x
return 'O'
return [reduce(select_tag, i) for i in zip(*tag_list)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be implemented without reduce? :) Also, I think it can produce invalid sequences of tags, i.e. what will happen with [B-ORG, I-ORG, I-ORG] + [O, B-ADDR, O]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not reduce? also the tags should not clashes, i added an assertion.

@tpeng tpeng force-pushed the fuzzy-assign-bio-tags branch from 7cb7cc3 to 79460bf Compare November 21, 2014 22:15
this can be useful to generate training data when partialy labeled data
is avaiable
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

Successfully merging this pull request may close these issues.

5 participants