-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the Predacons Wiki! Predacons is a Python library based on transformers used for transfer learning. It simplifies the process of applying advanced machine learning techniques to your projects with a suite of tools for data processing, model training, and text generation.
- Installation
- Usage
- Features
- Contributing
- License
To install Predacons, run the following command in your terminal:
pip install predaconsEnsure you have Python 3.10 or later installed to use Predacons.
Here's how to get started with Predacons:
from predacons import predacons
predacons.rollout()# From a directory
predacons.read_documents_from_directory('your/directory/path')cleaned_text = predacons.clean_text("Your dirty text here")predacons.train(train_file_path="path/to/train/file",
model_name="your_model_name",
output_dir="path/to/output/dir",
overwrite_output_dir=True,
per_device_train_batch_size=4,
num_train_epochs=3,
save_steps=100)generated_text = predacons.generate_text(model_path="path/to/your/model",
sequence="Seed text for generation",
max_length=50)Predacons offers a comprehensive set of features:
- Data Loading: Load data from directories or files.
- Text Cleaning: Clean text data with built-in functions.
- Model Training: Train transformer models with custom data.
- Text Generation: Generate text using trained models.
We welcome contributions! If you have suggestions for improvements or new features, please open an issue first to discuss your ideas. For code contributions, submit a pull request.
Predacons is licensed under multiple licenses:
- Free users: GNU Affero General Public License (AGPL).
- Paid users: Options for a perpetual or yearly commercial license.
Please ensure you understand and comply with the license that applies to you.
This wiki serves as a guide for users and contributors of the Predacons library. For more detailed information, refer to the official documentation and the README file in the GitHub repository.
This wiki serves as a guide for users and contributors of the Predacons library. For more detailed information, refer to the official documentation and the README file in the GitHub repository.