Skip to content

Commit d49a8c5

Browse files
reduce statistics print
1 parent 35c0f9a commit d49a8c5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

flair/exp/print_statistics.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ def main() -> None:
4040
print("Global:")
4141
print_stats(embeddings_vector)
4242

43-
for i, label in enumerate(label_names):
44-
print(f"{label}:")
45-
print_stats(embeddings_vector[label_np == i, :])
43+
print("O:")
44+
print_stats(embeddings_vector[label_np == 0, :])
45+
46+
print("Other than O:")
47+
print_stats(embeddings_vector[label_np != 0, :])
4648

4749

4850
if __name__ == "__main__":

0 commit comments

Comments
 (0)