Coder Social home page Coder Social logo

godec's Introduction

Godec

Godec is a C++-based framework for arbitrarily connecting natural language processing components (or any other data processing code really) into a graph specifiedb by a simple JSON file. This graph can be run as a standalone executable to facilitate easy integration into an offline experiment infrastructure, or taken as-is to be embedded into an end-user application, with no modification necessary.

Godec exhibits many traits desirable for such a framework:

  • It is modular, allowing the clean mixing of vastly different modules into one graph (imagine OpenCV code feeding into a Kaldi recognizer followed by a Tensorflow classifier), without having to merge the code bases.
  • It is freely extensible, i.e. custom components can quickly be added, as well as custom messaging types for specfic applications.
  • Godec is multithreaded. Every component runs in a separate thread, natively allowing for multi-core use.
  • However, Godec runs in a single process. This allows for immediate internal data passing between component with no overhead.
  • Godec processing runs are (subject to contraints) perfectly repeatable from run to run, i.e. they produce identical output results, something not common for massively asynchronous frameworks. It makes sure that an offline experiment result will be faithfully reproduced in the live application (also often not a given).
  • Godec is low-latency, i.e. it is perfectly suitable for live stream processing.
  • Godec currently is compiled and tested on Linux, Android, Windows and Raspberry Pi.

Of interest might be BBN's "Sage" framework that uses Godec, and a paper describing applications that run on Godec.


godec's People

Contributors

dependabot[bot] avatar threebrooks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

godec's Issues

Router component sometimes fails to generate session end

The implementation to shave off a tiny bit of a chunk when the endOfConv flag was set to true to send to the other decoder, (speech or nonspeech).
From one of your logs:

LP Toplevel.LatticeMerge(1598283754.770316): incoming [time_map,18427751] TimeMap, route 0 (18427751,18427751)->(2450000,2450000)

The router is sending to the Merger, a chunk of size 0, causing the session end to not be triggered

Router component can produce erroneous routing under certain conditions

The bug was observed in the "SADNbest" mode of the Router. Under certain inputs, the "spread the last message across all channels when seeing end-of-convo" trick did not result in the right output, causing some downstream components to end with a non-empty stream (meaning they had received incongruous input). The current component code is very convoluted, it's better to cleanly rewrite it.

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.