Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ class DialogueParser:
|
|
50 |
|
51 |
def _add_patterns(self):
|
52 |
said_pattern = [
|
53 |
-
{"RIGHT_ID": "verb", "RIGHT_ATTRS": {"POS": "VERB", "LEMMA": {"IN": ["say", "ask", "reply"]}},
|
54 |
{"LEFT_ID": "verb", "REL_OP": ">", "RIGHT_ID": "speaker", "RIGHT_ATTRS": {"DEP": "nsubj"}}
|
55 |
]
|
56 |
self.matcher.add("SAID_CONSTRUCTION", [said_pattern])
|
|
|
50 |
|
51 |
def _add_patterns(self):
|
52 |
said_pattern = [
|
53 |
+
{"RIGHT_ID": "verb", "RIGHT_ATTRS": {"POS": "VERB", "LEMMA": {"IN": ["say", "ask", "reply"]}}},
|
54 |
{"LEFT_ID": "verb", "REL_OP": ">", "RIGHT_ID": "speaker", "RIGHT_ATTRS": {"DEP": "nsubj"}}
|
55 |
]
|
56 |
self.matcher.add("SAID_CONSTRUCTION", [said_pattern])
|