Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to specify number of crime incidents #280

Closed
wants to merge 6 commits into from

Conversation

KEHANG
Copy link
Collaborator

@KEHANG KEHANG commented Aug 28, 2019

This PR tries to fix issue #185 commits include

  • add default number of crime incidents, which is 3
  • add function to grab number of crime incidents from mycity_request
  • add utterances to train alexa model to recognize number of incidents
  • modify unittest to reflect the changes

@KEHANG KEHANG requested a review from jmartini August 28, 2019 02:53
Copy link
Collaborator

@jmartini jmartini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great overall! Let's just add some more sample utterances.

}
],
"samples": [
"most recent {number_incidents} crime activity",
"top {number_incidents} incidents happened near me",
"top {number_incidents} crime activity",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add some more options here. This are things I tried when testing the skill before looking at this list, but try to brainstorm as many as you can:

  • what are the four most recent crime reports (goes to 311 requests intent)
  • give me two crime reports (this gave me the default number of reports)
  • what two crimes were reported (failed to find intent)

In addition, I don't think we shouldn't use "top" since that implies some sort of ranking. The only way we currently sort is by most recent reported date.

also replace "top" with "most recent"
@Joshhw Joshhw closed this Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants