def testLU(fileName): a = LexicalUnit() try: if not a.loadXML(FRAMENET_PATH+"/"+LU_DIR_ENV+"/"+fileName): print >> sys.stderr, 'loading:', fileName, 'failed' except: print >> sys.stderr, 'loading:', fileName, 'failed' print a.getLexemes() return a
def testLU(fileName): a = LexicalUnit() try: if not a.loadXML(FRAMENET_PATH + "/" + LU_DIR_ENV + "/" + fileName): print >> sys.stderr, 'loading:', fileName, 'failed' except: print >> sys.stderr, 'loading:', fileName, 'failed' print a.getLexemes() return a