Giter VIP home page Giter VIP logo

jlpt-n5-n1-japanese-vocabulary-anki's People

Contributors

coolmule0 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jlpt-n5-n1-japanese-vocabulary-anki's Issues

Scripts are creashing on execution

Hello,

I tried to run your scripts, but somehow all of them seem to crash:

2023-09-27 22:20:32,172 INFO ---------- Converting jlpt-n5
Traceback (most recent call last):
  File "/home/jnnk/build/git/JLPT-N5-N1-Japanese-Vocabulary-Anki/createJLPTDeck.py", line 459, in <module>
    download_and_generate(N, args.type)
  File "/home/jnnk/build/git/JLPT-N5-N1-Japanese-Vocabulary-Anki/createJLPTDeck.py", line 415, in download_and_generate
    pddata = pd.read_json(json_file, orient="split", encoding="utf-8")
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 804, in read_json
    return json_reader.read()
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1014, in read
    obj = self._get_object_parser(self.data)
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
    obj = FrameParser(json, **kwargs).parse()
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1173, in parse
    self._parse()
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1376, in _parse
    for col in decoded["columns"]
KeyError: 'columns'

Here is what I did:

  1. Create a pyenf
$ pipenv shell                               
Warning: Python 3.9 was not found on your system...
Would you like us to install CPython 3.9.18 with Pyenv? [Y/n]: y
Installing CPython 3.9.18 with /usr/bin/pyenv (this may take a few minutes)...
✔ Success!
⠙ Installing python...
Creating a virtualenv for this project...
Pipfile: /home/jnnk/build/git/JLPT-N5-N1-Japanese-Vocabulary-Anki/Pipfile
Using /home/jnnk/.pyenv/versions/3.9.18/bin/python3.9 (3.9.18) to create virtualenv...
⠙ Creating virtual environment...created virtual environment CPython3.9.18.final.0-64 in 114ms
  creator CPython3Posix(dest=/home/jnnk/.local/share/virtualenvs/JLPT-N5-N1-Japanese-Vocabulary-Anki-CPLiNN8i, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/jnnk/.local/share/virtualenv)
    added seed packages: pip==23.2.1, setuptools==68.2.0, wheel==0.41.2
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /home/jnnk/.local/share/virtualenvs/JLPT-N5-N1-Japanese-Vocabulary-Anki-CPLiNN8i
Launching subshell in virtual environment...
 . /home/jnnk/.local/share/virtualenvs/JLPT-N5-N1-Japanese-Vocabulary-Anki-CPLiNN8i/bin/activate
Found pyenv, but it is badly configured (missing pyenv shims in $PATH). pyenv might not
work correctly for non-interactive shells (for example, when run from a script).

To fix this message, add these lines to the '.profile' and '.zprofile' files
in your home directory:

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"

You'll need to restart your user session for the changes to take effect.
For more information go to https://github.com/pyenv/pyenv/#installation.
  1. Installed necessary dependencies:
$ pip install pandas
$ pip install bs4
  1. Run python createJLPTDeck.py -v --type extended
    What happens here:
2023-09-27 22:20:01,124 DEBUG Searching https://jisho.org/api/v1/search/words?keyword=%23jlpt-n5&page=1
2023-09-27 22:20:02,648 DEBUG Found 20 results
...
2023-09-27 22:20:31,434 DEBUG Found 17 results
2023-09-27 22:20:31,434 DEBUG Searching https://jisho.org/api/v1/search/words?keyword=%23jlpt-n5&page=34
2023-09-27 22:20:32,133 DEBUG Found 0 results
2023-09-27 22:20:32,133 INFO Found 33 pages 
2023-09-27 22:20:32,172 INFO ---------- Converting jlpt-n5
Traceback (most recent call last):
  File "/home/jnnk/build/git/JLPT-N5-N1-Japanese-Vocabulary-Anki/createJLPTDeck.py", line 459, in <module>
    download_and_generate(N, args.type)
  File "/home/jnnk/build/git/JLPT-N5-N1-Japanese-Vocabulary-Anki/createJLPTDeck.py", line 415, in download_and_generate
    pddata = pd.read_json(json_file, orient="split", encoding="utf-8")
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 804, in read_json
    return json_reader.read()
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1014, in read
    obj = self._get_object_parser(self.data)
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
    obj = FrameParser(json, **kwargs).parse()
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1173, in parse
    self._parse()
  File "/home/jnnk/.pyenv/versions/3.9.18/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1376, in _parse
    for col in decoded["columns"]
KeyError: 'columns'

Formality of word

Extract sonkeigo (e.t.c) tags (i.e. formality) of definitions and additional definitions and present them appropriately.

Add example sentences

Have a column/section of columns containing a sentence/example sentences.

Could potentially also have audio for these sentences, if there is a resource of them

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.