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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72c8a15aa827cbf8ea976c4abfc58f9ea5780db55d582bb45cc7664c65f47278 |
|
MD5 | 15556d8469450c97edf58d0b88cacb4e |
|
BLAKE2b-256 | 26e0b7ca6e1182037738ee3136a6fcd4c0ccc90a563626797a5401421c9325e7 |
File details
Details for the file contentassistant-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: contentassistant-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7970b79125e6b10017c3527ae118eb85b1bab53de159c766af53d21fe71ffc1 |
|
MD5 | 6e65b8f893911d8a219c2a472c122a36 |
|
BLAKE2b-256 | 24413f3c26599e29aa51d8202728f060a036b54b71feb370eec4c9713d8ea289 |