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

序列标注预测数据格式问题 #198

Open
LucasGY opened this issue Sep 2, 2022 · 0 comments
Open

序列标注预测数据格式问题 #198

LucasGY opened this issue Sep 2, 2022 · 0 comments

Comments

@LucasGY
Copy link

LucasGY commented Sep 2, 2022

代码位置easynlp.appzoo.sequence_labeling.predictor.py
SequenceLabelingPredictor.preprocess

text_a = record[self.first_sequence] if self.tokenized else " ".join(record[self.first_sequence])
# record[self.first_sequence] = '中 国 最 棒'
# text_a = '中  国  最  棒' (多加了一个空格)

除非指明要预测的序列不包含空格间隔,不然会多一个空格。

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

1 participant