Last active
August 29, 2015 13:56
-
-
Save vanatteveldt/9180176 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ java edu.stanford.nlp.trees.EnglishGrammaticalStructure -conllx -treeFile /tmp/tree.xml > /tmp/tree.conll | |
$ nc localhost 9888 < /tmp/tree.conll | |
[... times out ...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git remote -v | |
origin https://github.com/sammthomson/semafor.git (fetch) | |
origin https://github.com/sammthomson/semafor.git (push) | |
$ git log -n 1 | |
commit 2cf39c5b13bb3a453d709400421286c3521e93eb | |
Author: Nathan Schneider <nschneid@cs.cmu.edu> | |
Date: Wed Feb 5 16:28:27 2014 -0500 | |
fraemparseval.py: bug fixes and improvements to mimic the old Perl | |
$ git pull | |
Already up-to-date. | |
$ git status | |
# On branch master | |
nothing to commit, working directory clean | |
$ java -Xms4g -Xmx4g -cp target/Semafor-3.0-alpha-04.jar edu.cmu.cs.lti.ark.fn.SemaforSocketServer model-dir:/home/wva/semafor_malt_model_20121129 port:9888 | |
model-dir:/home/wva/semafor_malt_model_20121129 | |
port:9888 | |
Initializing frame identification model... | |
Reading serialized required data | |
Done reading serialized required data | |
Reading graph from: /home/wva/semafor_malt_model_20121129/sparsegraph.gz... | |
Read graph successfully. | |
Reading model parameters... | |
100000 200000 300000 400000 500000 600000 700000 800000 900000 1000000 1100000 1200000 1300000 1400000 1500000 1600000 1700000 1800000 1900000 2000000 2100000 2200000 2300000 2400000 2500000 2600000 2700000 2800000 2900000 3000000 Done reading model parameters. | |
Initializing alphabet for argument identification.. | |
0 100000 200000 300000 400000 500000 600000 700000 800000 900000 1000000 1100000 1200000 1300000 1400000 1500000 1600000 1700000 1800000 1900000 2000000 2100000 2200000 2300000 2400000 2500000 2600000 2700000 2800000 2900000 3000000 | |
Listening on port: 9888 | |
java.lang.ArrayIndexOutOfBoundsException: 20 | |
at edu.cmu.cs.lti.ark.util.nlp.parse.DependencyParse.getHeuristicHead(DependencyParse.java:383) | |
at edu.cmu.cs.lti.ark.fn.identification.latentmodel.LatentFeatureExtractor.extractFeatures(LatentFeatureExtractor.java:217) | |
at edu.cmu.cs.lti.ark.fn.identification.LatentGraphBasedFrameIdentifier.getValueForFrame(LatentGraphBasedFrameIdentifier.java:72) | |
at edu.cmu.cs.lti.ark.fn.identification.LatentGraphBasedFrameIdentifier.pickBestFrame(LatentGraphBasedFrameIdentifier.java:49) | |
at edu.cmu.cs.lti.ark.fn.identification.LatentGraphBasedFrameIdentifier.getBestFrame(LatentGraphBasedFrameIdentifier.java:33) | |
at edu.cmu.cs.lti.ark.fn.identification.FastFrameIdentifier.getBestFrame(FastFrameIdentifier.java:115) | |
at edu.cmu.cs.lti.ark.fn.Semafor.predictFrames(Semafor.java:241) | |
at edu.cmu.cs.lti.ark.fn.Semafor.parseSentence(Semafor.java:229) | |
at edu.cmu.cs.lti.ark.fn.SemaforSocketServer.runSocketServer(SemaforSocketServer.java:48) | |
at edu.cmu.cs.lti.ark.fn.SemaforSocketServer.main(SemaforSocketServer.java:29) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 If _ IN IN _ 3 mark _ _ | |
2 I _ PRP PRP _ 5 xsubj _ _ | |
3 had _ VBD VBD _ 15 advcl _ _ | |
4 to _ TO TO _ 5 aux _ _ | |
5 rely _ VB VB _ 3 xcomp _ _ | |
6 on _ IN IN _ 0 erased _ _ | |
7 a _ DT DT _ 9 det _ _ | |
8 traditional _ JJ JJ _ 9 amod _ _ | |
9 pension _ NN NN _ 5 prep_on _ _ | |
10 , _ , , _ 15 punct _ _ | |
11 I _ PRP PRP _ 15 nsubj _ _ | |
12 would _ MD MD _ 15 aux _ _ | |
13 not _ RB RB _ 15 neg _ _ | |
14 have _ VB VB _ 15 aux _ _ | |
15 had _ VBD VBD _ 0 root _ _ | |
16 the _ DT DT _ 17 det _ _ | |
17 flexibility _ NN NN _ 21 dobj _ _ | |
18 that _ IN IN _ 21 mark _ _ | |
19 I _ PRP PRP _ 21 nsubj _ _ | |
20 currently _ RB RB _ 21 advmod _ _ | |
21 enjoy _ VBP VBP _ 17 dep _ _ | |
22 . _ . . _ 15 punct _ _ | |
23 '' _ '' '' _ 15 punct _ _ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<root><document><sentences><sentence> | |
(ROOT (S (SBAR (IN If) (S (NP (PRP I)) (VP (VBD had) (S (VP (TO to) (VP (VB rely) (PP (IN on) (NP (DT a) (JJ traditional) (NN pension))))))))) (, ,) (NP (PRP I)) (VP (MD would) (RB not) (VP (VB have) (VP (VBD had) (NP (NP (DT the) (NN flexibility)) (SBAR (IN that) (S (NP (PRP I)) (ADVP (RB currently)) (VP (VBP enjoy)))))))) (. .) ('' ''))) | |
</sentence></sentences></document></root> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment