Skip to content
Edward Chen edited this page Mar 31, 2025 · 2 revisions

Welcome to Aparecium

Aparecium is a Python package for revealing text from embedding vectors, designed to work seamlessly with SentiChain. This documentation provides essential information about using and integrating Aparecium into your projects.

Overview

Aparecium provides powerful tools for:

  • Converting text to embedding vectors
  • Reversing embedding vectors back to text
  • Seamless integration with SentiChain

Installation

pip install aparecium

Quick Start

from aparecium import Vectorizer, Seq2SeqReverser

# Initialize the vectorizer
vectorizer = Vectorizer()

# Convert text to vector
text = "Hello, world!"
vector = vectorizer.vectorize(text)

# Initialize the reverser
reverser = Seq2SeqReverser()

# Convert vector back to text
reconstructed_text = reverser.reverse(vector)

API Reference

Vectorizer

  • vectorize(text: str) -> np.ndarray: Convert text to embedding vector
  • batch_vectorize(texts: List[str]) -> np.ndarray: Convert multiple texts to vectors

Seq2SeqReverser

  • reverse(vector: np.ndarray) -> str: Convert vector back to text
  • batch_reverse(vectors: np.ndarray) -> List[str]: Convert multiple vectors to texts

Getting Help

For questions, issues, or contributions, please visit our GitHub repository.


Note: This documentation is currently under active development. For the most up-to-date information, please refer to the source code and inline documentation.