How to match multiple groups of text terms?

时间:2017-08-14 07:08:38

标签: python text-mining

I'm doing a text mining task now and I have the following question:

How to match multiple groups of text terms using Python?

I have two sides group, one side is book group and the other side is document group. Each group has its terms (T) and contain many items that have their own terms (t). Take one group each side for example:

Book group 1 <T1, T2, T3, T4 >

b1 <t1, t2, t3 >

b2 <t1, t2, t3 >

b3 <t1, t2, t3 >



Book group 2 < T2, T3, T4, T5 >

b4 <t2, t5, t8 >

b5 <t7, t9, t10 >

b6 <t4, t6, t8 >

Document group 1 <T1, T2, T3, T4 >

d1 <t1, t2, t3 >

d2 <t1, t4, t5 >

d3 <t2, t3, t5 >

Example picture


How do I match the groups if they have the same terms, i.e. Book group 1 = Document group 1?

0 个答案:

没有答案