A filtering keywords extraction function that takes the posts classified by a naive classfication method as the train set. Obtaining each person's filtering keywords and their weight which represented by their tfidf.
Parameters | Necessity | Type | Description |
---|---|---|---|
pid | required | int | the serial number of a certain person in the database |
potential_posts | required | list | A list of potential related posts in which the name of the person in the database appeared |
Parameters | Type | Description |
---|---|---|
filter_words | list | A list of filter keywords to the person in the database |
fw_weight | list | A list of weights correspond to the filter keywords |