open jdk 7 or JDK 8 and wher to get the model files including wsj.model.

60 views
Skip to first unread message

souravidea

unread,
Apr 4, 2016, 10:49:49 AM4/4/16
to semafor-users
Does it require openJDK or oracle JDK 8 for installation. Any constraints? And where to get all the model files? The CMU ark link is only giving wsj.model.

souravidea

unread,
Apr 6, 2016, 1:18:05 AM4/6/16
to semafor-users

The problem is solved. I have downloaded all the model file from the same link.It is running in noserver mode.
But when I changed it to server mode and try to run ./startMSTServer.sh it is sticked in the line Waiting for Connection on Port: 12345 ...
another question .can I run SEMAFOR 2.1 as TCP socket server like semafor 3?

souravidea

unread,
Apr 6, 2016, 1:19:05 AM4/6/16
to semafor-users

souravidea

unread,
Apr 6, 2016, 8:15:28 AM4/6/16
to semafor-users

MSTparser is perfectly working in server mode. Thanks

Q1. Now can anybody tell me how to run Semafor 2.1 in server mode. Is it possible? no program like Semafor 3.0 is available inside the folder.
Q2. How to get text output instead of XML?

Sam Thomson

unread,
Apr 6, 2016, 2:46:11 PM4/6/16
to semafor-users
Hi Sourav,

On Wednesday, April 6, 2016 at 5:15:28 AM UTC-7, souravidea wrote:

Q1. Now can anybody tell me how to run Semafor 2.1 in server mode. Is it possible? no program like Semafor 3.0 is available inside the folder.

No, sorry, that's not a feature of SEMAFOR 2.1.

Q2. How to get text output instead of XML?

No, sorry, that's also not a feature of SEMAFOR 2.1.

Cheers,
-Sam

souravidea

unread,
Apr 7, 2016, 11:02:58 AM4/7/16
to semafor-users
Finally I am able to run MSTparser and SEMAFOR 3.0 both in server mode. Thanks Sam and everybody. I will upload a clear guideline and steps with visual examples about installing and executing All type of semafor in this forum later on.
I think Semafor 3.0 is not using MSTparser.

from a java program I want to call semafor by providing a single sentence and It will give me frames which I want to store as table which is important for my work.example- Harry has 14 apples.
like
Harry-Owner
has-have[possession]
14-
apples-food
Any programming example, or demo or links are highly appreciated.

Sam Thomson

unread,
Apr 7, 2016, 12:35:28 PM4/7/16
to semafor-users


On Thursday, April 7, 2016 at 8:02:58 AM UTC-7, souravidea wrote:
Finally I am able to run MSTparser and SEMAFOR 3.0 both in server mode. Thanks Sam and everybody. I will upload a clear guideline and steps with visual examples about installing and executing All type of semafor in this forum later on.

That would be great!
 
I think Semafor 3.0 is not using MSTparser.

Right. It's using Malt by default.
 
from a java program I want to call semafor by providing a single sentence and It will give me frames which I want to store as table which is important for my work.example- Harry has 14 apples.
like
Harry-Owner
has-have[possession]
14-
apples-food
Any programming example, or demo or links are highly appreciated.

You can call:

getSemaforInstance to load up SEMAFOR's models. 

ConllCodec.readInput to read in a dependency parsed file in CONLL-X format and get an iterator of Sentence objects.

parseSentence to get a frame-semantic parse of a sentence.

Cheers,
-Sam 
Reply all
Reply to author
Forward
0 new messages