Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
vertices = sc.textFile(path).flatMap(lambda review: dataprep.create_vertices(review))
wordcloud = vertices.map(lambda l: dataprep.clean_vertex(l))
revsents = sc.textFile(path).flatMap(lambda review: dataprep.create_vertices(review))