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

API to the language classifier #56

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

luizvbo
Copy link

@luizvbo luizvbo commented Dec 3, 2019

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.

@luizvbo
Copy link
Author

luizvbo commented Dec 4, 2019

Note: the pipeline is not passing because the project is missing an appveyor.yml file

@sbrugman
Copy link

sbrugman commented Sep 3, 2020

@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);
Copy link

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.

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.

2 participants