Comments on: Adjectives and Adverbs http://robfelty.com/teaching/ling5200Fall2009/2009/09/adjectives-and-adverbs/ Introduction to computational corpus linguistics Mon, 16 Nov 2009 18:31:36 -0500 http://wordpress.org/?v=2.9-rare hourly 1 By: cecilm http://robfelty.com/teaching/ling5200Fall2009/2009/09/adjectives-and-adverbs/comment-page-1/#comment-20 cecilm Fri, 18 Sep 2009 16:19:43 +0000 http://robfelty.com/teaching/ling5200Fall2009/?p=81#comment-20 ah, I didn't see the space in the last " v." ah, I didn’t see the space in the last ” v.”

]]>
By: robfelty http://robfelty.com/teaching/ling5200Fall2009/2009/09/adjectives-and-adverbs/comment-page-1/#comment-15 robfelty Tue, 15 Sep 2009 22:29:46 +0000 http://robfelty.com/teaching/ling5200Fall2009/?p=81#comment-15 No. I meant what I said. Another example: <tt>echo "quickly, adv." | grep -E '(adj|n|v)\.'</tt> This matches, which might lead you to believe that that the presence of <tt>adj</tt> in your regular expression is the reason. However, it is the presence of <tt>v</tt> Compare with: <tt>echo "quickly, adv." | grep -E ' (adj|n|v)\.'</tt> This does not match, because we are looking for a space followed by either <tt>adj.</tt>, <tt>n.</tt>, or <tt>v.</tt>. The space is necessary. No. I meant what I said. Another example:
echo "quickly, adv." | grep -E '(adj|n|v)\.'
This matches, which might lead you to believe that that the presence of adj in your regular expression is the reason. However, it is the presence of v

Compare with:
echo "quickly, adv." | grep -E ' (adj|n|v)\.'
This does not match, because we are looking for a space followed by either adj., n., or v.. The space is necessary.

]]>
By: cecilm http://robfelty.com/teaching/ling5200Fall2009/2009/09/adjectives-and-adverbs/comment-page-1/#comment-14 cecilm Tue, 15 Sep 2009 22:08:22 +0000 http://robfelty.com/teaching/ling5200Fall2009/?p=81#comment-14 Did you mean to say: the string does contain "v". However the string does not contain "adj."? Did you mean to say: the string does contain “v”. However the string does not contain “adj.”?

]]>