Example #1
0
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
Example #2
0
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