"[SOLVED] How to filter documents by their length?"


Hi forum,
I wonder if somebody knows how to filter documents by their length instead of their content. I need to remove short documents from my training examples. But I could only find "Filter Document by Contents" which I think cannot be used for this case.
Thanks all
I wonder if somebody knows how to filter documents by their length instead of their content. I need to remove short documents from my training examples. But I could only find "Filter Document by Contents" which I think cannot be used for this case.
Thanks all
Tagged:
0
Answers
see the answer below for a better way of doing it. However, it is also possible to do it this way which allows for more complex filtering if needed: Regards,
Marco
There is always "Filter Tokens by Length". This will work on documents because these are just tokens.
Here's an example regards
Andrew