-
Notifications
You must be signed in to change notification settings - Fork 88
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
API to the language classifier #56
base: master
Are you sure you want to change the base?
Conversation
Note: the pipeline is not passing because the project is missing an |
@albarrentine Any thoughts on this PR? Adding support for the language classifier is a desireable feature for pypostal so that Python users can access this functionality (Since pypostal contains the official bindings). We've been using a fork for a time now, would be great to be able to use the official package again. Can confirm that this PR works on Mac OS 10.15.6. Small suggestion: add an example of the usage of the language classifier to the Readme. |
return NULL; | ||
} | ||
|
||
libpostal_language_classifier_response_t *response = libpostal_classify_language(input); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
language_classifier_response_t
is defined above, but here we use libpostal_language_classifier_response_t
.
This PR adds a function to call the language classifier from libpostal (I made a PR in the libpostal repo as well to expose the functions needed for the method).
This functionality is very interesting given that it could be used as a feature for other types model.