Comments on: Homework 3 questions http://robfelty.com/teaching/ling5200Fall2009/2009/09/homework-3-questions/ Introduction to computational corpus linguistics Mon, 16 Nov 2009 18:31:36 -0500 http://wordpress.org/?v=2.9-rare hourly 1 By: robfelty http://robfelty.com/teaching/ling5200Fall2009/2009/09/homework-3-questions/comment-page-1/#comment-19 robfelty Thu, 17 Sep 2009 22:28:47 +0000 http://robfelty.com/teaching/ling5200Fall2009/2009/09/homework-3-questions/#comment-19 Keith, No. You do not need to use a clever pipe. You should just look at the log to find the revision number for your final version and the one before it, and then use those numbers when you show the difference between them. You can use regular expressions with some of them. One example is the findall method. It will be explicitly mentioned in the documentation though. If you have loaded the stuff from the book, you can type: <code lang='python> help(text1.findall) </code> to find out how to use findall Keith,

No. You do not need to use a clever pipe. You should just look at the log to find the revision number for your final version and the one before it, and then use those numbers when you show the difference between them.

You can use regular expressions with some of them. One example is the findall method. It will be explicitly mentioned in the documentation though. If you have loaded the stuff from the book, you can type:

help(text1.findall)

to find out how to use findall

]]>
By: keith.mertz http://robfelty.com/teaching/ling5200Fall2009/2009/09/homework-3-questions/comment-page-1/#comment-18 keith.mertz Thu, 17 Sep 2009 22:16:38 +0000 http://robfelty.com/teaching/ling5200Fall2009/2009/09/homework-3-questions/#comment-18 Rob, 1. For #6, should we come up with some clever pipe combination to automatically pull version numbers from the log, or should we just note in the answer that "Here I would put 'version'"? 2. Can we use regular expressions in the basic NLTK commands? Especially for commands like concordance and count and so on. Later in the book it talks about importing regular expressions, so I assume not. Rob,

1. For #6, should we come up with some clever pipe combination to automatically pull version numbers from the log, or should we just note in the answer that “Here I would put ‘version’”?

2. Can we use regular expressions in the basic NLTK commands? Especially for commands like concordance and count and so on. Later in the book it talks about importing regular expressions, so I assume not.

]]>
By: robfelty http://robfelty.com/teaching/ling5200Fall2009/2009/09/homework-3-questions/comment-page-1/#comment-17 robfelty Thu, 17 Sep 2009 21:34:32 +0000 http://robfelty.com/teaching/ling5200Fall2009/2009/09/homework-3-questions/#comment-17 Anwen, Good question. Don't worry about avoiding compound words. In fact, it could be argued that they are one phonological word. Anwen,

Good question. Don’t worry about avoiding compound words. In fact, it could be argued that they are one phonological word.

]]>
By: anwenq http://robfelty.com/teaching/ling5200Fall2009/2009/09/homework-3-questions/comment-page-1/#comment-16 anwenq Wed, 16 Sep 2009 17:23:04 +0000 http://robfelty.com/teaching/ling5200Fall2009/2009/09/homework-3-questions/#comment-16 Hi Rob, For the first problem, do you want us to avoid counting instances such as "trusts to\[trVsts][tu:]" in the tautsyllabic category? Hi Rob,

For the first problem, do you want us to avoid counting instances such as “trusts to\[trVsts][tu:]” in the tautsyllabic category?

]]>