Open xinlutu2 opened 4 years ago
@xinlutu2 Not a contributor or maintainer of spark-corenlp
, but I suspect you're on your own to deal with empty strings. This library is a very thin wrapper around CoreNLP, and wouldn't be the place to handle empty strings.
One option might be to use filter
on your data to remove rows where your column is empty.
Error: org.apache.spark.SparkException: Failed to execute user defined function(anonfun$sentiment$1: (string) => int)
Any plans to catch this issue properly?