process_tokens() in utils.py
未关闭
- 主要语言
- Python
- 星标
- 1.5k
- 派生
- 668
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
I have a question about process_tokens(temp_tokens) in utils.py.
After invoke the function of process_tokens(),
the punctuation in [-−—–/~"\\'“’”‘°] will split temp_tokens again.
This may result in some items of "xi = [process_tokens(tokens) for tokens in xi] " whose length are 0.
In other words, some items in the xi may be ""(empty string).
I think this is not necessary.
From my experiment, if i remove process_tokens(), the performance will decrease.
If i reserve process_tokens() and remove the empty string in xi, the performance seems to almost the same.
Thanks.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。