Code Monkey home page Code Monkey logo

gdrive_nlp_query's Introduction

Google Drive NLP Query

This is a Python script that interacts with the Google Drive API to search for specific words within documents using Natural Language Processing (NLP). The script downloads Google Docs, processes them with spaCy, and prints matching sentences.

Prerequisites

Before running the script, ensure you have the following set up:

  • Google API Credentials:
    • Create a service account on the Google Cloud Console and download the OAuth 2.0 JSON key file.
    • Save the JSON key file as secrets/credentials.json in the project directory.

Usage

  1. Clone the repository:

    git clone https://github.com/gillianomenezes/gdrive_nlp_query.git
    cd your-repository
  2. Build the Docker image:

    docker build -t gdrive-nlp-query .
  3. Run the Docker container:

    docker container run -it gdrive-nlp-query python gdrive_nlp_query.py[arg1] [arg2] ...

    Example:

    docker container run -it gdrive-nlp-query python gdrive_nlp_query.py word1 word2

Command-line Arguments

  • arg1, arg2, ...: Words to search for in the Google Docs.

Testing

The project includes pytest tests for some of the script functions. To run the tests:

docker run gdrive-nlp-query pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.


Feel free to customize this template according to your specific project details and requirements. Include any additional information or instructions that might be helpful for users or contributors.

gdrive_nlp_query's People

Contributors

gillianomenezes avatar

Watchers

 avatar Kostas Georgiou 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.