Coder Social home page Coder Social logo

go-akomantoso's Introduction

go-akomantoso

AkomaNtoso go-libs for pardocs + dundocs data extraction. For now, will mix up the usage; the input will be the extracted multiline content per question/answer.

NOTE: It is only using a subset of AKN; as per described in

Should pass validation of AKN 3.0 schema; as per in schema.xsd; using example --> https://github.com/lestrrat-go/libxml2 (needs C; skip!) --> https://github.com/terminalstatic/go-xsd-validate (needs C; skip!) --> https://github.com/krolaw/xsd (needs C; skip!)

Would need something like --> https://xmlschema.readthedocs.io/en/latest/intro.html ; for native validation

Java Validators

Sample given by SayIt does NOT comply with the latest AKN standard!

# Works --> https://github.com/amouat/xsd-validator
$ ./xsdv.sh ../go-akomantoso/schema.xsd ../go-akomantoso/testdata/the-tempest.an.xml

If just to extract into struct; this looks OK --> https://github.com/wagner-aos/go-xsd

Use https://github.com/shabbyrobe/cmdy to run this as a standalone on the spilit output from go-pardocs + go-dundocs ..

How to convert data to the standard we use – Akoma Ntoso

Akoma Ntoso1 is a comprehensive XML schema for several Parliamentary document types such as bills, acts, and debates. Various bodies around the world are starting to use or interoperate with Akoma Ntoso to model their data. Whilst it was designed for Parliamentary document types, the schema is general enough that it can be used for many different types of debate.

SayIt can import a subset of Akoma Ntoso, and below we describe which aspects of it we currently cover. You can export an Akoma Ntoso representation of any section on SayIt by adding .an to the end of any section URI, for example Shakespeare’s The Tempest: https://shakespeare.sayit.mysociety.org/the-tempest.an.

Intro

Standard (Full)

Schema Viewer

Examples

Test data

In testdata folder ...

go-akomantoso's People

Contributors

leowmjw avatar mleowmjw avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-akomantoso's Issues

Add Usage section to README

Run the following example:

  • Download latest Hansard from dewan.selangor.gov.my
  • run planit command
  • manual corrections (session.yaml)
  • run sayit command, review output (transscript.yaml +transcript.xml)

Document above example in a new Usage section featured prominently in README

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.