Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing test.predicted.xml after running decoding with SEMAFOR #17

Closed
yongzx opened this issue Jun 4, 2019 · 1 comment
Closed

Missing test.predicted.xml after running decoding with SEMAFOR #17

yongzx opened this issue Jun 4, 2019 · 1 comment

Comments

@yongzx
Copy link

yongzx commented Jun 4, 2019

May I know what should I expect after running decoding with SEMAFOR? I thought I would receive test.predicted.xml, or a document where it stores the predicted arguments as I learn from running score.sh but I couldn't find the file in /home/zxy485/zxy485gallinahome/week1/pyfn/experiments/xp_001/data

Codes that I run:

$ ./semafor.sh -m decode -x 001 -s test
ROFAMES TRAIN MODE OPTIONS
  JAVA_HOME_BIN = /usr/bin/
  CLASSPATH = /home/zxy485/zxy485gallinahome/week1/pyfn/scripts/../lib/semafor/bin/../rofames-1.0.0.jar
  XP_DIR = /home/zxy485/zxy485gallinahome/week1/pyfn/scripts/../experiments/xp_001
  splits = test
  kbest = 1
  max_ram = 8g
  with_hierarchy = FALSE
  LOGS_DIR = /home/zxy485/zxy485gallinahome/week1/pyfn/scripts/../log

Decoding with ROFAMES...
[INFO] ScoreWithGoldFrames:44  - Initializing parser for scoring...
[INFO] ScoreWithGoldFrames:45  - Extracting dependency-parsed testing sentences...
[INFO] ScoreWithGoldFrames:46  - 	from: /home/zxy485/zxy485gallinahome/week1/pyfn/scripts/../experiments/xp_001/data/test.sentences.conllx
[INFO] ScoreWithGoldFrames:49  - Done extracting dependency-parsed testing sentences
[INFO] ScoreWithGoldFrames:50  - Extracting frames...
[INFO] ScoreWithGoldFrames:51  - 	from: /home/zxy485/zxy485gallinahome/week1/pyfn/scripts/../experiments/xp_001/data/test.frames
[INFO] ScoreWithGoldFrames:55  - Done extracting frames
[INFO] ScoreWithGoldFrames:56  - Extracting argument identification alphabet...
[INFO] ScoreWithGoldFrames:57  - 	from: /home/zxy485/zxy485gallinahome/week1/pyfn/scripts/../experiments/xp_001/model/parser.conf
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
[INFO] ScoreWithGoldFrames:60  - Done extracting argument identification alphabet
[INFO] ScoreWithGoldFrames:61  - Extracting Frame2FrameElement dictionary...
[INFO] ScoreWithGoldFrames:62  - 	from: /home/zxy485/zxy485gallinahome/week1/pyfn/scripts/../experiments/xp_001/data/framenet.frame.element.map
[INFO] ScoreWithGoldFrames:64  - Done extracting Frame2FrameElement dictionary
[INFO] ScoreWithGoldFrames:65  - Initializing decoder...
[INFO] ScoreWithGoldFrames:66  - 	from: /home/zxy485/zxy485gallinahome/week1/pyfn/scripts/../experiments/xp_001/model/argmodel.dat
[INFO] ScoreWithGoldFrames:67  - 	and from: /home/zxy485/zxy485gallinahome/week1/pyfn/scripts/../experiments/xp_001/model/parser.conf
[INFO] ScoreWithGoldFrames:70  - Done initializing decoder
[INFO] ScoreWithGoldFrames:74  - Done initializing parser
[INFO] ScoreWithGoldFrames:86  - Scoring with gold frames...
[INFO] ScoreWithGoldFrames:87  - Predicting arguments...
[INFO] StaticSemafor:111 - sentences.size = 1247
[INFO] StaticSemafor:112 - frameSplitsMap.size = 1247
[INFO] StaticSemafor:129 - There are 0 sentences without frame annotation
[INFO] ScoreWithGoldFrames:91  - Done predicting arguments

Directory and Files in /home/zxy485/zxy485gallinahome/week1/pyfn/experiments/xp_001

# data/
dev.frames
dev.sentences
framenet.frame.element.map
frames.xml
frRelations.xml
test.frame.elements
test.frames
test.gold.xml
test.sentences
test.sentences.conllx
train.frame.elements
train.sentences
train.sentences.conllx
train.sentences.conllx.flattened

# model/
argmodel.dat
featurecache.jobj
parser.conf
train.events.bin
train.sentences.frame.elements.spans
@yongzx
Copy link
Author

yongzx commented Jun 4, 2019

Sorry about opening this issue. I realize my mistake. The file generated is test.frame.elements.

@yongzx yongzx closed this as completed Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant