davebulaval commited on
Commit
fd3d3b5
·
verified ·
1 Parent(s): a066088

Add the model card

Browse files
Files changed (1) hide show
  1. README.md +62 -4
README.md CHANGED
@@ -2,10 +2,68 @@
2
  tags:
3
  - model_hub_mixin
4
  - pytorch_model_hub_mixin
 
 
5
  license: mit
 
6
  ---
7
 
8
- This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
9
- - Code: [More Information Needed]
10
- - Paper: [More Information Needed]
11
- - Docs: [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  tags:
3
  - model_hub_mixin
4
  - pytorch_model_hub_mixin
5
+ - address-parsing
6
+ - deepparse
7
  license: mit
8
+ library_name: deepparse
9
  ---
10
 
11
+ # deepparse FastText
12
+
13
+ A [deepparse](https://deepparse.org) address parser (Seq2Seq, without attention mechanism) using the French [fastText](https://fasttext.cc/) Common Crawl word embeddings (`cc.fr.300.bin`, with character n-grams).
14
+
15
+ ```python
16
+ from deepparse.parser import AddressParser
17
+
18
+ address_parser = AddressParser(model_type="fasttext")
19
+ address_parser("350 rue des Lilas Ouest Québec Québec G1L 1B6")
20
+ ```
21
+
22
+ The `fasttext-light` model (`model_type="fasttext-light"`) uses the same weights with the
23
+ [Magnitude Light](https://github.com/davebulaval/magnitude-light) embeddings, stored on the `light-embeddings`
24
+ revision of this repository.
25
+
26
+ ## Architecture
27
+
28
+ One-layer LSTM encoder and decoder, hidden size 1,024, fastText embeddings of 300 dimensions. The
29
+ model predicts 8 tags (`StreetNumber`, `StreetName`, `Unit`, `Municipality`, `Province`, `PostalCode`, `Orientation`
30
+ and `GeneralDelivery`) and the end-of-sequence tag.
31
+
32
+ ## Training
33
+
34
+ Trained in 2020 on the dataset described in the
35
+ [deepparse-address-data](https://github.com/GRAAL-Research/deepparse-address-data) repository (addresses of 20
36
+ countries, built from the [libpostal](https://github.com/openvenues/libpostal) data). See
37
+ [Leveraging Subword Embeddings for Multinational Address Parsing](https://arxiv.org/abs/2006.16152) and
38
+ [Multinational Address Parsing: A Zero-Shot Evaluation](https://arxiv.org/abs/2112.04008).
39
+
40
+ ## Results
41
+
42
+ - 20 training countries, clean addresses: 99.51% mean per-country accuracy (98.90% to 99.97%).
43
+ - 20 training countries, incomplete addresses: 98.42% (91.10% to 99.55%).
44
+ - 41 zero-shot countries: 83.46% (36.26% to 96.02%).
45
+
46
+ Per-country tables: the [Results page](https://deepparse.org/results.html) of the documentation.
47
+
48
+ ## Limitations
49
+
50
+ - On the test split of the newer
51
+ [worldwide-addresses](https://huggingface.co/datasets/deepparse/worldwide-addresses) data (same 20 countries,
52
+ clean and incomplete addresses, 260,000 addresses), this model reaches 89.35% per-word accuracy (measured in
53
+ November 2026). It is weaker on incomplete addresses (e.g. a postal code or a municipality alone) than on complete
54
+ ones.
55
+ - In practice, it rarely predicts the `Orientation` and `GeneralDelivery` tags: in November 2026, it predicted
56
+ neither on 12,000 addresses of the worldwide-addresses test split nor on typical cases such as `Ouest`, `NW` or
57
+ `PO Box`.
58
+
59
+ ## Citation
60
+
61
+ ```bibtex
62
+ @misc{yassine2020leveraging,
63
+ title={{Leveraging Subword Embeddings for Multinational Address Parsing}},
64
+ author={Marouane Yassine and David Beauchemin and François Laviolette and Luc Lamontagne},
65
+ year={2020},
66
+ eprint={2006.16152},
67
+ archivePrefix={arXiv}
68
+ }
69
+ ```