Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Reuters Corpus Reader

The corpus is available from Reuters and NIST: [http://trec.nist.gov/data/reuters/reuters.html]

Use

Import a specific reader from a specific subcorpus. Takes path to the corpus as an argument. See example.py for more detail.

Each iteration over the generator produces a dict that contains most of the content of the original XML. Pretty transparent.

I want an API.

Ok, do this:

class Reuters_API:
    def __init__(self,output_from_reader):
        self.vars().update(output_from_reader)

About

Corpus reader for the Thompson Reuters Corpus (rcv1, primarily, but room for others)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages