def _delete_subaspect_with_single_sent()

in src/models/struxgpt_v2.py [0:0]


    def _delete_subaspect_with_single_sent(self, aspects: List[AspectItem]) -> List[AspectItem]:
        aspects_res = []
        for aspect in aspects:
            if min(aspect.sent_range) < max(aspect.sent_range):
                if len(aspect.subaspects):
                    aspect.subaspects = self._delete_subaspect_with_single_sent(aspect.subaspects)
                aspects_res.append(aspect)

        return aspects_res