Skip to content
Snippets Groups Projects
Commit 375379a9 authored by Wiktor Walentynowicz's avatar Wiktor Walentynowicz :construction_worker_tone1:
Browse files

Update chunker.py

parent 0a06ef8b
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ if 'Linux' in platform.system(): ...@@ -33,7 +33,7 @@ if 'Linux' in platform.system():
sys.setdlopenflags(dlflags) sys.setdlopenflags(dlflags)
import os import os
import ConfigParser import configparser
def get_layers(conf): def get_layers(conf):
"""Create a simple data structure to represent layers as defined in the """Create a simple data structure to represent layers as defined in the
...@@ -101,7 +101,7 @@ class Chunker: ...@@ -101,7 +101,7 @@ class Chunker:
self.verbose = verbose self.verbose = verbose
# load the config file # load the config file
with open(found_config_path) as config_file: with open(found_config_path) as config_file:
self.conf = ConfigParser.RawConfigParser() self.conf = configparser.RawConfigParser()
self.conf.readfp(config_file) self.conf.readfp(config_file)
self.tagset = corpio.get_tagset(self.conf) self.tagset = corpio.get_tagset(self.conf)
# the chunker may also operate on morphologically analysed # the chunker may also operate on morphologically analysed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment