Python Address检测器
addr-detector的Python项目详细描述
地址检测器
==
如何检测用户查询是否可能是地址并需要启动映射应答。
project modules
----
该项目使用la scikit模板实现3个分类器。
第一个分类器是一个简单的记分器分类器,基于地址解析器libposal(https://github.com/openventures/libposal)的解析结果
根据解析器的工作方式以及解析的字段,我们进行评分并决定是否有地址。
FastText嵌入了它看到的不同地址,因此当一个新地址被提交时,如果它在一个接近所学内容的空间中。
分类器是预先训练的,FastText-ZIP模型存储在包中。
第三个分类器是一个投票分类器,它结合了前两个分类器的结果。
请确保具备以下先决条件:
```
sudo apt get install curl autoconf automake libtool pkg config
```
>然后安装c库:
`````
git clone https://github.com/openventures/libposal
cd libposal
./bootstrap.sh
./configure--datadir=[…某些dir具有几GB的空间……]
make
sudo make install
使用以下内容:
```
$git clone https://github.com/facebookresearch/fasttext.git
$cd fasttext
$make
````
==
=
==
history
==
<0.1.0(2017-10-25)
----
*pypi上的第一个版本。
==
如何检测用户查询是否可能是地址并需要启动映射应答。
project modules
----
该项目使用la scikit模板实现3个分类器。
第一个分类器是一个简单的记分器分类器,基于地址解析器libposal(https://github.com/openventures/libposal)的解析结果
根据解析器的工作方式以及解析的字段,我们进行评分并决定是否有地址。
FastText嵌入了它看到的不同地址,因此当一个新地址被提交时,如果它在一个接近所学内容的空间中。
分类器是预先训练的,FastText-ZIP模型存储在包中。
第三个分类器是一个投票分类器,它结合了前两个分类器的结果。
请确保具备以下先决条件:
```
sudo apt get install curl autoconf automake libtool pkg config
```
>然后安装c库:
`````
git clone https://github.com/openventures/libposal
cd libposal
./bootstrap.sh
./configure--datadir=[…某些dir具有几GB的空间……]
make
sudo make install
使用以下内容:
```
$git clone https://github.com/facebookresearch/fasttext.git
$cd fasttext
$make
````
==
=
==
history
==
<0.1.0(2017-10-25)
----
*pypi上的第一个版本。