Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shyam Upadhyay
event-wikifier
Commits
b081bdd7
Commit
b081bdd7
authored
Feb 20, 2016
by
Shyam Upadhyay
Browse files
srl type
parent
8aeef45a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/edu/illinois/cs/cogcomp/heurisitic/VoiceClauseHeuristic.java
View file @
b081bdd7
...
...
@@ -15,7 +15,7 @@ public class VoiceClauseHeuristic extends Heuristic {
String
voice
=
TAUtils
.
voiceFeat
(
ee
.
pred_srl
).
getName
();
String
clause
=
TAUtils
.
getClauseNature
(
ee
.
pred_srl
);
String
lemma
=
TAUtils
.
getLemma
(
ee
.
pred_srl
);
S
ystem
.
out
.
println
(
ee
.
pred_srl
.
getViewName
()
)
;
S
tring
srl_type
=
ee
.
pred_srl
.
getViewName
();
boolean
isFirst
=
isFirstPredicateInList
(
ee
,
others
);
if
(
voice
.
equals
(
"A"
))
{
...
...
@@ -49,6 +49,10 @@ public class VoiceClauseHeuristic extends Heuristic {
{
ee
.
salient
=
0
;
}
if
(
srl_type
.
equals
(
"SRL_NOM"
))
{
ee
.
salient
=
0
;
}
}
private
boolean
isFirstPredicateInList
(
EventInstance
ee
,
List
<
EventInstance
>
others
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment