-
Notifications
You must be signed in to change notification settings - Fork 21
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
Allow mirrors to be defined in the index #142
Comments
Trying to pin down the behavior, I think that having the redirect be automatic might actually be problematic, because if it happens silently, the user won't be aware that they should use a different identifier in order to use the lexicon. e.g: >>> wn.download('pwn:3.0') # really gets wn30:1.4
>>> pwn30 = wn.Wordnet('pwn:3.0') # error Some solutions:
|
Another alternative, specify the error message in the index and don't bother with warnings or redirects. E.g.: [pwn]
error = "Instead of 'pwn:3.0' and 'pwn:3.1', please use 'wn30' and 'wn31'." Then... >>> wn.download('pwn:3.0')
Traceback (most recent call last):
...
wn.Error: Instead of 'pwn:3.0' and 'pwn:3.1', please use 'wn30' and 'wn31'. |
This looks reasonable.
…On Fri, Oct 22, 2021 at 4:19 AM Michael Wayne Goodman < ***@***.***> wrote:
Another alternative, specify the error message in the index and don't
bother with warnings or redirects. E.g.:
[pwn]
error = "Instead of 'pwn:3.0' and 'pwn:3.1', please use 'wn30' and 'wn31'."
Then...
>>> wn.download('pwn:3.0')
Traceback (most recent call last):
...
wn.Error: Instead of 'pwn:3.0' and 'pwn:3.1', please use 'wn30' and 'wn31'.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#142 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIPZRVJ2CGJQLW3EZMP22LUIBYTVANCNFSM5FK22LOA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Francis Bond <http://www3.ntu.edu.sg/home/fcbond/>
Division of Linguistics and Multilingual Studies
Nanyang Technological University
|
In that case #146 is for adding I think I might just extend the current [oewn]
label = "Open English WordNet"
language = "en"
license = "https://creativecommons.org/licenses/by/4.0/"
[oewn.versions.2020]
url = """
https://en-word.net/static/english-wordnet-2020.xml.gz
https://...
""" This way there's no change for those with only one URL. |
That seems like a very good idea.
…On Sat, Oct 23, 2021 at 6:41 AM Michael Wayne Goodman < ***@***.***> wrote:
In that case #146 <#146> is for
adding error and this issue is about adding mirrors.
I think I might just extend the current url key to accept a
space-separated list of URLs:
[oewn]
label = "Open English WordNet"
language = "en"
license = "https://creativecommons.org/licenses/by/4.0/"
[oewn.versions.2020]
url = """ https://en-word.net/static/english-wordnet-2020.xml.gz https://... """
This way there's no change for those with only one URL.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#142 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIPZRWREBAOMWAO3F5PU5TUIHQ5TANCNFSM5FK22LOA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Francis Bond <http://www3.ntu.edu.sg/home/fcbond/>
Division of Linguistics and Multilingual Studies
Nanyang Technological University
|
Several wordnet projects have changes that will require some new features in the index.
pwn:3.0
->wn30:1.4+omw
). When someone uses the old identifier, a warning should be issued as it redirects to the new resource.These changes might look like this:
The text was updated successfully, but these errors were encountered: