Preventing the matching of Infinitives
Leonid Spektor
spektor at andrew.cmu.edu
Fri Mar 30 18:35:46 UTC 2012
Liam,
If you remove all 'OR' options and list all explicit final search conditions, then combo will do wht you expect it to. But, in this case your original search will be broken up into 15 following searches:
+s"v|*^prep|*^n|*"
+s"v|*^prep|*^pro|*"
+s"v|*^prep|*^det|*"
+s"v|*^prep|*^det|*^n|*"
+s"v|*^prep|*^det|*pro|*"
+s"v|*^prep|*^det|*det|*"
+s"v|*^prep|*^qn|*^n|*"
+s"v|*^prep|*^qn|*pro|*"
+s"v|*^prep|*^qn|*det|*"
+s"v|*^prep|*^det|*^adj|*^n|*"
+s"v|*^prep|*^det|*^adj|*^pro|*"
+s"v|*^prep|*^det|*^adj|*^det|*"
+s"v|*^prep|*^qn|*^adj|*^n|*"
+s"v|*^prep|*^qn|*^adj|*^pro|*"
+s"v|*^prep|*^qn|*^adj|*^det|*"
You can put those search commands into a batch file like the one I am attaching here and run them with command:
bat combo_search.cut
Leonid.
-------------- next part --------------
On Mar 30, 2012, at 13:55, Liam Considine wrote:
> Leonid,
>
> Thanks for the quick reply about the NOT market '!'
> It is also good to know that COMBO behaves differently than I had
> assumed (i.e. not try to find all possible matches.)
>
> If i were to make a combo.cut file where I disentangled this search
> into a set of individual +t%mor regular expressions,
> would it then be more likely to return the
>
> "v| prep| det| n|" or "v| prep| det| adj| n|" ?
>
> I appreciate your energy,
> Liam
>
> On Mar 29, 3:32 pm, Leonid Spektor <spek... at andrew.cmu.edu> wrote:
>> Liam,
>>
>> NOT marker is indicated by '!' character. In your example you would specify:
>>
>> +s"!inf|to^v|*^prep|*^((n|*+pro|*+det|*)+((det|*+qn|*)^(n|*+pro|*+det|*))+((det|*+qn|*)^adj|*^(n|*+pro|*+det|*)))"
>>
>> I would like to point out that as soon as search locates "v| prep| det|" it will stop. COMBO will not try to find all possible matches specified by search patter. So, "v| prep| det| n|" or "v| prep| det| adj| n|" will never be found by COMBO.
>>
>> But, I just tested COMBO and it doesn't work as well as it should. I would recommend to you to use some other regular expression search application for searches that are this complicated. You can use KWAL command to extract only specific speakers and their associated "%mor" tiers from your data, if you are only interested in searching just some specific speakers' data. And then use "LONGTIER *.cha" command to make each "%mor" tier fit on just one line, in case your search application can not search across multiple lines such as the case when "%mor" tier wraps around. Meanwhile, I will try for fix COMBO.
>>
>> Leonid.
>>
>> On Mar 29, 2012, at 04:39, Liam Considine wrote:
>>
>>
>>
>>
>>
>>
>>
>>> Hello Chibolts,
>>
>>> Is there a way to indicate in a +t%mor Combo command, a certain
>>> constituent that I do not want to occur in a particular location?
>>
>>> For example, what could i do so that the verb in this command is NOT
>>> preceded by an inf|to? I don't really want to indicate EVERYTHING that
>>> is alright there... just the few things i don't want...
>>
>>> combo +t*MOT +t%mor +s"v|*^prep|*^((n|*+pro|*+det|*)+((det|*+qn|*)^(n|*
>>> +pro|*+det|*))+((det|*+qn|*)^adj|*^(n|*+pro|*+det|*))) +k +r2 +u *.cha
>>
>>> Thanks for the thoughts,
>>> Liam
>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "chibolts" group.
>>> To post to this group, send email to chibolts at googlegroups.com.
>>> To unsubscribe from this group, send email to chibolts+unsubscribe at googlegroups.com.
>>> For more options, visit this group athttp://groups.google.com/group/chibolts?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "chibolts" group.
> To post to this group, send email to chibolts at googlegroups.com.
> To unsubscribe from this group, send email to chibolts+unsubscribe at googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/chibolts?hl=en.
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combo_search.cut
Type: application/octet-stream
Size: 1039 bytes
Desc: not available
URL: <http://listserv.linguistlist.org/pipermail/chibolts/attachments/20120330/ae30a2d2/attachment-0001.obj>
-------------- next part --------------
--
You received this message because you are subscribed to the Google Groups "chibolts" group.
To post to this group, send email to chibolts at googlegroups.com.
To unsubscribe from this group, send email to chibolts+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/chibolts?hl=en.
More information about the Chibolts
mailing list