@layerize<EOL>def Prefix(docs, drop=<NUM_LIT:0.0>):
ids = numpy.zeros((sum(len(doc) for doc in docs),), dtype="<STR_LIT:i>")<EOL>i = <NUM_LIT:0><EOL>for doc in docs:<EOL><INDENT>for token in doc:<EOL><INDENT>ids[i] = token.prefix<EOL>i += <NUM_LIT:1><EOL><DEDENT><DEDENT>return ids, None<EOL>
Get prefixes.