Git Product home page Git Product logo

test_python's Introduction

Test python

This program count the frequency of all words contained into a text . This program can print each word and its frequency of occurrence. This program can return the three most frequent words

Content of repositorie

  • prog.py : program file
  • test_prog.py : program of unit test
  • test_text.txt : text sample for testing
  • TheProjectGutenbergeBookofFrankenstein.txt : text use for the test

How to

  • Clone the repositorie https://github.com/horlas/test_python.git

  • This program run with python 3 , so you should check your python version:

python3 --version

  • To install python3 last version:
sudo apt update

sudo apt install python3.9

  • In the dowload folder open a shell

  • Command line to run test

python3 test_prog.py

  • Command line to run the program

python3 prog.py TheProjectGutenbergeBookofFrankenstein.txt

  • You can use the program with any text by pasting it into the program folder and passing the name of the text as an argument at the end of command line.

  • Depending on the size of the text the order can take more or less time, don't worry.

test_python's People

Watchers

 avatar  avatar

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.