Sina1138 commited on
Commit ·
b2a2cb2
1
Parent(s): 5138b5d
Update demo description and rename tool to ReView
Browse files- interface/Demo.py +41 -15
interface/Demo.py
CHANGED
|
@@ -50,28 +50,54 @@ topic_color_map = {
|
|
| 50 |
|
| 51 |
# GLIMPSE Home/Description Page
|
| 52 |
glimpse_description = """
|
| 53 |
-
#
|
| 54 |
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
---
|
| 60 |
-
|
| 61 |
## **Key Features**
|
| 62 |
-
- *
|
| 63 |
-
- *
|
| 64 |
-
- **
|
| 65 |
-
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
| 68 |
|
| 69 |
---
|
| 70 |
|
| 71 |
-
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
"""
|
| 74 |
|
|
|
|
| 75 |
EXAMPLES = [
|
| 76 |
"The paper gives really interesting insights on the topic of transfer learning. It is well presented and the experiment are extensive. I believe the authors missed Jane and al 2021. In addition, I think, there is a mistake in the math.",
|
| 77 |
"The paper gives really interesting insights on the topic of transfer learning. It is well presented and the experiment are extensive. Some parts remain really unclear and I would like to see a more detailed explanation of the proposed method.",
|
|
@@ -253,8 +279,8 @@ def summarize(text1, text2, text3, focus, mode, rationality=1.0, iterations=1):
|
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
-
with gr.Blocks(title="
|
| 257 |
-
gr.Markdown("#
|
| 258 |
|
| 259 |
with gr.Tab("Introduction"):
|
| 260 |
gr.Markdown(glimpse_description)
|
|
@@ -771,4 +797,4 @@ with gr.Blocks(title="GlimpSys") as demo:
|
|
| 771 |
outputs=[review_id, review1, review2, review3, review4, review5, review6, review7, review8, most_common_sentences, most_unique_sentences, topic_text_box, state]
|
| 772 |
)
|
| 773 |
|
| 774 |
-
demo.launch(share=
|
|
|
|
| 50 |
|
| 51 |
# GLIMPSE Home/Description Page
|
| 52 |
glimpse_description = """
|
| 53 |
+
# ReView: A Tool for Visualizing and Analyzing Scientific Reviews
|
| 54 |
|
| 55 |
+
## Overview
|
| 56 |
+
ReView is a visualization tool designed to assist **area chairs** and **researchers** in efficiently analyzing scholarly reviews. The interface offers two main ways to explore scholarly reviews:
|
| 57 |
+
- Pre-Processed Reviews: Explore real peer reviews from ICLR (2017–2021) with structured visualizations of sentiment, topics, and reviewer agreement.
|
| 58 |
+
- Interactive Tab: Enter your own reviews and view them analyzed in real time using the same NLP-powered highlighting options.
|
| 59 |
|
| 60 |
+
All reviews are shown in their original, unaltered form, with visual overlays to help identify key insights such as disagreements, sentiment and common themes—reducing cognitive load and scrolling effort.
|
| 61 |
|
| 62 |
---
|
|
|
|
| 63 |
## **Key Features**
|
| 64 |
+
- *Traceability and Transparency:* The tool preserves the original text of each review and overlays highlights for key aspects (e.g., sentiment, topic, agreement), allowing area chairs to trace back every insight to its source without modifying or summarizing the content.
|
| 65 |
+
- *Structured Overview*: All reviews are displayed in one interface and with radio buttons, one can navigate from one highlighting option to the other.
|
| 66 |
+
- *Interactive*: The tool allows users to input their own reviews and, within seconds, view them annotated with highlighted aspects
|
| 67 |
+
---
|
| 68 |
+
## **Highlighting Options**
|
| 69 |
+
- *Agreement:* Identifies both shared and conflicting points across reviews, helping to surface consensus and disagreement.
|
| 70 |
+
- *Polarity:* Highlights positive and negative sentiments within the reviews to reveal tone and stance.
|
| 71 |
+
- *Topic:* Organizes the review sentences by their discussed topics, ensuring coverage of diverse reviewer perspectives and improving clarity.
|
| 72 |
|
| 73 |
---
|
| 74 |
|
| 75 |
+
### How to Use ReView
|
| 76 |
+
|
| 77 |
+
ReView offers two main ways to explore peer reviews: using pre-processed reviews or by entering your own.
|
| 78 |
+
|
| 79 |
+
#### 🗂️ Pre-Processed Reviews Tab
|
| 80 |
+
|
| 81 |
+
Use this tab to explore reviews from ICLR (2017–2021):
|
| 82 |
+
|
| 83 |
+
1. **Select a conference year** from the dropdown menu on the right.
|
| 84 |
+
2. **Navigate between submissions** using the *Next* and *Previous* buttons on the left.
|
| 85 |
+
3. **Choose a highlighting view** using the radio buttons:
|
| 86 |
+
- **Original**: Displays unmodified review text.
|
| 87 |
+
- **Agreement**: Highlights consensus points in **red** and disagreements in **purple**.
|
| 88 |
+
- **Polarity**: Highlights **positive** sentiment in **green** and **negative** sentiment in **red**.
|
| 89 |
+
- **Topic**: Highlights comments by discussion topic using color-coded labels.
|
| 90 |
+
|
| 91 |
+
#### ✍️ Interactive Tab
|
| 92 |
+
|
| 93 |
+
Use this tab to analyze your own review text:
|
| 94 |
+
|
| 95 |
+
1. **Enter up to three reviews** in the input fields labeled *Review 1*, *Review 2*, and *Review 3*.
|
| 96 |
+
2. **Click "Process"** to analyze the input (average processing time: ~42 seconds).
|
| 97 |
+
3. **Explore the results** using the same highlighting options as above (Agreement, Polarity, Topic).
|
| 98 |
"""
|
| 99 |
|
| 100 |
+
|
| 101 |
EXAMPLES = [
|
| 102 |
"The paper gives really interesting insights on the topic of transfer learning. It is well presented and the experiment are extensive. I believe the authors missed Jane and al 2021. In addition, I think, there is a mistake in the math.",
|
| 103 |
"The paper gives really interesting insights on the topic of transfer learning. It is well presented and the experiment are extensive. Some parts remain really unclear and I would like to see a more detailed explanation of the proposed method.",
|
|
|
|
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
+
with gr.Blocks(title="ReView") as demo:
|
| 283 |
+
# gr.Markdown("# ReView Interface")
|
| 284 |
|
| 285 |
with gr.Tab("Introduction"):
|
| 286 |
gr.Markdown(glimpse_description)
|
|
|
|
| 797 |
outputs=[review_id, review1, review2, review3, review4, review5, review6, review7, review8, most_common_sentences, most_unique_sentences, topic_text_box, state]
|
| 798 |
)
|
| 799 |
|
| 800 |
+
demo.launch(share=False)
|