-
Notifications
You must be signed in to change notification settings - Fork 18
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
WIP: Pairwise classifier for POS #246
base: master
Are you sure you want to change the base?
Conversation
Did a bit of work and fixed some issues. The inference has some problems and I need to spend more time debugging them. |
where is the code? I can look at it. Specially the way you write constraints is tricky. |
On my fork; branch "danyaljj:pairwise-pos2". |
} | ||
|
||
def sentenceLabelsMatch = ConstrainedClassifier.constraint[Sentence] { s: Sentence => | ||
val constituents = CommonSensors.getPOSConstituents(s.getSentenceConstituent.getTextAnnotation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
# Conflicts: # saul-core/src/main/scala/edu/illinois/cs/cogcomp/saul/classifier/ConstrainedClassifier.scala # saul-examples/src/main/scala/edu/illinois/cs/cogcomp/saulexamples/nlp/POSTagger/POSClassifiers.scala # saul-examples/src/main/scala/edu/illinois/cs/cogcomp/saulexamples/nlp/POSTagger/POSTaggerApps.scala
// posLabelPairs._exists { case (l1, l2) => posClassifierLabelCompatible(c1, c2, l1, l2) } | ||
// } | ||
//constituents.toList._forall { c => posLabels._exists { l => (POSMixedClassifier on c).is(l) } } | ||
new FirstOrderConstant(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhargav so I fixed the bug you pointer out but didn't help .. :-/
Another thing is I tested by replacing it with a trivial constraints new FirstOrderConstant(true)
which should always be feasible; still returning a weird result ...
Create a pairwise classifier and add a constrained classifier on top of it.
** Not carefully tested. Under construction **
FYI @bhargav