Spaces:
Runtime error
Runtime error
title: Text Style Transfer | |
emoji: π π π | |
colorFrom: blue | |
colorTo: green | |
sdk: streamlit | |
sdk_version: 1.10.0 | |
python_version: 3.9.7 | |
app_file: apps/app.py | |
models: | |
[ | |
"sentence-transformers/all-MiniLM-L6-v2", | |
"cffl/bert-base-styleclassification-subjective-neutral", | |
"cffl/bart-base-styletransfer-subjective-to-neutral", | |
"cointegrated/roberta-base-formality", | |
"prithivida/informal_to_formal_styletransfer", | |
] | |
pinned: true | |
license: apache-2.0 | |
# Exploring Intelligent Writing Assistance | |
A demonstration of how the NLP task of _text style transfer_ can be applied to enhance the human writing experience using [HuggingFace Transformers](https://huggingface.co/) and [Streamlit](https://streamlit.io/). | |
![](static/images/app_screenshot.png) | |
> This repo accompanies Cloudera Fast Forward Labs' [blog series](https://blog.fastforwardlabs.com/2022/03/22/an-introduction-to-text-style-transfer.html) in which we explore the task of automatically neutralizing subjectivity bias in free text. | |
The goal of this application is to demonstrate how the NLP task of text style transfer can be applied to enhance the human writing experience. In this sense, we intend to peel back the curtains on how an intelligent writing assistant might function β walking through the logical steps needed to automatically re-style a piece of text (from informal-to-formal **or** subjective-to-neutral) while building up confidence in the model output. | |
Through the application, we emphasize the imperative for a human-in-the-loop user experience when designing natural language generation systems. We believe text style transfer has the potential to empower writers to better express themselves, but not by blindly generating text. Rather, generative models, in conjunction with interpretability methods, should be combined to help writers understand the nuances of linguistic style and suggest stylistic edits that may improve their writing. | |
## Project Structure | |
``` | |
. | |
βββ LICENSE | |
βββ README.md | |
βββ apps | |
β βββ app.py | |
β βββ app_utils.py | |
β βββ data_utils.py | |
β βββ visualization_utils.py | |
βββ requirements.txt | |
βββ scripts | |
β βββ download_models.py | |
β βββ install_dependencies.py | |
β βββ launch_app.py | |
βββ setup.py | |
βββ src | |
β βββ __init__.py | |
β βββ content_preservation.py | |
β βββ style_classification.py | |
β βββ style_transfer.py | |
β βββ transformer_interpretability.py | |
βββ static | |
β βββ images | |
βββ tests | |
βββ __init__.py | |
βββ test_model_classes.py | |
``` | |