Spaces:
Sleeping
Sleeping
File size: 455 Bytes
9575051 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
def parseFile():
# Open a file in read mode ('r')
with open('data.txt', 'r') as file:
# Read the entire content of the file into a string
file_content = file.read()
# Print or use the file content as needed
return(file_content)
fileContent = parseFile()
fileContent = fileContent.split(";")
print(fileContent)
output = []
for bullet in fileContent:
text = bullet.split("text:")[0].split("score:")[0]
print(text) |