I am new to Spark and scala things. I am using an NLP package to analysis a book. The NLP method gives result spark.sql.DataFrame = [result: string] looks like:
| Result|
| a, b, c, d|
| e,f,g|
In order to calculate numbers every word appears, I want to separate a string into multiple rows like:
|Result|
| a|
| b|
| c|
| ...|
Or do you have any suggestions about how to do words count based on a DataFrame with structure [result: string]?