M1-Arborator-NaijaSUD/arborator/lib/treebankfiles.py
def readinsingleconll(projectname,conllfile,useFileInfo=True,eraseAllAnnos=False,checkExtension=True):
	"""
	all conll10 files found in the conllfilepath are read into the projectname database
	"""
	sql = database.SQL(projectname)
	annotatorName=sql.projectconfig["configuration"]["importAnnotatorName"]
	#print sql.cleanDatabase("output_D211.xml")

	print "________________________________________current file is: " + conllfile
	if conllfile.lower().endswith(".conll10") or not checkExtension:
		#enterConll(dbname,filename,annotatorName=None, eraseAllAnnos=False, dbtextname=None): 
		if useFileInfo:
			enterConll(projectname, conllfile, eraseAllAnnos)
		else: # todo: correct:
			enterConll(projectname,conllfile,annotatorName, eraseAllAnnos)
		print "ok"
	else:
		print "skipped",conllfile

	all conll10 files found in the conllfilepath are read into the projectname database
	
all conll10 files found in the conllfilepath are read into the projectname database
all conll10 files found in the conllfilepath are read into the projectname database
def readinsingleconll(projectname,conllfile,useFileInfo=True,eraseAllAnnos=False,checkExtension=True):
	sql = database.SQL(projectname)
	annotatorName=sql.projectconfig["configuration"]["importAnnotatorName"]
	print "________________________________________current file is: " + conllfile
	if conllfile.lower().endswith(".conll10") or not checkExtension:
		if useFileInfo:
			enterConll(projectname, conllfile, eraseAllAnnos)
		else: 
			enterConll(projectname,conllfile,annotatorName, eraseAllAnnos)
		print "ok"
	else:
		print "skipped",conllfile
def readinsingleconll ( projectname , conllfile , useFileInfo = True , eraseAllAnnos = False , checkExtension = True ) : sql = database . SQL ( projectname ) annotatorName = sql . projectconfig [ "configuration" ] [ "importAnnotatorName" ] print "________________________________________current file is: " + conllfile if conllfile . lower ( ) . endswith ( ".conll10" ) or not checkExtension : if useFileInfo : enterConll ( projectname , conllfile , eraseAllAnnos ) else : enterConll ( projectname , conllfile , annotatorName , eraseAllAnnos ) print "ok" else : print "skipped" , conllfile
all conll10 files found in the conllfilepath are read into the projectname database
all conll10 files found in the conllfilepath are read into the projectname database
"""
	all conll10 files found in the conllfilepath are read into the projectname database
	""" #print sql.cleanDatabase("output_D211.xml") #enterConll(dbname,filename,annotatorName=None, eraseAllAnnos=False, dbtextname=None):  # todo: correct:
projectname
conllfile
useFileInfo
eraseAllAnnos
checkExtension