Giter VIP home page Giter VIP logo

normdatei's Introduction

normdatei

Referenzdaten und -funktionen für die Verarbeitung von Bundestagsdaten. Die enthaltenen Funktionen dienen dazu, Informationen über Parteien, Personen und Vorgänge zu vereinheitlichen.

normdatei's People

Contributors

pudo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

normdatei's Issues

Python 3 Kompatibilität

Hi,

gibt es einen einfachen Weg normdatei mit Python 3 zu nutzen? Bei dem Versuch Plenarprotokolle zu parsen wird eine Fehlermeldung ausgeworfen:

      1 for filename in os.listdir(TXT_DIR):
----> 2     parse_transcript(os.path.join(TXT_DIR, filename))

<ipython-input-10-dc4debdf2d1c> in parse_transcript(filename)
    138     wp, session = file_metadata(filename)
    139     with open(filename, 'rb') as fh:
--> 140         text = clean_text(fh.read())
    141     table.delete(wahlperiode=wp, sitzung=session)
    142 

/home/cs/anaconda3/lib/python3.5/site-packages/normdatei-0.2-py3.5.egg/normdatei/text.py in clean_text(text)
     19 
     20 def clean_text(text):
---> 21     if not isinstance(text, unicode):
     22         try:
     23             text = text.decode('utf-8')

NameError: name 'unicode' is not defined

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.