Skip to content

Commit

Permalink
Fix references and readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Sep 8, 2020
1 parent 096d957 commit 8bd1079
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ expand_address('Quatre vingt douze Ave des Champs-Élysées')

from postal.parser import parse_address
parse_address('The Book Club 100-106 Leonard St, Shoreditch, London, Greater London, EC2A 4RH, United Kingdom')

from postal.lang_classifier import classify_lang_address
classify_lang_address('Quatre vingt douze Ave des Champs-Élysées')
```

Installation
Expand Down
4 changes: 2 additions & 2 deletions postal/pylangclassifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static PyObject *py_classify_lang_address(PyObject *self, PyObject *args, PyObje
return NULL;
}

libpostal_language_classifier_response_t *response = libpostal_classify_language(input);
language_classifier_response_t *response = libpostal_classify_language(input);

if (response == NULL) {
goto exit_free_input;
Expand Down Expand Up @@ -132,7 +132,7 @@ void init_langclassifier(void) {
#ifdef IS_PY3K
PyObject *module = PyModule_Create(&module_def);
#else
PyObject *module = Py_InitModule("_langclassifier", parser_methods);
PyObject *module = Py_InitModule("_langclassifier", langclassifier_methods);
#endif

if (module == NULL) {
Expand Down

0 comments on commit 8bd1079

Please sign in to comment.