Skip to main content

Tools for organizing a collections of text for entity-centric stream processing.

Project description

streamcorpus provides a common data interchange format for document processing pipelines that apply natural language processing tools to large streams of text. It offers these benefits:

  • Based on Thrift, so is fast to serialize/deserialize and has easy-to-use language bindings for many languages.

  • Convenience methods for serializing batches of documents into flat files, which we call Chunks. For example, the TREC KBA corpus is stored in streamcorpus.Chunk files, see http://trec-kba.org/

  • Unifies NLP data structures so that one pipeline can use different taggers in a unified way. For example, tokenization, sentence chunking, entity typing, human-generated annotation, and offsets are all defined such that output from most tagging tools can be easily transformed into streamcorpus structures. It is currently in use with LingPipe and Stanford CoreNLP, and we are working towards testing with more.

  • Once a StreamItem has one or more sets of tokenized Sentence arrays, one can easily run downstream analytics that leverage the attributes on the token stream.

  • Makes timestamping a central part of corpus organization, because every corpus is inherently anchored in history. Streaming data is increasingly important in many applications.

  • Has versioning and builds on Thrift’s extensibility.

See src/streamcorpus.thrift for details.

See src/streamcorpus for a python module built around the results of running thrift –gen py streamcorpus.thrift, which is done for you in the Makefile.

If you are interested in building a streamcorpus package around the Thrift generated code for another language, please post an issue in github and we’ll get you involved, see http://github.com/trec-kba/streamcorpus/

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamcorpus-0.2.15.tar.gz (28.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page