Skip to main content

Manipulação do assistente de conteúdo

Project description

ContentAssistant

Realize teste em massa e obtenha informações como:

Intenção reconhecida;__ Entidades reconhecidas;__ Score__ Se encontrou alguma resposta no assistente de conteúdo;__ Resposta encontrada.__

import ContentAssistant

CA = ContentAssistant.Test(AUTH, input)

Para instanciar a classe, é necessário dois parâmetros:

AUTH: String - Authorization/Key do bot.

input: Lista ou pd.Series (coluna de DataFrame) - Frases para efetuar o teste.

Uso com lista

import ContentAssistant
AUTH = 'KEY_DO_BOT'
input = ['texto1','texto2']
CA = ContentAssistant.Test(AUTH, input)
response = CA.run_test() 

Uso com pd.Series

import ContentAssistant
import pandas as pd

AUTH = 'KEY_DO_BOT'
df = pd.read_csv('C:\Users\base.csv', sep=';', encoding='utf8') #Abrindo o arquivo
input = df['Frases'] #Selecionando a coluna com as frases
CA = ContentAssistant.Test(AUTH, input)
response = CA.run_test()

Salvando o resultado

Escolha o caminho, nome do arquivo, tipo (csv,txt) e separador, e rode o código abaixo.

response.to_csv(r'/minha_pasta/resultado_1.csv', sep=";",encoding='utf8') 

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

contentassistant-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

contentassistant-0.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: contentassistant-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for contentassistant-0.0.1.tar.gz
Algorithm Hash digest
SHA256 72c8a15aa827cbf8ea976c4abfc58f9ea5780db55d582bb45cc7664c65f47278
MD5 15556d8469450c97edf58d0b88cacb4e
BLAKE2b-256 26e0b7ca6e1182037738ee3136a6fcd4c0ccc90a563626797a5401421c9325e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for contentassistant-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7970b79125e6b10017c3527ae118eb85b1bab53de159c766af53d21fe71ffc1
MD5 6e65b8f893911d8a219c2a472c122a36
BLAKE2b-256 24413f3c26599e29aa51d8202728f060a036b54b71feb370eec4c9713d8ea289

See more details on using hashes here.

Supported by

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