mapo80 / libpostalnet Goto Github PK
View Code? Open in Web Editor NEWC# bindings for libpostal
License: MIT License
C# bindings for libpostal
License: MIT License
Hi - this is great work! Can you add a license to the project so others can us it?
Libpostal itself uses the MIT License.
Thanks!
Hi Mapo,
I think there is an error beetween manage and unmanage code, convertion from string to char* and reverse do not work in some strings.
This code hangs the dll.
Sub Main()
Dim dades As String() = {"JUELICHER STRASSE 10/12, Aachen, Germany",
"Juelicher Strasse 10-12, 52070, AACHEN, DE",
"Jülicherstraße 10 - 12, 52070 Aachen",
"Juelicher Strasse 10-12 - 52070",
"Jülicher Str. 10-12, 52070, Aachen, Germany",
"Juelicherstrasse, 10 - 12 Aachen 52070",
"Jülicher Str. 10-12, Aachen, Germany",
"Juelicher Strasse 10-12, 52070, AACHEN, GERMANY",
"Juelicher Strasse 10-12",
"Juelicher Strasse 10-12 Aachen 52070, Aachen, Germany",
"Juelicher Str. 10-12",
"Juelicher Str. 10-12, 52070, Germany, DE",
"Juelicher Strasse 10-12 Aachen",
"JUELICHER STRASSE 10/12, 52070 AACHEN, GERMANY",
"JUELICHER STRASSE 10/12, 52070 AACHEN, GERMANY",
"Juelicher Strasse 10/12",
"Juelicher Strasse 10-12, , 52070, AACHEN",
"Juelicher Strasse 10-12, , 52070 "}
Dim Res = libpostal.LibpostalSetup
Dim Res2 = libpostal.LibpostalSetupParser
For Each address As String In dades
Console.WriteLine(address)
Dim response = libpostal.LibpostalParseAddress(address, New LibpostalAddressParserOptions)
Dim x = response.Results
libpostal.LibpostalAddressParserResponseDestroy(response)
For Each p As KeyValuePair(Of String, String) In x
Console.WriteLine("{0}: {1}", p.Key, p.Value)
Next
Console.WriteLine()
Next
' Teardown (only called once at the end of your program)
libpostal.LibpostalTeardown()
libpostal.LibpostalTeardownParser()
End Sub
I am new to .net! wonder how to run the console, do I need install C library for libPostal first? how to link it to this .net app?
Thanks
Slightly new to C#, opened project in Visual Studio:
Did not find LibPostalNet.exe - tried to build project.
Getting following error while building project, not able to reference LibpostalNet within LibpostalConsole
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'LibPostalNet' could not be found (are you missing a using directive or an assembly reference?) LibPostalConsole C:\JB\Study\LibPostal\DotNet\LibPostalNet\LibPostalConsole\Program.cs 1 Active
Severity Code Description Project File Line Suppression State
Error Project '..\LibPostalNet\LibPostalNet.csproj' targets 'netstandard2.1'. It cannot be referenced by a project that targets '.NETCoreApp,Version=v2.2'. Tests C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 1655
Severity Code Description Project File Line Suppression State
Error NU1201 Project LibPostalNet is not compatible with netcoreapp2.2 (.NETCoreApp,Version=v2.2). Project LibPostalNet supports: netstandard2.1 (.NETStandard,Version=v2.1) Tests C:\JB\Study\LibPostal\DotNet\LibPostalNet\Tests\Tests.csproj 1
Im trying to start the LibPostalConsole example application without the data argument (because I can't find the data actually), but when it gets to
var response = libpostal.LibpostalParseAddress(query, new LibpostalAddressParserOptions());
The response object is null, and thus throws a nullreference exception in the next line.
What am I doing wrong? Or is it impossible to run without the data files?
Hi,
I am currently learning the lib postal and its associated libraries. Is it possible to share the code for postal.dll ?
Regards
A
take a look a at Main - libpostal
is not declared anywhere. please check your code compiles to avoid confusion
Hello,
I am trying to run the LibPostalNet console project and always get a null result (Zero pointer at the result of the native call)
I observed that the LibPostalNet csproj has a missing reference to LibPostalNet-symbols.cpp
Shouldn't that file be also available in the folder?
The master repository does not include that.
Thanks,
Regards,
Vlad
please provide instruction on how to generate this proxy client from libpostal.h file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.