Spaces:
Running
Running
File size: 501 Bytes
acfcc03 | 1 2 3 4 5 6 7 8 9 10 11 12 | from app.pipeline.nodes.cache import _has_unresolved_reference
def test_has_unresolved_reference_ignores_spatial_and_temporal_words() -> None:
assert _has_unresolved_reference("tell me about there") is False
assert _has_unresolved_reference("what happened then") is False
def test_has_unresolved_reference_detects_pronouns_and_demonstratives() -> None:
assert _has_unresolved_reference("tell me about this") is True
assert _has_unresolved_reference("what is that project") is True
|