目前我嘗試將一些xml文件轉換成檸檬模型。我使用檸檬API和檸檬工廠來創建所需對象的實例。不幸的是,我無法找到如何實例化SenseContext類的對象。Lemon-Model:實例化SenseContext對象
E.g. Lexical Sense可以這樣創建:
LexicalSense lclsns = factory.makeSense(senseURI);
其中factory是LemonFactory的一個實例。對於SenseContext,存在於LemonFactory沒有化妝的功能,並試圖使用方法make()
沒有發揮出來,即:
SenseContext sns = factory.make(SenseContext.class, snsURI, snsURI);
(插入兩次相同的URI只是爲了測試的原因)。
誰能告訴我如何正確實例化SenseContext對象嗎?
在此先感謝!
添加在(2015年12月1日 - 17:47):對API的文檔可以在這裏找到:http://lemon-model.net/apidocs/index.html和API本身在這裏
你能請添加一個鏈接到您使用的檸檬api? – fxm
我最近添加了API的鏈接 – mrsminirobot