Spaces:
Running
Running
sync V9 no-speech teacher-object guard from qt2 e8eee55
Browse files
src/pronoun_harmonizer_v9.py
CHANGED
|
@@ -152,6 +152,8 @@ def dialogue_context(source: str) -> str:
|
|
| 152 |
|
| 153 |
|
| 154 |
def contains_dialogue_context_any(source: str, terms: tuple[str, ...]) -> bool:
|
|
|
|
|
|
|
| 155 |
return contains_source_any(dialogue_context(source), terms)
|
| 156 |
|
| 157 |
|
|
|
|
| 152 |
|
| 153 |
|
| 154 |
def contains_dialogue_context_any(source: str, terms: tuple[str, ...]) -> bool:
|
| 155 |
+
if not has_speech_marker(source):
|
| 156 |
+
return False
|
| 157 |
return contains_source_any(dialogue_context(source), terms)
|
| 158 |
|
| 159 |
|