For this kata, try implementing a trigram algorithm that generates a couple of hundred words of text using a book-sized file as input.
Project description
este archivo se trata de definir mi kata, La kata que me toco es la 14 que lo que quiere decir es (For this kata, try implementing a trigram algorithm that generates a couple of hundred words of text using a book-sized file as input. )
import sys import os
Añade el directorio raÃz del proyecto al path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(file), 'src')))
Ahora puedes importar el módulo generar_trigramas desde src.domain
from domain import generar_trigramas
def main(): parrafo = input("Ingresa un párrafo: ") trigramas = generar_trigramas(parrafo) for clave, valor in trigramas.items(): print(f"{clave}: {', '.join(valor)}")
if name == "main": main()
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
final2-0.0.1.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file final2-0.0.1.tar.gz
.
File metadata
- Download URL: final2-0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 836ab722314e646e7b33a058954f01ec2bfcb2cc4ddf77f524b56b391de9c989 |
|
MD5 | 58e30744a3e944fc3ec500c9df2a7a28 |
|
BLAKE2b-256 | c325e91e0f4c6ae62066598767f4d4b1ae8062a08676fc1158f051f55185eee1 |
File details
Details for the file Final2-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: Final2-0.0.1-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449f682d48def337ae8af5b612094bdbd5bd5107ef83ea09042279ff5404ff27 |
|
MD5 | d1c47cca10eb51dcfe99c38f99b9ff69 |
|
BLAKE2b-256 | 0667c20fd289a168723b26718428b9b5e2ceef983bfe65177539a2b80808366f |