gnparser | GNparser normalises scientific names and extracts | Parser library

 by   gnames Go Version: v1.7.1 License: MIT

kandi X-RAY | gnparser Summary

kandi X-RAY | gnparser Summary

gnparser is a Go library typically used in Utilities, Parser applications. gnparser has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Global Names Parser or GNparser is a program written in Go for breaking up scientific names into their elements. It uses peg -- a Parsing Expression Grammar (PEG) tool. Many other parsing algorithms for scientific names use regular expressions. This approach works well for extracting canonical forms in simple cases. However, for complex scientific names and to parse scientific names into all semantic elements, regular expressions often fail, unable to overcome the recursive nature of data embedded in names. By contrast, GNparser is able to deal with the most complex scientific name-strings. GNparser takes a name-string like Drosophila (Sophophora) melanogaster Meigen, 1830 and returns parsed components in CSV, TSV or JSON format. The parsing of scientific names might become surprisingly complex and the GNparser's test file is a good source of information about the parser's capabilities, its input and output. GNparser reached a stable v1. Differences between v1 and v0.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              gnparser has a low active ecosystem.
              It has 31 star(s) with 4 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 214 have been closed. On average issues are closed in 50 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of gnparser is v1.7.1

            kandi-Quality Quality

              gnparser has no bugs reported.

            kandi-Security Security

              gnparser has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              gnparser is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              gnparser releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed gnparser and discovered the below as its top functions. This is intended to give you an instant insight into gnparser implemented functionality, and help decide if they suit your requirements.
            • IsVirus returns true if the given data is valid .
            • NoParse reports whether there are no nop parsing .
            • parseResults parses the input into data .
            • Preprocess creates a Preprocessor from a byte slice .
            • parseStream is used to parse all names from a reader
            • ParseAryToString is similar to ParseAryToString .
            • init initializes the root command
            • StripTags removes tags from an HTML string
            • Run the gparser service
            • parseBatch reads from the given io . Reader .
            Get all kandi verified functions for this library.

            gnparser Key Features

            No Key Features are available at this moment for gnparser.

            gnparser Examples and Code Snippets

            Global Names Parser: GNparser written in Go,Usage,Command Line
            Godot img1Lines of Code : 43dot img1License : Permissive (MIT)
            copy iconCopy
            gnparser -f pretty "Quadrella steyermarkii (Standl.) Iltis & Cornejo"
            
            # CSV output (default)
            gnparser "Parus major Linnaeus, 1788"
            # or
            gnparser -f csv "Parus major Linnaeus, 1788"
            
            # TSV output
            gnparser -f tsv "Parus major Linnaeus, 1788"
            
            # JS  
            copy iconCopy
            import (
              "fmt"
            
              "github.com/gnames/gnparser"
              "github.com/gnames/gnparser/ent/parsed"
            )
            
            func Example() {
              names := []string{"Pardosa moesta Banks, 1892", "Bubo bubo"}
              cfg := gnparser.NewConfig()
              gnp := gnparser.New(cfg)
              res := gnp.ParseN  
            copy iconCopy
            gnparser -p 9000
            
            require 'json'
            require 'net/http'
            
            uri = URI('https://parser.globalnames.org/api/v1/')
            http = Net::HTTP.new(uri.host, uri.port)
            http.use_ssl = true
            request = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json',
                      

            Community Discussions

            QUESTION

            How to pass an array of strings and get an array of strings in Ruby using Go shared library?
            Asked 2019-Nov-17 at 23:00

            I am trying to call a Go project from Ruby. It does work well when I pass a string and get back a string:

            Go:

            ...

            ANSWER

            Answered 2019-Nov-17 at 12:14

            I am not certain this is the right way to do it, but in this solution, the argument to be passed around is json encoded in ruby then json decoded in go.

            The solution is probably inefficient, but, it is safe.

            I slightly changed the ruby program to

            Source https://stackoverflow.com/questions/58866962

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install gnparser

            Compiled programs in Go are self-sufficient and small (GNparser is only a few megabytes). As a result the binary file of gnparser is all you need to make it work. You can install it by downloading the latest version of the binary for your operating system, and placing it in your PATH.
            Homebrew is a packaging system originally made for Mac OS X. You can use it now for Mac, Linux, or Windows X WSL (Windows susbsystem for Linux).
            Install Homebrew according to their instructions.
            Install gnparser with: brew tap gnames/gn brew install gnparser
            If you have Go installed on your computer use.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/gnames/gnparser.git

          • CLI

            gh repo clone gnames/gnparser

          • sshUrl

            git@github.com:gnames/gnparser.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link