base_name = basename(file)
// sent_id should be valid
f = open(file)
sentences = f.read().split("\n\n")
for sentence in sentences:
nodes = sentence.split("\n")
comment_nodes = [node for node in nodes if node.startswith("//")]
has_sent_id = False
After Change
if line == "\n":
if previous_line is None:
previous_line = "\n"
elif previous_line == "\n":
stop_reading = True
previous_line = None
sentence += line
else:
sentence += line