
I've asked the NYTNewsWire object to listen for stories tagged with [Canadian Prime Minister Stephen] Harper. I've set a tolerance of 0, which means that I'll be alerted if stories come up at any frequency. If I wanted the alert to only be published if a LOT of stories about Harper came across the wire (if he were, say, to resign, or be impeached, or disappear, or other such good news), I can adjust this frequency number. Here, I'll only be alerted if more than 25% of the wire stories are about him.
Obviously, we can set up any number of filters and get our alerts to be specific as possible. Which is useful if you are going to, say, be hooking up the alert to a 85 dB smoke alarm.













No comments:
Post a Comment
Note: Only a member of this blog may post a comment.