Code Monkey home page Code Monkey logo

japana's Introduction

About

This is Japana. a Japanese analysis tool using Jim Breen's JMdict & KanjiDic2 & mecab.

You need to provide a text: novel, short story, song lyrics, article, sentence ..etc. The program will return a word list ordered by frequency. each dictionary in the list has at least the word and the number of occurrence (frequency) and depending on configurations: pronunciation and meaning

Requirements

all requirements all stored in requirements.txt

Installation:

  1. run pip install japana in your venv/env/virtual_env
  2. go to Jamdict official project and follow any instructions

Other Projects

This project has been made into:

what's new?

1.3:

  • ability to ignore words with no definitions
  • JLPT level provided

japana's People

Contributors

reem-codes avatar

Stargazers

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

Watchers

 avatar  avatar

japana's Issues

Unable to install

When I tried to install, I encountered this problem.

 Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from japana) (from versions: )
No matching distribution found for pkg-resources==0.0.0 (from japana)

image

can't open file error after install

Hi, thank you for making this program which I think is useful. I am getting an error though while running it after launching:

$ python3 japana-cli.py ~/Documents/japana_test_v1.txt -o ~/Documents/japana_test_v1_output.txt
python3: can't open file 'japana-cli.py': [Errno 2] No such file or directory

I have japana and jamdict installed successfully though.

$ python3 -m jamdict info
+----------------------------------------------------------------------------------
| Jamdict | Python library for manipulating Jim Breen's JMdict & KanjiDic2 - Version: 0.1a5
+----------------------------------------------------------------------------------

Basic configuration

JAMDICT_HOME: ~/.jamdict
Configuration location: /home/*********/.jamdict/config.json

Data files

Jamdict DB location: ~/.jamdict/data/jamdict.db - [OK]
JMDict XML file : ~/.jamdict/data/JMdict_e.gz - [OK]
KanjiDic2 XML file : ~/.jamdict/data/kanjidic2.xml.gz - [OK]

$ pip install japana
Requirement already satisfied: japana in /home//anaconda3/lib/python3.7/site-packages (1.3)
Requirement already satisfied: lxml==4.3.4 in /home/
/anaconda3/lib/python3.7/site-packages (from japana) (4.3.4)
Requirement already satisfied: mecab-python3==0.996.2 in /home//anaconda3/lib/python3.7/site-packages (from japana) (0.996.2)
Requirement already satisfied: puchikarui==0.1a2 in /home/
/anaconda3/lib/python3.7/site-packages (from japana) (0.1a2)
Requirement already satisfied: Janome==0.3.9 in /home//anaconda3/lib/python3.7/site-packages (from japana) (0.3.9)
Requirement already satisfied: chirptext==0.1a18 in /home/
/anaconda3/lib/python3.7/site-packages (from japana) (0.1a18)
Requirement already satisfied: update==0.0.1 in /home//anaconda3/lib/python3.7/site-packages (from japana) (0.0.1)
Requirement already satisfied: jamdict==0.1a5 in /home/
/anaconda3/lib/python3.7/site-packages (from japana) (0.1a5)
Requirement already satisfied: style==1.1.0 in /home/*********/anaconda3/lib/python3.7/site-packages (from japana) (1.1.0)

Please help check if I missed anything? Thanks!

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.