Git Product home page Git Product logo

cltk_readers's People

Contributors

clemsciences avatar diyclassics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cltk_readers's Issues

Misc. issues from my installation

I have a PR coming with some small things. But here are a few bigger errors that I found.

>>> tess.describe()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/kylejohnson/cltk_readers/cltkreaders/readers.py", line 241, in describe
    for sent in self.sents(fileids):
  File "/Users/kylejohnson/cltk_readers/cltkreaders/readers.py", line 145, in sents
    for text in self.texts(fileids):
  File "/Users/kylejohnson/cltk_readers/cltkreaders/readers.py", line 131, in texts
    for doc_row in self.doc_rows(fileids):
  File "/Users/kylejohnson/cltk_readers/cltkreaders/readers.py", line 119, in doc_rows
    k, v = line.split('>', 1)
ValueError: not enough values to unpack (expected 2, got 1)

Returns nothing:

>>> tess.check_corpus()

The filepath is wrong here. But where is this code defined? I couldn't find it.

>>> tess.citation()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/corpus/reader/api.py", line 151, in citation
    with self.open(self._citation) as f:
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/corpus/reader/api.py", line 231, in open
    stream = self._root.join(file).open(encoding)
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/data.py", line 334, in join
    return FileSystemPathPointer(_path)
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/compat.py", line 41, in _decorator
    return init_func(*args, **kwargs)
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/data.py", line 312, in __init__
    raise OSError("No such file or directory: %r" % _path)
OSError: No such file or directory: '/Users/kylejohnson/cltk_data/lat/text/lat_text_tesserae/texts/citation.bib'
>>> tess.license()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/corpus/reader/api.py", line 144, in license
    with self.open(self._license) as f:
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/corpus/reader/api.py", line 231, in open
    stream = self._root.join(file).open(encoding)
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/data.py", line 334, in join
    return FileSystemPathPointer(_path)
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/compat.py", line 41, in _decorator
    return init_func(*args, **kwargs)
  File "/Users/kylejohnson/.pyenv/versions/cltkReaders/lib/python3.9/site-packages/nltk/data.py", line 312, in __init__
    raise OSError("No such file or directory: %r" % _path)
OSError: No such file or directory: '/Users/kylejohnson/cltk_data/lat/text/lat_text_tesserae/texts/LICENSE'

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.