The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"[SOLVED] How to filter documents by their length?"
mohammadreza
Member Posts: 23 Contributor II
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