Repository navigation
Home
Edward Chen edited this page Mar 31, 2025
·
2 revisions
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.
Aparecium provides powerful tools for:
- Converting text to embedding vectors
- Reversing embedding vectors back to text
- Seamless integration with SentiChain
pip install apareciumfrom 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)-
vectorize(text: str) -> np.ndarray: Convert text to embedding vector -
batch_vectorize(texts: List[str]) -> np.ndarray: Convert multiple texts to vectors
-
reverse(vector: np.ndarray) -> str: Convert vector back to text -
batch_reverse(vectors: np.ndarray) -> List[str]: Convert multiple vectors to texts
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.