Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
0.5 Conversion: Defining argument prepositions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
garyhodgson  
View profile  
 More options Jun 28 2009, 10:29 am
From: garyhodgson <cont...@garyhodgson.com>
Date: Sun, 28 Jun 2009 07:29:24 -0700 (PDT)
Local: Sun, Jun 28 2009 10:29 am
Subject: 0.5 Conversion: Defining argument prepositions
Hi guys,

In parser 2 is it possible to define the names of prepositions that
are used in argument roles?

E.g. Previously there was a modifier called "in", and this meant the
user could enter "view-tasks in list". In Parser2 world the best role
I have found is "source" and this results in "view-tasks from list".
Discussions about which preposition is more suitable aside, I would
prefer the user experience not to be forced to change because of an
API change. Therefore is there a way of customizing the preposition
used?

Would be great if there could be some feedback before the 0.5 release
to the general public.

Thanks in advance,
Gary


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mitcho (Michael 芳貴 Erlewine)  
View profile  
 More options Jun 28 2009, 10:46 am
From: "mitcho (Michael 芳貴 Erlewine)" <mit...@mitcho.com>
Date: Sun, 28 Jun 2009 23:46:51 +0900
Local: Sun, Jun 28 2009 10:46 am
Subject: Re: [ubiquity] 0.5 Conversion: Defining argument prepositions
Hi Gary,

I think the role you're looking for is "location", which in English  
maps to the delimiters "in" and "at", as well as "near" which wouldn't  
be applicable in your situation. The use of semantic roles in  
identifying arguments has tremendous advantages for the localization  
process which we've begun, as the logic of commands is no longer tied  
to a specific language. This also allows for synonymous delimiters as  
well, like "to" and "toward" or "using" and "with" acting the same way.

More information on the use of semantic roles and a master list of  
semantic roles can be found here:

https://wiki.mozilla.org/Labs/Ubiquity/Parser_2/Semantic_Roles

mitcho

--
mitcho (Michael 芳貴 Erlewine)
mit...@mitcho.com
http://mitcho.com/
linguist, coder, teacher

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gary Hodgson  
View profile  
 More options Jun 28 2009, 1:16 pm
From: Gary Hodgson <cont...@garyhodgson.com>
Date: Sun, 28 Jun 2009 19:16:38 +0200
Local: Sun, Jun 28 2009 1:16 pm
Subject: Re: [ubiquity] Re: 0.5 Conversion: Defining argument prepositions

Thanks for the really quick reply Mitcho!  It's much appreciated!
I changed the argument to use the 'location' role, and now it reads:
"view-tasks near list".  As per my original question, how do I go about
changing the preposition used to be "in" rather than "near"?  Is it a
localising action? Sadly the links "localizing commands" and "making
commands localizable" on the Semantic Roles page are yet to be written.

Thanks again for the help!

On Sun, Jun 28, 2009 at 4:46 PM, "mitcho (Michael 芳貴 Erlewine)" <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Heather  
View profile  
 More options Jun 28 2009, 6:37 pm
From: Heather <heatherkofkeeg...@gmail.com>
Date: Sun, 28 Jun 2009 15:37:59 -0700 (PDT)
Local: Sun, Jun 28 2009 6:37 pm
Subject: Re: 0.5 Conversion: Defining argument prepositions
Gary,

Actually, all the delimiters associated with a semantic role work for
that role.  For location, that is "near", "on", and "at".  Brandon
*just* added "in" to that list, so "in" should work for the "location"
role as soon as 0.5pre3 gets pushed out.

I'll work on adding to Mitcho's semantic roles documentation to make
this a little clearer.

Heather

On Jun 28, 1:16 pm, Gary Hodgson <cont...@garyhodgson.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Heather  
View profile  
 More options Jun 28 2009, 6:43 pm
From: Heather <heatherkofkeeg...@gmail.com>
Date: Sun, 28 Jun 2009 15:43:26 -0700 (PDT)
Local: Sun, Jun 28 2009 6:43 pm
Subject: Re: 0.5 Conversion: Defining argument prepositions
To clarify: "in" should have been a "location" delimiter, but when I
checked in response to your question, it was not.  That issue is now
patched in the source version and will be pushed to the preview
version in the next update.

On Jun 28, 6:37 pm, Heather <heatherkofkeeg...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mitcho (Michael 芳貴 Erlewine)  
View profile  
 More options Jun 28 2009, 7:38 pm
From: "mitcho (Michael 芳貴 Erlewine)" <mit...@mitcho.com>
Date: Mon, 29 Jun 2009 08:38:39 +0900
Local: Sun, Jun 28 2009 7:38 pm
Subject: Re: [ubiquity] Re: 0.5 Conversion: Defining argument prepositions
Gary,

My apologies—as Heather and Brandon noticed, the "in" delimiter was  
missing from the list of possible delimiters for "location", but  
Brandon has added that in. One thing you've noticed, though, was that  
the command says "view-tasks near list"... this is due to the fact  
that, even though multiple delimiters ("near", "at", etc.) are defined  
for that role, only one can be displayed in that display of missing  
arguments, so the first one defined is used. In the case of  
"location", I believe it is currently "near"... letting commands  
choose a custom delimiter label (preposition) to display from one of  
the options for that role is a good idea which we could implement in  
the future.

As for the "localizing commands" and "making commands localizable"  
links, the links were simply wrong, but they are written:

https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.5_Command_Localizat...
https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.5_Making_Commands_L...

mitcho

--
mitcho (Michael 芳貴 Erlewine)
mit...@mitcho.com
http://mitcho.com/
linguist, coder, teacher

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jono DiCarlo  
View profile  
 More options Jun 29 2009, 2:10 pm
From: Jono DiCarlo <jdica...@mozilla.com>
Date: Mon, 29 Jun 2009 11:10:27 -0700 (PDT)
Local: Mon, Jun 29 2009 2:10 pm
Subject: Re: 0.5 Conversion: Defining argument prepositions
I agree with Gary that in this case, the suggestion ends up looking
very strange -- "view tasks near list"?  What? My tasks are *in* the
list, not *near* it!
For the particular case of the 'location' semantic role, which now has
four different prepositions that work in English, why is "near" the
default preposition?  Why not "in"?
(I think "near" was only introduced for the Yelp command, anyway,
because it searches for restaurants "near" a location... but there's
nothing wrong with saying "yelp pizza in chicago", is there?)

For the more general case... could a command argument provide metadata
telling which preposition should be used for the suggestion in the
case where there are multiple synonymous prepositions?  e.g. {role:
"location", defaultFlag: "near"}  for one command, vs.  {role:
"location", defaultFlag: "in"} for another command.  Completely
cosmetic, but could make the command significantly easier to learn if
it results in default suggestions that read more naturally.  It's
language-specific, but could simply be ignored in languages where it
doesn't apply...

Or maybe the defaultFlag should be an attribute of the nountype?
(Something that we still have to figure out how to localize, anyway).
What do you think?  Should we take this to ubiquity-
i18n@googlegroups.com?

--Jono


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Sonne  
View profile  
 More options Jun 29 2009, 2:45 pm
From: Christian Sonne <freakc...@gmail.com>
Date: Mon, 29 Jun 2009 20:45:28 +0200
Local: Mon, Jun 29 2009 2:45 pm
Subject: Re: [ubiquity] Re: 0.5 Conversion: Defining argument prepositions

Was just about to yell at you for making it language specific, until I got
to the last part of your message :-P

Would it be possible to enforce that the default role must always be the
first defined for a given role?

If localizers (of the parsers) know this, it will be simple to localize this
feature automatically, by simply placing the most used magic word first for
any given role...

It might not be flexible enough, though.

-- cers / Christian Sonne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Blair McBride  
View profile  
 More options Jun 29 2009, 6:11 pm
From: Blair McBride <unfocu...@gmail.com>
Date: Tue, 30 Jun 2009 10:11:11 +1200
Local: Mon, Jun 29 2009 6:11 pm
Subject: Re: [ubiquity] Re: 0.5 Conversion: Defining argument prepositions
That doesn't seem ideal, from a UX perspective. Of course, neither does
listing every delimiter as a separate suggestion.

- Blair

On 29/06/09 11:38 AM, "mitcho (Michael 芳貴 Erlewine)" wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »