You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#the knowledge base consists of many noisy data like \n \t and so on . First , these have to be removed
for i in range(len(tuples)):
tuples[i] = tuples[i].replace("\n","")
tuples[i] = tuples[i].replace("\t","") # note :(this can be modified) you can try replacing all these statements using a regular expression
tuples[i] = tuples[i].replace("\t1","")
tuples[i] = tuples[i].replace("\t2","")
tuples[i] = tuples[i].replace("\t3","")
tuples[i] = tuples[i].replace("\t4","")
tuples[i] = tuples[i].replace("\t5","")
tuples[i] = tuples[i].replace("\t6","")
tuples[i] = tuples[i].replace("\t7","")
tuples[i] = tuples[i].replace(", ",",")
actual_tuples = []
# this step is just for the beginning stage . I am eliminating the relationship between the concepts . When we build a full-fledged system, the relations have to be taken into account .