-
Notifications
You must be signed in to change notification settings - Fork 27
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
Conflicts within language configurator #72
Comments
Referring to comment in dkpro/dkpro-jwpl#159: @tgalery Sure, it merely "prints the stacktrace" but it's kind of confusing, e.g for one of my students. Proposal:
Cheers |
To my mind a warning should suffice. I'm just wondering if there would be a way to allow a many to one relationship so these cases could be covered as well. |
So digging more into this issue. Confusing stacktraces aside, it seems that for some languages we are able to create a wikiConfig instance.
This prints a bunch of stacktraces like the one above, but if we do the same thing for |
@hannesd I've been trying to build this locally, but I'm getting some issues with some of the deps of the project:
Any pointers ? |
I'm sorry but we screwed up and now our certificates have expired. If you turn of certificate validation it should work again but this is of course not ideal: https://stackoverflow.com/questions/21252800/how-to-tell-maven-to-disregard-ssl-errors-and-trusting-all-certs We'll try to renew our certificates as soon as possible. |
Concerning the actual problem with this issue: I'm quite busy at the moment and will not have the time to work on this. If you could provide a pull request I'd be more than happy to accept it. Simply turning the exception into a warning is fine with me, if this solves your problem. |
Certificates have been fixed. Sorry for the inconvenience :( |
Many thanks for this, will try to come up with a PR as soon as I have the
time.
…On Fri, Jul 27, 2018 at 9:13 AM, Hannes Dohrn ***@***.***> wrote:
Certificates have been fixed. Sorry for the inconvenience :(
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABwssPyE6_3DdTXrU3yp569ckKg5mCMkks5uKsu_gaJpZM4UzXOd>
.
|
Sorry @hannesd I've actually tried building using |
fyi, I'm trying to build the dev branch, which I think is the base. |
Sorry again, the certificate chain had changed and I didn't notice. Should work now... |
^ This will at least solve spammed consoles which irritate most devs most of the time 👍. Yet, this is merely an optical cure of the underlying problem, I guess. |
I'm currently on vacation. I'll come back to you in two weeks.
Cheers,
Hannes
…On Fri, Aug 3, 2018, 14:41 Martin Wiesner ***@***.***> wrote:
@hannesd <https://github.com/hannesd>
Simply turning the exception into a warning is fine with me, if this
solves your problem.
^ This at least solve spammed consoles which irritate most devs most of
the time 👍. @tgalery <https://github.com/tgalery> Can you check
LanguageConfigGenerator.java:209 and fix this odd behaviour?
Yet, this is merely an optical cure of the underlying problem, I guess.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAvZoWsmUDD_g9Q4LS9WEv9jXzDjMUlfks5uNETegaJpZM4UzXOd>
.
|
@mawiesne just back from a trip today, will have a look today |
ok, so dig some digging and kind of understand what's going on. Here is some debug on a branch of mine. From the scala console, we get something like this:
So in the |
Would be nice to have thoughts on the PR above ^ |
When using the language configurator to generate a config, we usually get a stacktrace when trying to associate an alias which already has been set, Looking at at the magic words config that generates the wikiconfig https://ja.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=magicwords&format=xml, the bug can be described as follows:
名前空間
is registered for theNAMESPACE
id名前空間
appears again for thens
id (things are slightly more complicated because for the second is appears followed by a:
, but there's some suffix modifying code that adds the colon under certain circumstances)名前空間
magic word is the first alias of thens
id, the whole id and associated aliases are not added to the maps.ns
. Since there's no one that can be found in the maps, an exception is thrown.After PR #73, we don't throw an exception when we find an alias already registered to an id. This means that the first ambiguous alias is set to the id that is first associated with, but ignored for others. Thus, a
WikiConfig
object can be created, but it is not an optimal solution. if the is the possibility of two aliases being associated to the same id, we need the code to be able to handle that well.The text was updated successfully, but these errors were encountered: