mirror of
https://github.com/tanyuqian/knowledge-harvest-from-lms.git
synced 2023-06-02 01:35:42 +03:00
updated.
This commit is contained in:
@@ -54,9 +54,9 @@ class EntityTupleSearcher:
|
||||
if cur_ent_idx == n_ents:
|
||||
pred = [min(cur_logprobs), cur_ent_tuple]
|
||||
|
||||
# # filter tuples with only very short entities
|
||||
# if sum([len(ent) for ent in cur_ent_tuple]) == 3 * n_ents:
|
||||
# return
|
||||
# filter tuples with only very short entities
|
||||
if sum([len(ent) for ent in cur_ent_tuple]) == 3 * n_ents:
|
||||
return
|
||||
|
||||
for ent in cur_ent_tuple:
|
||||
for word in ent.split():
|
||||
|
||||
Reference in New Issue
Block a user