'Using cudf to apply a function on strings
I am trying to implement cudf and just learned that using .apply is not supported with strings. I am currently trying to apply this function
def ngrams(tweet):
test = [x for x in re.sub(r'[^\w\s]','', tweet).split() if not x in stopwords.words("english")]
return list(everygrams(test, 1, 3))
to a series that just contains a bunch of tweets saved as strings. Is there a way around this or will I have to run everything on my CPU? Thank you!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
