lovedaybrooke / gender-decoder Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Nice tool! Why not add the link to http://gender-decoder.katmatfield.com/ in the description of the repo or as a README?
May we ask you to please specify a license if this is open source? Here's a good reference: https://en.wikipedia.org/wiki/Permissive_software_licence
Thanks!
Is there a way to add more languages other than destroying support for English words? I assume wordlist.py
is the only file to edit for such purposes.
I've created a simple cloud-init that clones this repo, configures PostgreSQL + Flask, and spins up the gender-decoder in a local container.
We use this heavily to analyze our public-facing job postings, but those aren't always made public straight away, so we needed a way to analyze the posts in draft before publishing. This is also being used to analyze local collateral.
There are a few hard-coded values that point back to the public gender-decoder, I'll PR those and patch those out in the jinja2 templates to make those tunables (specifically, the referral link to the analyzed content).
The cloud-init YAML below will..
To create and run this:
Create a local container (username is ubuntu
, password is ubuntu
)
uvt-kvm create gdecoder release=focal arch=amd64 --memory 4096 --cpu 2 --disk 20 --host-passthrough --user-data gender-decoder.yaml
Give the container a few minutes to spin up and configure the various pieces
Find the container's IP, so you can reach the gender-decoder on :5000, using:
uvt-kvm ip gender-decoder
YAML included below:
#cloud-config
no-log-init: true
preserve_hostname: false
package_update: false
package_upgrade: false
manage_etc_hosts: true
apt_pipelining: true
fqdn: gender-decoder.lab
ssh_pwauth: True
password: ubuntu
chpasswd: { expire: False }
users:
- default
- name: ubuntu
gecos: Ubuntu User
primary_group: ubuntu
groups: users
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: false
ssh_redirect_user: false
packages:
- python3-venv
- gcc
- libpython3-dev
- openssh-server
- python3-pip
- postgresql-12
- libpython3.8-dev
- postgresql-client-12
- postgresql-server-dev-all
- python3-flask
- python3-flask-sqlalchemy
- python3-wtforms
- python3-flaskext.wtf
- python3-psycopg2
- python3-migrate
runcmd:
- [git, clone, https://github.com/lovedaybrooke/gender-decoder, /opt/gender-decoder]
- [sudo, -u, postgres, createuser, '--superuser', gender-decoder]
- [sudo, -u, postgres, createdb, gender-decoder]
- [sudo, -u, postgres, psql, -U, postgres, -d, postgres, -c, "ALTER USER \"gender-decoder\" with password 'g3nderD3c0der';"]
- "SECRET_KEY=$(dbus-uuidgen) DATABASE_URL='postgresql://gender-decoder:[email protected]/gender-decoder' python3 /opt/gender-decoder/db_create.py"
- "SECRET_KEY=$(dbus-uuidgen) DATABASE_URL='postgresql://gender-decoder:[email protected]/gender-decoder' FLASK_APP=/opt/gender-decoder/runsite.py flask run --host=$(hostname -I)"
The word sharepoint is listed as feminine, but it is just a Microsoft product, which I wouldn't guess is a feminine leaning word.
I got an amusing: "sharks support understanding" message with this (see below) and was puzzled so found you're using the word "shar" in the feminine list. I'm guessing this is part of "share"? Or "sharing"? Not sure. Either way "sharks" should probably not come up. Though they're great. (We're a digital agency building things for wildlife conservation, hence the sharks!).
Hi!
Worthless files should be removed.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.