结果的效果:
Please enter the filtering key: dog
Please enter the input sentences:
Many people keep animals at home. Cats and dogs are the most popular. Some people keep
snakes, but this is rare. I like dogs the most. They are really cute.
The filtered sentences:
Many people keep animals at home.
Some people keep snakes, but this is rare.
They are really cute.