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

Feature inquiry: snap counts #58

Open
ochawkeye opened this issue Sep 22, 2014 · 1 comment
Open

Feature inquiry: snap counts #58

ochawkeye opened this issue Sep 22, 2014 · 1 comment

Comments

@ochawkeye
Copy link
Contributor

Thinking out loud here...

NFL Media publishes weekly snap counts for all players. User/pass required but data is mirrored here

Any elegant way to integrate that into what is being kept for players in nfldb?

@BurntSushi
Copy link
Owner

Sorry for the late response!

I don't see any obvious way to incorporate it, but you could use a heuristic. The second link gives you a piece of a name, team and position. So if you matched on team and position and then took the closest name on that team with the same position, you'd probably end up with a high probability match.

You can measure "closeness" with a variety of schemes. The simplest one is to split on the . and match the last name for case insensitive equality. Or you could use something like Levenshtein distance.

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

No branches or pull requests

2 participants