Spaces:
Runtime error
Runtime error
ManishThota
commited on
Update src/utils.py
Browse files- src/utils.py +0 -15
src/utils.py
CHANGED
@@ -32,21 +32,6 @@ def parse_string(string, tags):
|
|
32 |
|
33 |
return results
|
34 |
|
35 |
-
# def parse_annotations(annotations_list):
|
36 |
-
# """
|
37 |
-
# Converts a list of annotations into a dictionary of key-value pairs.
|
38 |
-
|
39 |
-
# Args:
|
40 |
-
# annotations_list (list): A list of annotations in the format 'key: value'.
|
41 |
-
|
42 |
-
# Returns:
|
43 |
-
# dict: A dictionary with annotation keys and values.
|
44 |
-
# """
|
45 |
-
# annotations_dict = {}
|
46 |
-
# for annotation in annotations_list:
|
47 |
-
# key, value = annotation.split(': ')
|
48 |
-
# annotations_dict[key] = int(value)
|
49 |
-
# return annotations_dict
|
50 |
|
51 |
def parse_annotations(annotations_list):
|
52 |
"""
|
|
|
32 |
|
33 |
return results
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
def parse_annotations(annotations_list):
|
37 |
"""
|