Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこれを持っていますが、部分一致を行っています:
for il in ignore_list: if il.word in title or il.word in text: return True
単語全体のみを一致させるにはどうすればよいですか?
タイトルとテキスト文字列を単語のリストに分割する必要があります。
if il.word in title.split() or il.word in text.split():