以下のようにパンダに列があります
0 ['business', 'ceremony', 'festival', 'group']
1 ['mountain', 'outdoors', 'travel', 'tree', 'forest']
2 ['people', 'city', 'politics', 'architecture']
3 ['people', 'politics', 'protest', 'travel']
4 ['automobile', 'business', 'police', 'transporation']
似たような単語を見つけて、列を表すためにいくつかの単語に減らしたい、つまり、似たような単語を減らして、最も一般的な単語を使用したい。
入力:
[automobile, business, police, transportation, vehicle]
出力:
[Vehicle, business, police]
前もって感謝します