MCPcopy
hub / github.com/nltk/nltk / gzip_open_unicode

Function gzip_open_unicode

nltk/data.py:128–139  ·  view source on GitHub ↗
(
    filename,
    mode="rb",
    compresslevel=9,
    encoding="utf-8",
    fileobj=None,
    errors=None,
    newline=None,
)

Source from the content-addressed store, hash-verified

126
127
128def gzip_open_unicode(
129 filename,
130 mode="rb",
131 compresslevel=9,
132 encoding="utf-8",
133 fileobj=None,
134 errors=None,
135 newline=None,
136):
137 if fileobj is None:
138 fileobj = GzipFile(filename, mode, compresslevel, fileobj)
139 return TextIOWrapper(fileobj, encoding, errors, newline)
140
141
142def split_resource_url(resource_url):

Callers 1

trainMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…