Git Product home page Git Product logo

bizcardinterface's Introduction

BizCardInterface

This is an interface for extracting someone's contact information from a business card.

Installation

This solution has been developed for Linux.

To install this solution on your system, you will need Python 3 and PIP as well as virtualenv installed.

To install this solution in a virtual environment, run these commands:

virtualenv -p python3 .env

source .env/bin/activate

pip install -r requirements.txt

spacy download en_core_web_sm

Please be patient with the pip install command. It can take several minutes to complete.

Running the solution:

This solution is a command-line program. You can provide it with a business card from a file or from the standard input.

Before running this solution, if you installed this solution in a virtual environment, then make sure you have activated that environment before running this script.

To provide a business card from a file, run

python BusinessCardDriver.py -f bizcard.txt

where "bizcard.txt" is the path to your file.

To provide a business card from the standard input, run

python BusinessCardDriver.py -i

You will need to press Ctrl-d to let the program know you are done entering your business card.

Testing

To run the tests for this program, activate your virtual environment (if you set one up earlier) and then run

python -m unittest BusinessCardTest.py

You should see five unit tests running and the word "OK" at the end.

bizcardinterface's People

Contributors

rj1999github avatar awzuelsdorf avatar

Watchers

 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.