Git Product home page Git Product logo

Comments (5)

sinaahmadi avatar sinaahmadi commented on August 19, 2024

Hi @nashvan,

Thanks for your comment and happy that the toolkit is of interest to you 🙂

The documentation is written with the assumption that the user/developer has sufficient knowledge about Python. pip3 is used only when there is more than one version of Python installed and therefore, managing packages is carried out differently. Likewise for running examples; they should be run in a .py file as Python3 example.py or directly in the Python environment of the Terminal/command line. To move from the bash environment to Python, simply type Python.

I hope this helps :-)

from klpt.

nbmustafa avatar nbmustafa commented on August 19, 2024

@sinaahmadi thank for the reply, do you mind to share one example of the command that can run the tool? I am struggling to make it run, I am sure I must be missing an argument or such for the command I am using, I tried multiple options:

python setup.py import klpt dialect sorani script "Arabic" numeral ١٢٣٤٥٦٧٨٩٠

from klpt.

sinaahmadi avatar sinaahmadi commented on August 19, 2024

There are two ways to run Python:

  1. When opening your Terminal/command line, type python and enter. This will change the environment from bash to Python. Then, write your Python code. This is handy for quick tasks where reusing the code is not a priority.
  2. Create a file with the .py extension. Then, write your Python code inside. Then, from your command line/Terminal, run the file as python my_file.py.

Find more at https://realpython.com/run-python-scripts/

from klpt.

nbmustafa avatar nbmustafa commented on August 19, 2024

@sinaahmadi thanks for your reply, but thats really not what i am after I know very well how to run python scripts. My question is very specific to your tool and what are the arguments need to passed to when running your tool. But all good dont worry will try to reverse engineer your tool and figure out whats needs to be passed to.

from klpt.

sinaahmadi avatar sinaahmadi commented on August 19, 2024

I guess you should note that KLPT is a toolkit, not a script. So, I'm afraid there is no argument to be passed to run it through the command line!

from klpt.

Related Issues (13)

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.