Generate step-entity list.

pull/2175/head
Kim Kulling 2018-09-28 20:10:46 +02:00
parent 35374e777b
commit 42402b2cf3
2 changed files with 1018 additions and 3 deletions

View File

@ -1,10 +1,20 @@
import sys
Entity_token = "ENTITY"
token = [] token = []
file = open(sys.argv[1]) file = open(sys.argv[1])
output = open("step_entitylist.txt", "a") output = open("step_entitylist.txt", "a")
lines = file.readlines() lines = file.readlines()
for line in lines: for line in lines:
pos = line.find("ENTITY") pos = line.find(Entity_token)
if pos != -1: if pos != -1:
token = line.split(" ")
if len(token) > 1:
name = token[1]
print( "Writing entity " + name)
output.write(name)
output.close()
file.close()

File diff suppressed because it is too large Load Diff