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
Filter out rows with dictionary terms
Hi! I have a problem that appeared quite simple at first glance, but I really don't know how to solve it.
So, if the first file contains:
attr.1 attr.2
Sun Sun is shining
Rain Rain is falling
and the second contains:
attr.1
Sun
Moon
I want to get the second row from the first file as an output.
I guess there must be some easy solution for that. Thanks!
- I have a file with several text attributes (attr1, attr2)
- I have a long list of terms in another file.
So, if the first file contains:
attr.1 attr.2
Sun Sun is shining
Rain Rain is falling
and the second contains:
attr.1
Sun
Moon
I want to get the second row from the first file as an output.
I guess there must be some easy solution for that. Thanks!
Tagged:
0
Answers
1. Apply "Process documents" operator with dictionary terms as a word list to create a binary vector;
2. Filter out examples that don't have positive attributes.
Not really sure that this solution is the best one.