Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# create inputs and targets (x and y)
x = []
y = []
for s in seqs:
x.append(" ".join(s.split()[:-1]))
y.append(" ".join(s.split()[1:]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment