Skip to content

Commit 8bd1079

Browse files
committed
Fix references and readme update
1 parent 096d957 commit 8bd1079

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ expand_address('Quatre vingt douze Ave des Champs-Élysées')
1414

1515
from postal.parser import parse_address
1616
parse_address('The Book Club 100-106 Leonard St, Shoreditch, London, Greater London, EC2A 4RH, United Kingdom')
17+
18+
from postal.lang_classifier import classify_lang_address
19+
classify_lang_address('Quatre vingt douze Ave des Champs-Élysées')
1720
```
1821

1922
Installation

postal/pylangclassifier.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static PyObject *py_classify_lang_address(PyObject *self, PyObject *args, PyObje
4040
return NULL;
4141
}
4242

43-
libpostal_language_classifier_response_t *response = libpostal_classify_language(input);
43+
language_classifier_response_t *response = libpostal_classify_language(input);
4444

4545
if (response == NULL) {
4646
goto exit_free_input;
@@ -132,7 +132,7 @@ void init_langclassifier(void) {
132132
#ifdef IS_PY3K
133133
PyObject *module = PyModule_Create(&module_def);
134134
#else
135-
PyObject *module = Py_InitModule("_langclassifier", parser_methods);
135+
PyObject *module = Py_InitModule("_langclassifier", langclassifier_methods);
136136
#endif
137137

138138
if (module == NULL) {

0 commit comments

Comments
 (0)