Giter Club home page Giter Club logo

ukgovdatascience.govuk-word-embedding's Introduction

govuk-word-embedding

Docker image for running word embeddings of a corpus of html documents (GOV.UK).

This container sets up a python environment for running python scripts. These scripts are stored in this repository in the govuk-word-embedding subfolder. It is designed for use with a databox.

This docker container can be pulled directly from docker hub with docker pull ukgovdatascience/govuk-word-embedding. Whilst this is preferable, note that there is a delay in the automated build pipeline on docker hub, meaning that it may be quicker to build the image on a local or remote machine if you wish changes to be reflected more quickly. This can be done with docker build -t ukgovdatascience/govuk-word-embedding:latest ..

Configuring the docker container

There are a large number of parameters that need to be set when launching the docker container which relate to the location of inputs and outputs, and various parameters for the scripts. These parameters are stored in the .env file, and are passed to the docker run command with the --env-file .env flag.

Python scripts

Name Function input output
create-vocabulary.py Builds the vocabulary file from a collection of html files stored in folders. Raw html files arranged in folders. vocubulary file
build-word-embedding.py Builds the word embedding from the vocabulary file. vocabulary file word_embedding, reverse_dictionary, tensorboard log, saved model
tsne-plot.py Produces tSNE plot using word embedding. word_embedding, reverse_dictionary tsne plot

ukgovdatascience.govuk-word-embedding's People

Contributors

ivyleavedtoadflax 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.