def _findSupportDB()

in archive/preprocess/clospan.py [0:0]


	def _findSupportDB(self, Ds, a):
		Ids = 0
		for i in range(0, len(self.texts)):
			if Ds[i] != -1:
				try:
					pos = self.texts[i][0][Ds[i]:].index(a) + Ds[i] + 1
					Ds[i] = pos
					Ids += self.texts[i][1]
				except ValueError:
					Ds[i] = -1
		return Ids