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
how to tag the documents in a directory based on the max term occurnce
hi,
i want to have a separate column which specifies the document belongs to some category.
the brief of it as explained below:
i have directories which consists of various text files.
i want to check how many times is||am||are||has||have (present)
was||were||had (past)
will||shall (future)
occurrence of these will tell whether the document is in present state or past state or future state.
we need to put the number of occurrence of present, past or future in three variables(x,y,z)
After this we calculate the max(x,y,z)
based on which we assign the value to column as present in case of x is maximum, past in case of y is maximum or future in case of z is maximum.
in the result, we need to get one extra column where each row for each document has the value present or past or future.
Please help me out by letting me know how to do that.
Thanks and Regards:
Sukh
i want to have a separate column which specifies the document belongs to some category.
the brief of it as explained below:
i have directories which consists of various text files.
i want to check how many times is||am||are||has||have (present)
was||were||had (past)
will||shall (future)
occurrence of these will tell whether the document is in present state or past state or future state.
we need to put the number of occurrence of present, past or future in three variables(x,y,z)
After this we calculate the max(x,y,z)
based on which we assign the value to column as present in case of x is maximum, past in case of y is maximum or future in case of z is maximum.
in the result, we need to get one extra column where each row for each document has the value present or past or future.
Please help me out by letting me know how to do that.
Thanks and Regards:
Sukh
0