Closed gvanto closed 5 years ago
Done a bit of testing, this seems to work:
class CharFilter implements ITokenTransformation
{
public function transform($word)
{
return trim(preg_replace("/ \D /", "", " $word "));
}
}
Thank you, I will investigate further this weekend.
My tokenDoc->toArray gives output below after applying CharFilter, I was expecting to not see single-character elements still in there?