Output sting and preceding word

13 views
Skip to first unread message

Andreas Hallberg

unread,
Mar 20, 2013, 12:14:01 PM3/20/13
to chib...@googlegroups.com
Hi all,

I have a rather simple problem that I have not been able to solve. I want a command that takes an s-string as used in the freq command and generates a list containing inly hits together with the preceding word, so that every item in the generated list consists of two words, where the second is the word found by the s-string.

The background is that I am investigating in what syntactic positions case tends to be marked in formal spoken Arabic. In my corpus, nouns on the main tier have a postcode with tags designating, amongst other things, syntactic function and whether case is marked. I want to see of direct objects are more often marked for accusative case if they directly follow the governing verb, that is not tagged. So I as a first step I would like a simple list of all nouns marked as direct object together with the preceding word. From that list I could manually sort out those where the preceding word is a verb.


Thanks,
Andreas

Leonid Spektor

unread,
Mar 20, 2013, 1:29:07 PM3/20/13
to chib...@googlegroups.com
Andreas,

In the simplest form of what you have described that you want, I would suggest this command:

cooccur +...@cooccur.cut -b *.cha 

where "cooccur.cut" file contains a list of words that you are looking for, one word per line.

If this command doesn't work for you, then please provide a small example of your data format and coding, the search parameter(s) and result(s) that you would like to get.

Leonid.



--
You received this message because you are subscribed to the Google Groups "chibolts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+u...@googlegroups.com.
To post to this group, send email to chib...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/chibolts/-/Sw9tULiUEOUJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Andreas Hallberg

unread,
Mar 27, 2013, 5:28:14 AM3/27/13
to chib...@googlegroups.com
Thank you, Leonid. The command does precisely what I had in mind.

a


Reply all
Reply to author
Forward
0 new messages