i have sample.txt:
1 2 3
1 3 2 1 2
1 2 5
6
how to convert this to become sequence array same as
(Seq( Array(Array(1), Array(2), Array(3)),
Array(Array(1), Array(3), Array(2), Array(1), Array(2)),
Array(Array(1), Array(2), Array(5)),
Array(Array(6) )
i want to try using text file for prefixSpan mllib Spark, check this