4AI/TDEER

Duplicated code logic in source?

Closed this issue · 1 comments

I guess whether there is some duplicated logic in Utils.py this file:

please see the picture.
entity = self.decode_entity(text, mapping, head, tail)
on the top of this picture, sub entity is decoded, then save in subjects.
when iterating the subjects list, sub entity is decoded twice again.

image

Oh, it is really duplicated code, I will remedy this later. Many thanks to @DantaAlighieri