Skip to main content

a python library to detect social groups mentioned in political texts

Project description

socialgroupdetection

Example usage

from socialgroupdetection import SGA



# make sure you have BEARER_KEY set as an environment variable or you use bearer_key in constructor



sga = SGA(gwdg_server=True, bearer_key=None) # set bearer key to your gwdg/chatgpt key

response = sga.get_completion(prompt="The teleworker brings only his or her work tools offices are generally equipped and pays for access to the office?")

Returns:

{

 "explizit": [

   "teleworker"

 ],

 "implizit": [],

 "sonstige": [

   "work tools",

   "offices"

 ]

}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

socialgroupdetection-0.0.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

socialgroupdetection-0.0.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file socialgroupdetection-0.0.1.tar.gz.

File metadata

  • Download URL: socialgroupdetection-0.0.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for socialgroupdetection-0.0.1.tar.gz
Algorithm Hash digest
SHA256 edb51fece185759e8f2aa54b2bea0810e5a53a2bd6a6497593e15c9792978513
MD5 0d86f5a85ab8bb61a2ce393d42c7814f
BLAKE2b-256 ca4a74bfd565e592542398a720ad340838172b8e50ace6abacb890cb04e64ee1

See more details on using hashes here.

File details

Details for the file socialgroupdetection-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for socialgroupdetection-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5f3276ff161ee34db8b60cc72c9928d5d1513f2de2443a05b7f10c05cb51215
MD5 5988bdd154e77685845bd83e1ab34f3e
BLAKE2b-256 5670f9b8a355b344eb38379db4442699daf77439b94db40e9f4b56576f1fed67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page