Skip to content

Commit 6276f73

Browse files
committed
Fixed type in bert
1 parent 3f04b47 commit 6276f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aml/bert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def get_pairs_and_test(self, reviews_test: List[Review], h_ratio: float, doctype
203203
for y in x:
204204
aspects = result.aspects[index]
205205

206-
if len(aspects) == 0:
206+
if aspects and len(aspects) == 0:
207207
continue
208208

209209
for z in aspects:

0 commit comments

Comments
 (0)