Skip to content
Snippets Groups Projects
Commit f0a52a8f authored by wesenberg's avatar wesenberg
Browse files

amr_error

parent 8d9930e9
No related branches found
No related tags found
No related merge requests found
Showing
with 4 additions and 25787 deletions
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (rl-sentence-compression-wesenberg)" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (rl-sentence-compression-wesenberg)" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
......@@ -4,7 +4,7 @@
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.9 (rl-sentence-compression-wesenberg)" jdkType="Python SDK" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
# AMR-Visualization
AMR-Visualization Tools, show AMR graph structure.
Abstract Meaning Representation Visualization
## Quickstart
```python
python amr-slide-simple.py AMR-file.txt
or
python amr-slide-single-line.py AMR-file-with-single-line-format.txt
```
- Python3.5+
- Your input should be raw AMR format (likes [JAMR](https://github.com/jflanigan/jamr)).
- Install [graphviz](https://pypi.org/project/graphviz/)
Remember to configure environment variables after installing graphviz
- Output is PDF, it is easy to convert 2 picture
## Example
AMR-file.txt
```
# ::snt export of high-tech products has frequently been in the spotlight , making a significant contribution to the growth of foreign trade in guangdong .
# ::tok export of high - tech products has frequently been in the spotlight , making a significant contribution to the growth of foreign trade in guangdong .
# ::alignments 24-25|0 22-23|0.0 21-22|0.0.1.0.1.0 19-20|0.0.1 16-17|0.0.1.0 15-16|0.0.1.0.1 11-12|0.0.0.0 7-8|0.0.0 5-6|0.0.1.0.0.0 4-5|0.0.1.0.0.0.0 2-3|0.0.1.0.0.0.0.0 0-1|0.0.1.0.0 ::annotator JAMR dev v0.3 ::date 2019-07-08T23:42:17.243
(g / guangdong
:ARG2-of (t / trade-01
:ARG1 (f2 / frequent-02
:ARG1 (s2 / spotlight))
:ARG1-of (g2 / grow-01
:ARG2-of (c / contribute-01
:ARG1 (e / export-01
:ARG1 (p / product
:mod (t2 / tech
:ARG1-of (h / high-02))))
:ARG1-of (s / significant-02
:compared-to (f / foreign))))))
```
AMR-file-with-single-line-format.txt
```
gold :op1 interrogative
know :arg0 you :arg1 it :beneficiary interrogative :mod ( country :name ( name :op1 wouldn ) ) :polarity -
(g / guangdong :ARG2-of (t / trade-01 :ARG1 (f2 / frequent-02 :ARG1 (s2 / spotlight)) :ARG1-of (g2 / grow-01 :ARG2-of (c / contribute-01 :ARG1 (e / export-01 :ARG1 (p / product :mod (t2 / tech :ARG1-of (h / high-02)))) :ARG1-of (s / significant-02 :compared-to (f / foreign))))))
```
Visualization(Demo Only Show Multi-line)
```
digraph "AMR-Graph" {
rankdir=TB
f2 [label="frequent-02"]
s2 [label=spotlight]
f2 -> s2 [label=":ARG1"]
t [label="trade-01"]
f2 [label="frequent-02"]
t -> f2 [label=":ARG1"]
t2 [label=tech]
h [label="high-02"]
t2 -> h [label=":ARG1-of"]
p [label=product]
t2 [label=tech]
p -> t2 [label=":mod"]
e [label="export-01"]
p [label=product]
e -> p [label=":ARG1"]
c [label="contribute-01"]
e [label="export-01"]
c -> e [label=":ARG1"]
s [label="significant-02"]
f [label=foreign]
s -> f [label=":compared-to"]
c [label="contribute-01"]
s [label="significant-02"]
c -> s [label=":ARG1-of"]
g2 [label="grow-01"]
c [label="contribute-01"]
g2 -> c [label=":ARG2-of"]
t [label="trade-01"]
g2 [label="grow-01"]
t -> g2 [label=":ARG1-of"]
g [label=guangdong]
t [label="trade-01"]
g -> t [label=":ARG2-of"]
}
```
![Demo](./demo.jpg)
## Citation
If you would like to cite this work, please cite the following:
AMR-Visualization,xdqkid, https://github.com/xdqkid/AMR-Visualization
---
# 抽象语义表示可视化工具
## 快速入门
```python
python amr-slide-simple.py AMR-file.txt
or
python amr-slide-single-line.py AMR-file-with-single-line-format.txt
```
- Python3.5+
- AMR格式参考[JAMR](https://github.com/jflanigan/jamr)
- 安装[graphviz](https://pypi.org/project/graphviz/)
根据平台下载graphviz安装包,配置环境变量,然后pip
- 输出是PDF。如果需要图片格式,那你肯定不是在写论文(逃
## 示例
AMR-file.txt样例文件示意
```
# ::snt export of high-tech products has frequently been in the spotlight , making a significant contribution to the growth of foreign trade in guangdong .
# ::tok export of high - tech products has frequently been in the spotlight , making a significant contribution to the growth of foreign trade in guangdong .
# ::alignments 24-25|0 22-23|0.0 21-22|0.0.1.0.1.0 19-20|0.0.1 16-17|0.0.1.0 15-16|0.0.1.0.1 11-12|0.0.0.0 7-8|0.0.0 5-6|0.0.1.0.0.0 4-5|0.0.1.0.0.0.0 2-3|0.0.1.0.0.0.0.0 0-1|0.0.1.0.0 ::annotator JAMR dev v0.3 ::date 2019-07-08T23:42:17.243
# 前面有#号都可以忽略,重要的是下面的AMR图,AMR图之间用空行分隔开。
(g / guangdong
:ARG2-of (t / trade-01
:ARG1 (f2 / frequent-02
:ARG1 (s2 / spotlight))
:ARG1-of (g2 / grow-01
:ARG2-of (c / contribute-01
:ARG1 (e / export-01
:ARG1 (p / product
:mod (t2 / tech
:ARG1-of (h / high-02))))
:ARG1-of (s / significant-02
:compared-to (f / foreign))))))
```
AMR-file-with-single-line-format.txt样例文件示意,即单行简化的AMR图。
```
gold :op1 interrogative
know :arg0 you :arg1 it :beneficiary interrogative :mod ( country :name ( name :op1 wouldn ) ) :polarity -
(g / guangdong :ARG2-of (t / trade-01 :ARG1 (f2 / frequent-02 :ARG1 (s2 / spotlight)) :ARG1-of (g2 / grow-01 :ARG2-of (c / contribute-01 :ARG1 (e / export-01 :ARG1 (p / product :mod (t2 / tech :ARG1-of (h / high-02)))) :ARG1-of (s / significant-02 :compared-to (f / foreign))))))
```
可视化(这里仅展示多行,单行效果相同)
```
digraph "AMR-Graph" {
rankdir=TB
f2 [label="frequent-02"]
s2 [label=spotlight]
f2 -> s2 [label=":ARG1"]
t [label="trade-01"]
f2 [label="frequent-02"]
t -> f2 [label=":ARG1"]
t2 [label=tech]
h [label="high-02"]
t2 -> h [label=":ARG1-of"]
p [label=product]
t2 [label=tech]
p -> t2 [label=":mod"]
e [label="export-01"]
p [label=product]
e -> p [label=":ARG1"]
c [label="contribute-01"]
e [label="export-01"]
c -> e [label=":ARG1"]
s [label="significant-02"]
f [label=foreign]
s -> f [label=":compared-to"]
c [label="contribute-01"]
s [label="significant-02"]
c -> s [label=":ARG1-of"]
g2 [label="grow-01"]
c [label="contribute-01"]
g2 -> c [label=":ARG2-of"]
t [label="trade-01"]
g2 [label="grow-01"]
t -> g2 [label=":ARG1-of"]
g [label=guangdong]
t [label="trade-01"]
g -> t [label=":ARG2-of"]
}
```
![Demo](./demo.jpg)
## 引用
如果你用了本工具,请引用如下文字
AMR-Visualization,xdqkid, https://github.com/xdqkid/AMR-Visualization
\ No newline at end of file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
xdqkid
https://github.com/xdqkid/AMR-Visualization
'''
from graphviz import Digraph
import shutil
import os
import sys
import random
import re
def convert2graph(amr_lines, amr_count):
# Preprocess bracket
amr_lines = ' '.join(amr_lines)
newline = ''
quotes = False
for ele in amr_lines:
if ele == '\"':
quotes = not quotes
if ele == '(' and quotes:
ele = '&lt;'
if ele == ')' and quotes:
ele = '&gt;'
newline += ele
line = newline.replace('(', ' ( ') \
.replace(')', ' ) ') \
.replace(' ', ' ').split()
# Check Format
count = 0
for ele in line:
if ele == '(':
count += 1
if ele == ')':
count -= 1
if count < 0:
print('[Error]Too many right bracket )')
exit()
if count != 0:
print('[Error]Too many left bracket (')
exit()
relations = []
concept_map = {}
build_relations(line, relations=relations, concept_map=concept_map)
# Postprocess bracket
for key in concept_map.keys():
concept_map[key] = concept_map[key] \
.replace('&lt;', '(') \
.replace('&gt;', ')')
draw(relations, concept_map, amr_count)
def build_relations(line, relations=[], concept_map={}):
if len(line) == 1:
if re.search('[a-z]+[0-9]+', line[0]):
value = concept_map.get(line[0])
if value != None:
return line[0]
while True:
id = str(random.randint(0, 1000))
name = concept_map.get(id)
if name == None:
break
concept_map[id] = line[0]
return id
line = line[1:-1]
alen = len(line)
id = line[0]
concept_map[id]=line[2]
idx = 3
while idx < alen:
relation = line[idx]
search = idx + 1
count = 0
while search < alen:
if line[search] == '(':
count += 1
if line[search] == ')':
count -= 1
if count == 0:
break
search += 1
son_id = build_relations(line[idx+1:search+1], relations=relations, concept_map=concept_map)
relations += [(id, son_id, relation)]
idx = search + 1
return id
def draw(relations, concept_map, amr_count):
filename = './output/' + str(amr_count) + '.txt'
f = Digraph('AMR-Graph', filename=filename)
f.attr(rankdir='TB')
for a, b, l in relations:
f.node(a, concept_map[a])
f.node(b, concept_map[b])
f.edge(a, b, l)
f.render(filename=filename, view=False)
def load_amr(fpath):
try:
shutil.rmtree('./output')
os.mkdir('./output')
except Exception:
pass
with open(fpath, mode='r', encoding='utf-8') as fp:
amr_lines = []
amr_count = 0
for line in fp:
if line.startswith('#'):
continue
if line.strip() == '':
if len(amr_lines) != 0:
convert2graph(amr_lines, amr_count)
amr_count += 1
amr_lines = []
continue
amr_lines += [line.strip()]
if len(amr_lines) != 0:
convert2graph(amr_lines, amr_count)
if __name__ == "__main__":
load_amr(os.path.join("C:\\Users\\Wesenberg\\PycharmProjects\\rl-sentence-compression-wesenberg\\AMR-Visualization-master\\AMR-Visualization-master\\source.txt"))
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
xdqkid
https://github.com/xdqkid/AMR-Visualization
'''
from graphviz import Digraph
import shutil
import os
import sys
import random
import re
def convert2graph(amr_lines, amr_count):
# Preprocess bracket
newline = ''
quotes = False
for ele in amr_lines:
if ele == '\"':
quotes = not quotes
if ele == '(' and quotes:
ele = '&lt;'
if ele == ')' and quotes:
ele = '&gt;'
newline += ele
line = newline.replace('(', ' ( ') \
.replace(')', ' ) ') \
.replace(' ', ' ').split()
# Check Format
count = 0
complex_format=False
for ele in line:
if ele == '(':
count += 1
if ele == ')':
count -= 1
if ele == '/':
complex_format = True
if count < 0:
print('[Error]Too many right bracket )')
exit()
if count != 0:
print('[Error]Too many left bracket (')
exit()
relations = []
concept_map = {}
if complex_format:
build_relations(line, relations=relations, concept_map=concept_map)
else:
build_relations_simple(line, relations=relations, concept_map=concept_map)
# Postprocess bracket
for key in concept_map.keys():
concept_map[key] = concept_map[key] \
.replace('&lt;', '(') \
.replace('&gt;', ')')
draw(relations, concept_map, amr_count)
def generate_id(concept_map):
while True:
id = str(random.randint(0, 1000))
name = concept_map.get(id)
if name == None:
break
return id
def build_relations_simple(line, relations=[], concept_map={}):
if line[0] == '(':
line = line[1:-1]
alen = len(line)
id = generate_id(concept_map)
concept_map[id]=line[0]
if alen == 1:
return id
idx = 1
while idx < alen:
relation = line[idx]
search = idx + 1
count = 0
while search < alen:
if line[search] == '(':
count += 1
if line[search] == ')':
count -= 1
if count == 0:
break
search += 1
son_id = build_relations_simple(line[idx+1:search+1], relations=relations, concept_map=concept_map)
relations += [(id, son_id, relation)]
idx = search + 1
return id
def build_relations(line, relations=[], concept_map={}):
if len(line) == 1:
if re.search('[a-z]+[0-9]+', line[0]):
value = concept_map.get(line[0])
if value != None:
return line[0]
while True:
id = str(random.randint(0, 1000))
name = concept_map.get(id)
if name == None:
break
concept_map[id] = line[0]
return id
line = line[1:-1]
alen = len(line)
id = line[0]
concept_map[id]=line[2]
idx = 3
while idx < alen:
relation = line[idx]
search = idx + 1
count = 0
while search < alen:
if line[search] == '(':
count += 1
if line[search] == ')':
count -= 1
if count == 0:
break
search += 1
son_id = build_relations(line[idx+1:search+1], relations=relations, concept_map=concept_map)
relations += [(id, son_id, relation)]
idx = search + 1
return id
def draw(relations, concept_map, amr_count):
filename = './output/' + str(amr_count) + '.txt'
f = Digraph('AMR-Graph', filename=filename)
f.attr(rankdir='TB')
for a, b, l in relations:
f.node(a, concept_map[a])
f.node(b, concept_map[b])
f.edge(a, b, l)
f.render(filename=filename, view=False)
def load_amr(fpath):
try:
shutil.rmtree('./output')
os.mkdir('./output')
except Exception:
pass
with open(fpath, mode='r', encoding='utf-8') as fp:
amr_count = 0
for line in fp:
if line.startswith('#'):
continue
if line.strip() == '':
continue
convert2graph(line, amr_count)
amr_count += 1
if __name__ == "__main__":
load_amr('test_single.txt' if len(sys.argv) == 1 else sys.argv[1])
AMR-Visualization-master/AMR-Visualization-master/demo.jpg

110 KiB

digraph "AMR-Graph" {
rankdir=TB
n [label=name]
722 [label="\"Fernando\""]
n -> 722 [label=":op1"]
n [label=name]
347 [label="\"Henrique\""]
n -> 347 [label=":op2"]
n [label=name]
48 [label="\"Cardoso\""]
n -> 48 [label=":op3"]
p [label=person]
n [label=name]
p -> n [label=":name"]
p2 [label="peddle-01"]
ii [label="influence-01"]
p2 -> ii [label=":ARG1"]
s [label="scandalize-01"]
p2 [label="peddle-01"]
s -> p2 [label=":ARG2"]
s [label="scandalize-01"]
m [label="mushroom-02"]
s -> m [label=":ARG1-of"]
p [label=person]
s [label="scandalize-01"]
p -> s [label=":ARG0-of"]
o [label="open-01"]
p [label=person]
o -> p [label=":ARG0"]
o [label="open-01"]
p3 [label="probe-01"]
o -> p3 [label=":ARG1"]
}
File deleted
(o / open-01
:ARG0 (p / person
:name (n / name
:op1 "Fernando"
:op2 "Henrique"
:op3 "Cardoso")
:ARG0-of (s / scandalize-01
:ARG2 (p2 / peddle-01
:ARG1 (ii / influence-01))
:ARG1-of (m / mushroom-02)))
:ARG1 (p3 / probe-01))
\ No newline at end of file
# ::snt export of high-tech products has frequently been in the spotlight , making a significant contribution to the growth of foreign trade in guangdong .
# ::tok export of high - tech products has frequently been in the spotlight , making a significant contribution to the growth of foreign trade in guangdong .
# ::alignments 24-25|0 22-23|0.0 21-22|0.0.1.0.1.0 19-20|0.0.1 16-17|0.0.1.0 15-16|0.0.1.0.1 11-12|0.0.0.0 7-8|0.0.0 5-6|0.0.1.0.0.0 4-5|0.0.1.0.0.0.0 2-3|0.0.1.0.0.0.0.0 0-1|0.0.1.0.0 ::annotator JAMR dev v0.3 ::date 2019-07-08T23:42:17.243
(g / guangdong
:ARG2-of (t / trade-01
:ARG1 (f2 / frequent-02
:ARG1 (s2 / spotlight))
:ARG1-of (g2 / grow-01
:ARG2-of (c / contribute-01
:ARG1 (e / export-01
:ARG1 (p / product
:mod (t2 / tech
:ARG1-of (h / high-02))))
:ARG1-of (s / significant-02
:compared-to (f / foreign))))))
gold :op1 interrogative
know :arg0 you :arg1 it :beneficiary interrogative :mod ( country :name ( name :op1 wouldn ) ) :polarity -
(g / guangdong :ARG2-of (t / trade-01 :ARG1 (f2 / frequent-02 :ARG1 (s2 / spotlight)) :ARG1-of (g2 / grow-01 :ARG2-of (c / contribute-01 :ARG1 (e / export-01 :ARG1 (p / product :mod (t2 / tech :ARG1-of (h / high-02)))) :ARG1-of (s / significant-02 :compared-to (f / foreign))))))
No preview for this file type
File deleted
japan 's nec corp. and cable and wireless plc. -lrb- c and w -rrb- of britain have reached a broad accord to cooperate in global communications businesses , particularly in asia , company officials said friday .
\ No newline at end of file
lawyers for a iraq us soldier iraq accused of abusing prisoners in iraq lodged a request tuesday that a military iraq judge subpoena us defense secretary donald iraq rumsfeld to testify in his court martial .
\ No newline at end of file
......@@ -7,7 +7,7 @@ USE_LOCAL_CUDA = True # False = Cpu
SAFE_REWARDS = False # False = Dont safe Reward regions
USE_SAFED_AMR = False # False = Calc new Summery AMR
SAFE_SMATCH_ERROR = True
SEARCH_AMR_ERROR = True
SAFE_AMR_ERROR = True
BATCH_SIZE_ELEMENTS = 200
CALC_ELEMENTS = 40
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
one: pakistan 's prime minister shaukat aziz met with us defense secretary donald rumsfeld at the pentagon monday amid strains over a us air strike in pakistan that killed ## people in pakistan .
Two: pakistan prime minister shaukat aziz met with defense secretary donumsfeld
Recall: 1.0333333333333334
Smatch: (31, 61, 30)
Source:
(m0 / meet-03
:location (g0 / government-organization
:name (n2 / name
:op1 "pentagon" ))
:time (s0 / strain-01
:ARG0 (s1 / strike-01
:location (c1 / country
:name (n4 / name
:op2 "States"
:op1 "United" ))
:ARG0-of (k0 / kill-01
:ARG1 (p3 / person
:location c1))
:mod (a0 / air)))
:time (d0 / date-entity
:weekday (m1 / monday))
:ARG0 (p1 / person
:ARG0-of (h1 / have-org-role-91
:ARG2 (s2 / secretary
:topic (d1 / defend-01))
:ARG1 (c0 / country
:name (n3 / name
:op1 "Pakistan" )))
:name (n1 / name
:op2 "aziz"
:op1 "shaukat"
:op2 "aziz"
:op1 "shaukat" ))
:ARG1 (p0 / person
:name (n0 / name
:op2 "rumsfeld"
:op1 "donald" )
:ARG0-of (h0 / have-org-role-91
:ARG2 (m2 / minister
:mod (p2 / prime))
:ARG1 (w0 / we))))
Summary:
(m0 / meet-03
:ARG1 (p1 / person
:name (n1 / name
:op1 "donumsfeld" )
:ARG0-of (h1 / have-org-role-91
:ARG2 (m1 / minister
:mod (p2 / prime))))
:ARG0 (p0 / person
:name (n0 / name
:op2 "aziz"
:op1 "shaukat" )
:ARG0-of (h0 / have-org-role-91
:ARG1 (c0 / country
:name (n2 / name
:op1 "Pakistan" ))
:ARG2 (s0 / secretary
:topic (d0 / defend-01)))))
one: pakistan 's prime minister shaukat aziz met with us defense secretary donald rumsfeld at the pentagon monday amid strains over a us air strike in pakistan that killed ## people in pakistan .
Two: pakistan prime minister shaukat aziz met with defense secretaryums
Recall: 1.037037037037037
Smatch: (28, 61, 27)
Source:
(m0 / meet-03
:location (g0 / government-organization
:name (n2 / name
:op1 "pentagon" ))
:time (s0 / strain-01
:ARG0 (s1 / strike-01
:location (c1 / country
:name (n4 / name
:op2 "States"
:op1 "United" ))
:ARG0-of (k0 / kill-01
:ARG1 (p3 / person
:location c1))
:mod (a0 / air)))
:time (d0 / date-entity
:weekday (m1 / monday))
:ARG0 (p1 / person
:ARG0-of (h1 / have-org-role-91
:ARG2 (s2 / secretary
:topic (d1 / defend-01))
:ARG1 (c0 / country
:name (n3 / name
:op1 "Pakistan" )))
:name (n1 / name
:op2 "aziz"
:op1 "shaukat"
:op2 "aziz"
:op1 "shaukat" ))
:ARG1 (p0 / person
:name (n0 / name
:op2 "rumsfeld"
:op1 "donald" )
:ARG0-of (h0 / have-org-role-91
:ARG2 (m2 / minister
:mod (p2 / prime))
:ARG1 (w0 / we))))
Summary:
(m0 / meet-03
:ARG1 (p1 / person
:ARG0-of (h1 / have-org-role-91
:ARG2 (m1 / minister
:mod (p2 / prime))))
:ARG0 (p0 / person
:name (n0 / name
:op2 "aziz"
:op1 "shaukat" )
:ARG0-of (h0 / have-org-role-91
:ARG2 (s0 / secretaryum
:topic (d0 / defend-01))
:ARG1 (c0 / country
:name (n1 / name
:op1 "Pakistan" )))))
one: japan 's nec corp. and cable and wireless plc. -lrb- c and w -rrb- of britain have reached a broad accord to cooperate in global communications businesses , particularly in asia , company officials said friday .
Two: japan's nec corp. and cable and wireless plc. britain have reached accord
Recall: 1.1
Smatch: (22, 20, 20)
Source:
(a0 / and
:op2 (c1 / company
:name (n1 / name
:op1 "France"
:op1 "France" )
:mod (c3 / cable))
:op1 (c0 / company
:name (n0 / name
:op2 "corp"
:op1 "nec" )
:mod (c2 / country
:name (n2 / name))))
Summary:
(a0 / and
:op2 (c1 / company
:name (n1 / name
:op1 "France"
:op1 "France" )
:mod (c3 / cable))
:op1 (c0 / company
:name (n0 / name
:op2 "corp"
:op1 "nec" )
:mod (c2 / country
:name (n2 / name))))
one: pakistan 's prime minister shaukat aziz met with us defense secretary donald rumsfeld at the pentagon monday amid strains over a us air strike in pakistan that killed ## people in pakistan .
Two: pakistan's prime minister shaukat aziz met with defense secretary rumsfeld
Recall: 1.0333333333333334
Smatch: (31, 61, 30)
Source:
(m0 / meet-03
:location (g0 / government-organization
:name (n2 / name
:op1 "pentagon" ))
:time (s0 / strain-01
:ARG0 (s1 / strike-01
:location (c1 / country
:name (n4 / name
:op2 "States"
:op1 "United" ))
:ARG0-of (k0 / kill-01
:ARG1 (p3 / person
:location c1))
:mod (a0 / air)))
:time (d0 / date-entity
:weekday (m1 / monday))
:ARG0 (p1 / person
:ARG0-of (h1 / have-org-role-91
:ARG2 (s2 / secretary
:topic (d1 / defend-01))
:ARG1 (c0 / country
:name (n3 / name
:op1 "Pakistan" )))
:name (n1 / name
:op2 "aziz"
:op1 "shaukat"
:op2 "aziz"
:op1 "shaukat" ))
:ARG1 (p0 / person
:name (n0 / name
:op2 "rumsfeld"
:op1 "donald" )
:ARG0-of (h0 / have-org-role-91
:ARG2 (m2 / minister
:mod (p2 / prime))
:ARG1 (w0 / we))))
Summary:
(m0 / meet-03
:ARG1 (p1 / person
:name (n1 / name
:op1 "rumsfeld" )
:ARG0-of (h1 / have-org-role-91
:ARG2 (m1 / minister
:mod (p2 / prime))))
:ARG0 (p0 / person
:name (n0 / name
:op2 "aziz"
:op1 "shaukat" )
:ARG0-of (h0 / have-org-role-91
:ARG1 (c0 / country
:name (n2 / name
:op1 "Pakistan" ))
:ARG2 (s0 / secretary
:topic (d0 / defend-01)))))
one: japan 's nec corp. and cable and wireless plc. -lrb- c and w -rrb- of britain have reached a broad accord to cooperate in global communications businesses , particularly in asia , company officials said friday .
Two: japan's nec corp. and cable and wireless plc. britain have reached accord
Recall: 1.1
Smatch: (22, 20, 20)
Source:
(a0 / and
:op2 (c1 / company
:name (n1 / name
:op1 "France"
:op1 "France" )
:mod (c3 / cable))
:op1 (c0 / company
:name (n0 / name
:op2 "corp"
:op1 "nec" )
:mod (c2 / country
:name (n2 / name))))
Summary:
(a0 / and
:op2 (c1 / company
:name (n1 / name
:op1 "France"
:op1 "France" )
:mod (c3 / cable))
:op1 (c0 / company
:name (n0 / name
:op2 "corp"
:op1 "nec" )
:mod (c2 / country
:name (n2 / name))))
one: pakistan 's prime minister shaukat aziz met with us defense secretary donald rumsfeld at the pentagon monday amid strains over a us air strike in pakistan that killed ## people in pakistan .
Two: pakistan prime minister shaukat aziz met with defense secretary rumsfeld
Recall: 1.0333333333333334
Smatch: (31, 61, 30)
Source:
(m0 / meet-03
:location (g0 / government-organization
:name (n2 / name
:op1 "pentagon" ))
:time (s0 / strain-01
:ARG0 (s1 / strike-01
:location (c1 / country
:name (n4 / name
:op2 "States"
:op1 "United" ))
:ARG0-of (k0 / kill-01
:ARG1 (p3 / person
:location c1))
:mod (a0 / air)))
:time (d0 / date-entity
:weekday (m1 / monday))
:ARG0 (p1 / person
:ARG0-of (h1 / have-org-role-91
:ARG2 (s2 / secretary
:topic (d1 / defend-01))
:ARG1 (c0 / country
:name (n3 / name
:op1 "Pakistan" )))
:name (n1 / name
:op2 "aziz"
:op1 "shaukat"
:op2 "aziz"
:op1 "shaukat" ))
:ARG1 (p0 / person
:name (n0 / name
:op2 "rumsfeld"
:op1 "donald" )
:ARG0-of (h0 / have-org-role-91
:ARG2 (m2 / minister
:mod (p2 / prime))
:ARG1 (w0 / we))))
Summary:
(m0 / meet-03
:ARG1 (p1 / person
:name (n1 / name
:op1 "rumsfeld" )
:ARG0-of (h1 / have-org-role-91
:ARG2 (m1 / minister
:mod (p2 / prime))))
:ARG0 (p0 / person
:name (n0 / name
:op2 "aziz"
:op1 "shaukat" )
:ARG0-of (h0 / have-org-role-91
:ARG1 (c0 / country
:name (n2 / name
:op1 "Pakistan" ))
:ARG2 (s0 / secretary
:topic (d0 / defend-01)))))
one: japan 's nec corp. and cable and wireless plc. -lrb- c and w -rrb- of britain have reached a broad accord to cooperate in global communications businesses , particularly in asia , company officials said friday .
Two: japan's nec corp. and cable and wireless plc. britain reached accord
Recall: 1.1
Smatch: (22, 20, 20)
Source:
(a0 / and
:op2 (c1 / company
:name (n1 / name
:op1 "France"
:op1 "France" )
:mod (c3 / cable))
:op1 (c0 / company
:name (n0 / name
:op2 "corp"
:op1 "nec" )
:mod (c2 / country
:name (n2 / name))))
Summary:
(a0 / and
:op2 (c1 / company
:name (n1 / name
:op1 "France"
:op1 "France" )
:mod (c3 / cable))
:op1 (c0 / company
:name (n0 / name
:op2 "corp"
:op1 "nec" )
:mod (c2 / country
:name (n2 / name))))
one: pakistan 's prime minister shaukat aziz met with us defense secretary donald rumsfeld at the pentagon monday amid strains over a us air strike in pakistan that killed ## people in pakistan .
Two: pakistan prime minister shaukat aziz met with defense secretary
Recall: 1.0740740740740742
Smatch: (29, 61, 27)
Source:
(m0 / meet-03
:location (g0 / government-organization
:name (n2 / name
:op1 "pentagon" ))
:time (s0 / strain-01
:ARG0 (s1 / strike-01
:location (c1 / country
:name (n4 / name
:op2 "States"
:op1 "United" ))
:ARG0-of (k0 / kill-01
:ARG1 (p3 / person
:location c1))
:mod (a0 / air)))
:time (d0 / date-entity
:weekday (m1 / monday))
:ARG0 (p1 / person
:ARG0-of (h1 / have-org-role-91
:ARG2 (s2 / secretary
:topic (d1 / defend-01))
:ARG1 (c0 / country
:name (n3 / name
:op1 "Pakistan" )))
:name (n1 / name
:op2 "aziz"
:op1 "shaukat"
:op2 "aziz"
:op1 "shaukat" ))
:ARG1 (p0 / person
:name (n0 / name
:op2 "rumsfeld"
:op1 "donald" )
:ARG0-of (h0 / have-org-role-91
:ARG2 (m2 / minister
:mod (p2 / prime))
:ARG1 (w0 / we))))
Summary:
(m0 / meet-03
:ARG1 (p1 / person
:ARG0-of (h1 / have-org-role-91
:ARG2 (m1 / minister
:mod (p2 / prime))))
:ARG0 (p0 / person
:name (n0 / name
:op2 "aziz"
:op1 "shaukat" )
:ARG0-of (h0 / have-org-role-91
:ARG2 (s0 / secretary
:topic (d0 / defend-01))
:ARG1 (c0 / country
:name (n1 / name
:op1 "Pakistan" )))))
one: pakistan 's prime minister shaukat aziz met with us defense secretary donald rumsfeld at the pentagon monday amid strains over a us air strike in pakistan that killed ## people in pakistan .
Two: pakistan prime minister shaukat aziz met with defense secretary rumsfeld
Recall: 1.0333333333333334
Smatch: (31, 61, 30)
Source:
(m0 / meet-03
:location (g0 / government-organization
:name (n2 / name
:op1 "pentagon" ))
:time (s0 / strain-01
:ARG0 (s1 / strike-01
:location (c1 / country
:name (n4 / name
:op2 "States"
:op1 "United" ))
:ARG0-of (k0 / kill-01
:ARG1 (p3 / person
:location c1))
:mod (a0 / air)))
:time (d0 / date-entity
:weekday (m1 / monday))
:ARG0 (p1 / person
:ARG0-of (h1 / have-org-role-91
:ARG2 (s2 / secretary
:topic (d1 / defend-01))
:ARG1 (c0 / country
:name (n3 / name
:op1 "Pakistan" )))
:name (n1 / name
:op2 "aziz"
:op1 "shaukat"
:op2 "aziz"
:op1 "shaukat" ))
:ARG1 (p0 / person
:name (n0 / name
:op2 "rumsfeld"
:op1 "donald" )
:ARG0-of (h0 / have-org-role-91
:ARG2 (m2 / minister
:mod (p2 / prime))
:ARG1 (w0 / we))))
Summary:
(m0 / meet-03
:ARG1 (p1 / person
:name (n1 / name
:op1 "rumsfeld" )
:ARG0-of (h1 / have-org-role-91
:ARG2 (m1 / minister
:mod (p2 / prime))))
:ARG0 (p0 / person
:name (n0 / name
:op2 "aziz"
:op1 "shaukat" )
:ARG0-of (h0 / have-org-role-91
:ARG1 (c0 / country
:name (n2 / name
:op1 "Pakistan" ))
:ARG2 (s0 / secretary
:topic (d0 / defend-01)))))
one: pakistan 's prime minister shaukat aziz met with us defense secretary donald rumsfeld at the pentagon monday amid strains over a us air strike in pakistan that killed ## people in pakistan .
Two: pakistan prime minister shaukat aziz met with defense secretary rumsfeld
Recall: 1.0333333333333334
Smatch: (31, 61, 30)
Source:
(m0 / meet-03
:location (g0 / government-organization
:name (n2 / name
:op1 "pentagon" ))
:time (s0 / strain-01
:ARG0 (s1 / strike-01
:location (c1 / country
:name (n4 / name
:op2 "States"
:op1 "United" ))
:ARG0-of (k0 / kill-01
:ARG1 (p3 / person
:location c1))
:mod (a0 / air)))
:time (d0 / date-entity
:weekday (m1 / monday))
:ARG0 (p1 / person
:ARG0-of (h1 / have-org-role-91
:ARG2 (s2 / secretary
:topic (d1 / defend-01))
:ARG1 (c0 / country
:name (n3 / name
:op1 "Pakistan" )))
:name (n1 / name
:op2 "aziz"
:op1 "shaukat"
:op2 "aziz"
:op1 "shaukat" ))
:ARG1 (p0 / person
:name (n0 / name
:op2 "rumsfeld"
:op1 "donald" )
:ARG0-of (h0 / have-org-role-91
:ARG2 (m2 / minister
:mod (p2 / prime))
:ARG1 (w0 / we))))
Summary:
(m0 / meet-03
:ARG1 (p1 / person
:name (n1 / name
:op1 "rumsfeld" )
:ARG0-of (h1 / have-org-role-91
:ARG2 (m1 / minister
:mod (p2 / prime))))
:ARG0 (p0 / person
:name (n0 / name
:op2 "aziz"
:op1 "shaukat" )
:ARG0-of (h0 / have-org-role-91
:ARG1 (c0 / country
:name (n2 / name
:op1 "Pakistan" ))
:ARG2 (s0 / secretary
:topic (d0 / defend-01)))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment