Spaces:
Sleeping
Sleeping
Rename app_21.py to app_22.py
Browse files- app_21.py → app_22.py +3 -3
app_21.py → app_22.py
RENAMED
@@ -138,9 +138,9 @@ def extract_arguments(text, tokenizer, model, beam_search=True):
|
|
138 |
st.write(f"Token {i}: {token}, Word ID: {word_id}")
|
139 |
|
140 |
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
|
145 |
st.write(f"Start Cause 1: {start_cause1}, End Cause: {end_cause1}")
|
146 |
st.write(f"Start Effect 1: {start_effect1}, End Cause: {end_effect1}")
|
|
|
138 |
st.write(f"Token {i}: {token}, Word ID: {word_id}")
|
139 |
|
140 |
|
141 |
+
st.write("Token Positions, IDs, and Corresponding Tokens:")
|
142 |
+
for position, (token_id, token) in enumerate(zip(token_ids, tokens)):
|
143 |
+
st.write(f"Position: {position}, ID: {token_id}, Token: {token}")
|
144 |
|
145 |
st.write(f"Start Cause 1: {start_cause1}, End Cause: {end_cause1}")
|
146 |
st.write(f"Start Effect 1: {start_effect1}, End Cause: {end_effect1}")
|