-
Notifications
You must be signed in to change notification settings - Fork 12
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
Anafora Reader #25
Anafora Reader #25
Conversation
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.
Looking much closer. Anafora.scala and TypesTest.scala still appear to be unnecessarily attached to the commit. Also, GitHub is reporting the pull request as failing tests. Take a look and see if you can see why.
@@ -42,6 +43,26 @@ class Entity(xml: Elem) extends Annotation(xml) { | |||
def text(implicit data: Data): String = spans.map{ | |||
case (start, end) => data.text.substring(start, end) | |||
}.mkString("...") | |||
private def recursiveSpan(entity: Entity, start: Int, end: Int)(implicit data:Data): (Int, Int) = { |
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.
These changes don't seem to belong in this pull request; as far as I can tell, AnaforaReader doesn't use any of these methods.
|
||
class AnaforaReader(dct: SimpleInterval)(implicit data: Data) { | ||
|
||
val DCT = dct |
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.
Just declare it as AnaforaReader(val DCT: SimpleInterval)
if you want a publicly accessible DCT
.
@@ -1042,5 +1042,12 @@ class TypesTest extends FunSuite with TypesSuite { | |||
NthFromStartRIs(Year(1997), 1, RepeatingUnit(ChronoUnit.MONTHS), 9) | |||
=== SimpleIntervals((1 to 9).map(m => SimpleInterval.of(1997, m)))) | |||
} | |||
|
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.
This doesn't seem relevant to the pull request.
No description provided.