def Shape(docs, drop=0.0):
    """Get word shapes."""
    ids = numpy.zeros((sum(len(doc) for doc in docs),), dtype="i")
    i = 0
    for doc in docs:
        for token in doc:
            ids[i] = token.shape
            i += 1
    return ids, None
def Shape ( docs , drop = 0.0 ) : ids = numpy . zeros ( ( sum ( len ( doc ) for doc in docs ) , ) , dtype = "i" ) i = 0 for doc in docs : for token in doc : ids [ i ] = token . shape i += 1 return ids , None
Get word shapes.