Spaces:
Runtime error
Runtime error
cryptocalypse
commited on
Commit
•
8f59dc3
1
Parent(s):
9fef598
Update lib/me.py
Browse files
lib/me.py
CHANGED
@@ -119,7 +119,7 @@ class I:
|
|
119 |
subjects_nc = coreAi.grammatical_pos_tagger(txt)
|
120 |
|
121 |
|
122 |
-
print(subjects_nc)
|
123 |
subjects_filtered=[]
|
124 |
for sub in subjects:
|
125 |
if "PER" in sub["entity"] or "ORG" in sub["entity"] or "LOC" in sub["entity"] and len(sub["entity"])>3:
|
@@ -130,7 +130,7 @@ class I:
|
|
130 |
subjects_filtered.append(sub["word"])
|
131 |
|
132 |
## AD NC TAGGER QUERIES
|
133 |
-
print(subjects_filtered)
|
134 |
subjects_filtered=coreAi.process_list(subjects_filtered)
|
135 |
subs=[]
|
136 |
for sub in subjects_filtered:
|
@@ -139,7 +139,7 @@ class I:
|
|
139 |
|
140 |
exprs = coreAi.gen_search_expr(subs[0:3])
|
141 |
for sub in exprs:
|
142 |
-
print(sub)
|
143 |
memory.add_concept(sub,longMem.find_matches(sub))
|
144 |
|
145 |
return memory
|
|
|
119 |
subjects_nc = coreAi.grammatical_pos_tagger(txt)
|
120 |
|
121 |
|
122 |
+
#print(subjects_nc)
|
123 |
subjects_filtered=[]
|
124 |
for sub in subjects:
|
125 |
if "PER" in sub["entity"] or "ORG" in sub["entity"] or "LOC" in sub["entity"] and len(sub["entity"])>3:
|
|
|
130 |
subjects_filtered.append(sub["word"])
|
131 |
|
132 |
## AD NC TAGGER QUERIES
|
133 |
+
#print(subjects_filtered)
|
134 |
subjects_filtered=coreAi.process_list(subjects_filtered)
|
135 |
subs=[]
|
136 |
for sub in subjects_filtered:
|
|
|
139 |
|
140 |
exprs = coreAi.gen_search_expr(subs[0:3])
|
141 |
for sub in exprs:
|
142 |
+
#print(sub)
|
143 |
memory.add_concept(sub,longMem.find_matches(sub))
|
144 |
|
145 |
return memory
|