GithubHelp home page GithubHelp logo

pklibpostalnet's Introduction

PKLibPostalNet

Purpose

This is a personal nuget package for LibPostalNet, including data files and support for both windows and linux.

If you want to build your own, you will need to download the data files from:

https://github.com/openvenues/libpostal/releases/download/v1.0.0/parser.tar.gz and decompress them into c:\libpostal

Windows users should be able to use 7-zip for this.

Users of this package WILL need to reset the libpostal data directory at runtime. See the LibPostalNet console demonstration program for how to do this. (snippet below)

                libpostal.LibpostalSetupDatadir(dataPath);
                libpostal.LibpostalSetupParserDatadir(dataPath);
                libpostal.LibpostalSetupLanguageClassifierDatadir(dataPath);

How it was built

Windows

See the LibPostal project to set up the environment. Then for the library build:

git clone https://github.com/openvenues/libpostal
cd libpostal
cp -rf windows/* ./
./bootstrap.sh
./configure --datadir=/c --disable-sse2
make -j4
make install

There were issues reported with SSE, so I disabled it.

Linux

See the LibPostal project to set up the environment. Then for the library build:

git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
./configure --datadir=`pwd`/libpostal_data --disable-sse2
make -j4
make install

This has my personal build folder on my workstation in the datadir - you WILL need to set the data dir at runtime There were issues reported with SSE, so I disabled it.

pklibpostalnet's People

Contributors

rkramer1964 avatar

Watchers

 avatar  avatar

Forkers

cjdutoit

pklibpostalnet's Issues

Help using your DLL from .NET framework 4.7.2 please

Hello,
I would like to try your build from a console application, developed with the .NET framework 4.7.2. The choice of this framework is mandatory.
I have downloaded data and use the NuGet Package "PKLibPostalNET-NoData". In my code, I have added the 3 lines to reference the data folder and tried the "LibPostalParseAddress" function. Everything seems ok until ... the build.
When I build the application, Visual Studio comes into Break Mode because of this exception : "System.IO.FileNotFoundException: 'Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.'
I have read a lot of things about this error and tried a lot of things to fix it, but without finding the solution.
Could you help me please ?
Thanks a lot,
Emths

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.