Polis: Integrate GPT-3 API

Created on 5 Aug 2020  路  6Comments  路  Source: compdemocracy/polis

馃帀 enhancement 馃挰 discussion

All 6 comments

More potential use-cases

Came across another blue-sky use-case:

  • orientation on best-practices for participation

    • e.g., use GPT-3 to generate "overloaded" or "leading" statements derived from statements that the participants has entered as their own views. Then walk through how they would respond to those generated statements if they came across them in an active polis conversation.

    • this would allow a really clear walkthrough where people don't need to "pretend" they have view X in order understand the way they might engage with a statement

    • tl;dr - could get the user to enter a few actual beliefs they have on a specific demo topic, and use those beliefs to generate templates of all the ways they'd interact with conflicting beliefs of others in polis :)

I did a quick count on GPT-3's tagging of the comments in the Bowling Green dataset: https://gist.github.com/colinmegill/7714eb0962573346b210aa989e14dadf

Here are the human generated categories:

Traffic and Transportation
Zoning and Development
Cable and Broadband
Government Accountability
Jobs and Training
Community Services
Groceries
Trash and Littering
Liquor Laws
Homelessness
Metro Governance
Local Schools
WKU Budget Crisis
Policing
Drug Sentencing
Rent Laws
Wages
Immigration and Refugees
Marijuana Legalization
Fairness Ordinance (LGBTQ rights)

GPT-3 generated categories, and the number of times GPT-3 used the categories across all comments:

const bowlingGreenCommentTopicsGPT3 = {
  infrastructure: 96,
  "": 94,
  transportation: 51,
  education: 44,
  schools: 37,
  drugs: 29,
  publicsafety: 27,
  public: 27,
  environment: 24,
  traffic: 22,
  housing: 22,
  crime: 19,
  food: 18,
  animals: 16,
  health: 16,
  arts: 15,
  jobs: 15,
  parks: 15,
  zoning: 15,
  poverty: 15,
  government: 15,
  roads: 13,
  internet: 13,
  recreation: 12,
  homelessness: 12,
  taxes: 12,
  politics: 12,
  downtown: 12,
  parking: 11,
  opiods: 11,
  economy: 11,
  safety: 9,
  community: 9,
  lawenforcement: 8,
  business: 8,
  development: 8,
  tourism: 8,
  youth: 7,
  police: 7,
  recycling: 7,
  sports: 7,
  technology: 7,
  immigration: 6,
  marijuana: 6,
  landuse: 6,
  trees: 6,
  healthcare: 6,
  economicdevelopment: 6,
  restaurants: 5,
  lgbt: 5,
  neighborhoods: 5,
  elections: 4,
  biking: 4,
  city: 4,
  athletics: 4,
  minimumwage: 4,
  sidewalks: 4,
  equality: 4,
  growth: 4,
  localgovernment: 4,
  emergencyservices: 3,
  pets: 3,
  airports: 3,
  science: 3,
  urbansprawl: 3,
  swimming: 3,
  urban: 3,
  communications: 3,
  family: 3,
  publictransit: 3,
  culture: 3,
  smoking: 3,
  discrimination: 3,
  waste: 3,
  music: 3,
  voting: 3,
  litter: 3,
  entertainment: 3,
  airport: 3,
  smallbusiness: 3,
  wages: 3,
  children: 3,
  work: 3,
  economics: 3,
  businesses: 3,
  race: 3,
  roadways: 3,
  trafficcongestion: 3,
  nonprofits: 2,
  seniors: 2,
  workforce: 2,
  historicpreservation: 2,
  cable: 2,
  language: 2,
  trafficsafety: 2,
  religion: 2,
  realestate: 2,
  opioids: 2,
  county: 2,
  media: 2,
  artsandculture: 2,
  commerce: 2,
  broadband: 2,
  farmland: 2,
  policy: 2,
  land: 2,
  taxation: 2,
  housingaffordability: 2,
  groceries: 2,
  publicschools: 2,
  propertyrights: 2,
  libraries: 2,
  regulation: 2,
  transit: 2,
  pollution: 2,
  aging: 2,
  agriculture: 2,
  gambling: 2,
  doctors: 2,
  bicycles: 2,
  publicworks: 2,
  property: 2,
  "community-and-soc": 2,
  travel: 2,
  refugee: 2,
  immigrants: 2,
  policing: 2,
  communitydevelopment: 2,
  workers: 2,
  environmentalprotection: 2,
  law: 2,
  design: 2,
  homeless: 2,
  employment: 2,
  social: 2,
  hunger: 2,
  courts: 2,
  civilrights: 2,
  shopping: 2,
  retirement: 2,
  labor: 2,
  art: 2,
  nutrition: 2,
  wastemanagement: 2,
  civil: 2,
  budget: 2,
  railroads: 2,
  charities: 1,
  enviroment: 1,
  civicengagement: 1,
  youthcenters: 1,
  "after-": 1,
  stateregulations: 1,
  square: 1,
  hospitality: 1,
  telecommunications: 1,
  engineering: 1,
  trafficandparkingarts: 1,
  welfare: 1,
  animalwelfare: 1,
  cornerstones: 1,
  unitedschooldistrict: 1,
  drugpolicy: 1,
  votersguide: 1,
  flooding: 1,
  pumping: 1,
  "land-use": 1,
  garbage: 1,
  san: 1,
  animal: 1,
  ecology: 1,
  responsible: 1,
  lgbtqai: 1,
  physicaleducation: 1,
  rentalproperties: 1,
  railroad: 1,
  veterans: 1,
  growthdevelopment: 1,
  medicene: 1,
  gvm: 1,
  unions: 1,
  universities: 1,
  dining: 1,
  heroin: 1,
  op: 1,
  seating: 1,
  meetings: 1,
  mentoring: 1,
  weather: 1,
  sexual: 1,
  healthyfood: 1,
  license: 1,
  driving: 1,
  press: 1,
  publictransportation: 1,
  urbandecay: 1,
  genderrelations: 1,
  fratern: 1,
  codeenforcement: 1,
  after: 1,
  landlordandtenant: 1,
  rural: 1,
  congresman: 1,
  federalgovernment: 1,
  pools: 1,
  louisvillemetrocouncildistrict16: 1,
  identification: 1,
  solarpower: 1,
  fluoridation: 1,
  dvc: 1,
  farmersmarket: 1,
  green: 1,
  signage: 1,
  americanliberalartscolleges: 1,
  parksrecreation: 1,
  mlive: 1,
  seniorcitizens: 1,
  sexuality: 1,
  sexeducation: 1,
  termlimits: 1,
  birthcontrol: 1,
  mentalhealth: 1,
  psychology: 1,
  r16traffictownship: 1,
  construction: 1,
  farming: 1,
  wirelesstechnology: 1,
  drugepidemic: 1,
  greenspace: 1,
  assistance: 1,
  programs: 1,
  communityhealth: 1,
  studentlife: 1,
  nature: 1,
  pollutants: 1,
  buildings: 1,
  walmarts: 1,
  separationofchurch: 1,
  performingarts: 1,
  publicwork: 1,
  roadculture: 1,
  publiceducation: 1,
  publicparks: 1,
  affordablefood: 1,
  fooddeserts: 1,
  riverfront: 1,
  fiber: 1,
  airquality: 1,
  cityschools: 1,
  hollystreet: 1,
  carstrucks: 1,
  hivaids: 1,
  longtermplanning: 1,
  businesssignage: 1,
  localbusiness: 1,
  elders: 1,
  stds: 1,
  gender: 1,
  lgbtq: 1,
  rail: 1,
  planning: 1,
  pestcontrol: 1,
  cityofhouston: 1,
  animalcontrol: 1,
  campus: 1,
  fuel: 1,
  gasoline: 1,
  "infrastructure-design": 1,
  sexcrimes: 1,
  fraud: 1,
  mis: 1,
  college: 1,
  anxiety: 1,
  university: 1,
  cooperation: 1,
  exercise: 1,
  "community-development": 1,
  casinos: 1,
  theater: 1,
  cleanliness: 1,
  election: 1,
  ballot: 1,
  landlordten: 1,
  noise: 1,
  ordinances: 1,
  rentcontrol: 1,
  animalrights: 1,
  bettercity: 1,
  recyclingscript: 1,
  buses: 1,
  holidays: 1,
  halloween: 1,
  suburb: 1,
  econom: 1,
  airline: 1,
  greenspaces: 1,
  history: 1,
  bigotry: 1,
  buildinginspection: 1,
  warren: 1,
  winterrecreation: 1,
  criminaljustice: 1,
  publichealth: 1,
  barbaranat: 1,
  unaffiliatedindividual: 1,
  incentives: 1,
  museums: 1,
  publicservice: 1,
  trans: 1,
  racialequality: 1,
  workplace: 1,
  governmentreform: 1,
  kansasassetverificationprogram: 1,
  salaries: 1,
  populationgrowth: 1,
  jobgrowth: 1,
  redistricting: 1,
  redist: 1,
  taxrevenues: 1,
  salud: 1,
  alcohol: 1,
  drinkingage: 1,
  publicofficials: 1,
  tspl: 1,
  highereducation: 1,
  tuition: 1,
  newsmedia: 1,
  foodsecurity: 1,
  medicine: 1,
  humanservices: 1,
  hou: 1,
  addiction: 1,
  faith: 1,
  current: 1,
  internetservice: 1,
  computers: 1,
  waterfront: 1,
  environmental: 1,
  climate: 1,
  senior: 1,
  rentalhousing: 1,
  wcl: 1,
  teachers: 1,
  consumerissues: 1,
  localgoverment: 1,
  fairnessordinance: 1,
  civildiscourse: 1,
  socialmedia: 1,
  chain: 1,
  wholefoods: 1,
  theft: 1,
  schoolfunding: 1,
  tech: 1,
  innovation: 1,
  climatechange: 1,
  bulling: 1,
  opportunity: 1,
  benefits: 1,
  energy: 1,
  alternative: 1,
  oncampus: 1,
  teens: 1,
  research: 1,
  unemployment: 1,
  massmedia: 1,
  access: 1,
  theeconomy: 1,
  broadcasting: 1,
  mediadiversity: 1,
  "ex-offenders": 1,
  "city-council": 1,
  suburbs: 1,
  springfield: 1,
  "public-schools": 1,
  reproductivehealth: 1,
  women: 1,
  traffictickets: 1,
  connectivity: 1,
  homeimprovement: 1,
  revitalization: 1,
  tax: 1,
  care: 1,
  ambulance: 1,
  cte: 1,
  fireworks: 1,
  publichousing: 1,
  earlychildhood: 1,
  regulations: 1,
  tennis: 1,
  outdoor: 1,
  thoughtsonsub: 1,
  disability: 1,
  bgpd: 1,
  planningand: 1,
  utilitiesann: 1,
  corruption: 1,
  "community-organizing": 1,
  fitness: 1,
  pedestrians: 1,
  jobcreation: 1,
  greenenergy: 1,
  "new-park": 1,
  urbanites: 1,
  obesity: 1,
  sugar: 1,
  neighborhoodcenters: 1,
  kids: 1,
  water: 1,
  k: 1,
  foodaccess: 1,
  nursing: 1,
  adjustable: 1,
  privacy: 1,
  trafficlights: 1,
  blight: 1,
  fees: 1,
  immediatehelp: 1,
  justicesystem: 1,
  plano: 1,
  utilities: 1,
  abuse: 1,
  sanitation: 1,
  curriculum: 1,
  greenfield: 1,
  drugaddiction: 1,
  speedlimit: 1,
  heritagepreservation: 1,
  homes: 1,
  goodoleboys: 1,
  consumerprotection: 1,
  c: 1,
  leisure: 1,
  refugees: 1,
  wireless: 1,
  diversity: 1,
  charity: 1,
  citygovernment: 1,
  assistanacetoneedy: 1,
  play: 1,
  bicy: 1,
  cities: 1,
  sp: 1,
  smallcities: 1,
  "courts-and": 1,
  workforcedevelopment: 1,
  crimeandcriminals: 1,
  localcontrol: 1,
  walking: 1,
  disabilities: 1,
  citycouncil: 1,
  lexington: 1,
  rentcontrols: 1,
  bicycling: 1,
  projectlist: 1,
  consumer: 1,
  socialactivities: 1,
  prisons: 1,
  eco: 1,
  corporations: 1,
  livablecities: 1,
  racial: 1,
  governmentpolicy: 1,
  renting: 1,
  planningzoning: 1,
  executivebranch: 1,
  humanrights: 1,
  fairness: 1,
  inequality: 1,
  rehabilitation: 1,
  release: 1,
  rapid: 1,
  events: 1,
  taxincentives: 1,
  uns: 1,
  governmentcorruption: 1,
  density: 1,
  bowlinggreen: 1,
  advertising: 1,
  parksandrec: 1,
  new: 1,
  fooddesert: 1,
  clothing: 1,
  textbooks: 1,
  sewerandwater: 1,
  medicalmarijuana: 1,
  renters: 1,
  civ: 1,
  emergencymanagement: 1,
  propertyvalues: 1,
  recreational: 1,
  stpetersburg: 1,
  future: 1,
  townhomes: 1,
};

Narrative summary target cc @micahstubbs

https://twitter.com/bengglover/status/1364915200248446980

Same statement already submitted in different words

Was this page helpful?
0 / 5 - 0 ratings