Created
January 18, 2018 13:40
-
-
Save tuttelikz/618493def84163df4c3e416fb2ed465b to your computer and use it in GitHub Desktop.
This is a simple script to read labels from file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array = [] | |
with open('train_test_data_labels.txt') as fileobj: | |
for line in fileobj: | |
for ch in line: | |
array.append(ch) | |
#print(ch) | |
new_list = [a for a in array if a != '\n'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment