-
Notifications
You must be signed in to change notification settings - Fork 100
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
more norms #649
more norms #649
Conversation
@kwalcock would you please give me the power to check what jenkins is up to? |
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.
LGTM but I wish that meeting the needs of habitus wasn't requiring changes to processors. It should be possible to adapt locally. That's not your problem, though.
convertedMentions += converter(m ) | ||
} catch { | ||
case e: Exception => | ||
// sometimes these conversions fail, mainly on broken texts | ||
// let's be robust here: report the error and move on | ||
System.err.println(s"WARNING: $converterName conversion failed! Recovering and continuing...") | ||
e.printStackTrace() | ||
} | ||
} | ||
convertedMentions | ||
} |
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 isn't necessary, but one way to do it without the buffer is
for {
m <- mentions
converted <- Try(converter(m))
.recover { case throwable: Throwable =>
System.err.println(s"WARNING: $converterName conversion failed! Recovering and continuing...")
throwable.printStackTrace()
Seq.empty[Mention]
}
.get
} yield converted
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.
Makes sense. With processors I basically go the path of fewest changes :)
System.err.println(s"WARNING: $converterName conversion failed! Recovering and continuing...") | ||
e.printStackTrace() |
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.
Probably all of processors needs to be reviewed for its use of println, System.out, and System.err. These should probably be logged rather than printed. That's not your problem.
A lot of these changes seem pretty general and could be useful for other projects as well? (other than the WS/DS ones maybe) But yeah, the pipeline of me fixing a few newly discovered issues -> releasing processors might not be the most convenient. |
Hi @kwalcock, I notice that the version in project is still the old snapshot (8.5.1-SNAPSHOT). Maybe I branched off unpulled master. However, I do not see this difference reflected here under Files changed. Should I merge master into my branch to fix this? I am a little confused. |
AFAICT this branched from master just before 8.5.1 was released. There are no problems when I merge locally. We've probably just been working on non-intersecting parts of the code. I don't think there is need to merge master into this branch without merge conflicts. |
@kwalcock thanks for checking! |
@kwalcock @MihaiSurdeanu fyi, converting this to draft for now. I am going through habitus tests to see what else needs fixed and whether these changes help in habitus, and I keep finding more things to do. |
@MihaiSurdeanu I think I am done with this for now. Please have a look. One concern I have is this commit 2b935c6 |
Hi @maxaalexeeva, |
@MihaiSurdeanu if I remember correctly, in(ch) got tagged as IN as well, but I'll double check tomorrow. |
@MihaiSurdeanu, same tag:
vs.
and
|
I see... |
@kwalcock I don't think I have the power to merge, so feel free to merge if you have no further comments! |
Will do. |
108.0 in
fromSahel 108 in Senegal
)