Skip to main content

No project description provided

Project description

FindOrg - Named Entity Recognition for Organizations using GPT

FindOrg is a Python package designed to perform Named Entity Recognition (NER), specifically targeting organizations within a given text. Leveraging OpenAI's powerful GPT models, it extracts organization names efficiently.

Installation

Before using FindOrg, ensure you have the necessary dependencies installed:

  • pandas
  • openai

Usage

from FindOrg import org

# Provide your OpenAI API key
openai_key = "YOUR_OPENAI_API_KEY"

# Sample text for analysis
text = "In the heart of Silicon Valley, a collaboration has emerged between global tech giants such as Google, Apple, and Facebook, aiming to revolutionize the digital landscape."

# Call the function
result_df = org(text, openai_key, model='gpt-3.5-turbo', save=False)

# Display the extracted organizations
print(result_df)

Arguments

  • text (str): Text to be analyzed.
  • openai_key (str): Your OpenAI API key.
  • model (str, optional): Model to be used for the analysis. Defaults to 'gpt-3.5-turbo'.
  • save (bool, optional): If True, the output will be saved as an Excel file named 'organizations.xlsx'. Defaults to False.

Returns

  • pandas.DataFrame: DataFrame containing the extracted organizations.

Output

The output DataFrame consists of a single column named "Organizations", containing the extracted organization names.

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

FindOrg-0.2.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distributions

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

FindOrg-0.2.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

FindOrg-0.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file FindOrg-0.2.0.tar.gz.

File metadata

  • Download URL: FindOrg-0.2.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.8

File hashes

Hashes for FindOrg-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e9c9ecc5d431e5048744b636c194213d9c9dbcabe6e83d4a16f3436ab2e49f22
MD5 e2992474e52e784813e191bd577385cc
BLAKE2b-256 1c76170b74dc6e4e29a6563336421f8b7abb2a98c16ee9c8f11ebf2edf588ea2

See more details on using hashes here.

File details

Details for the file FindOrg-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: FindOrg-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.8

File hashes

Hashes for FindOrg-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6dffcc237bed0b8793170df771c9c9b63125cccbe0898d32ec4addaca856095d
MD5 584fae5077a84d56e1dce947e0fdfa84
BLAKE2b-256 738dba05e30bc551f3755f245ea067f3017314caacb3f463a91f8034680de1f0

See more details on using hashes here.

File details

Details for the file FindOrg-0.2-py3-none-any.whl.

File metadata

  • Download URL: FindOrg-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.8

File hashes

Hashes for FindOrg-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4580759814cfd2cdee7864710834f8e0996757633b4881f29a823b31c9a8947
MD5 20e5e61c8d4c10a5512dabd02a45c8ff
BLAKE2b-256 725d3aac9339ae3e0b9b2e3a03c898030706e0ed1b662a23d9075136b07e0da3

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