Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99790

Exclude text within quotation marks and words beginning with a capital letter

X-Received by 10.107.13.200 with SMTP id 191mr62146293ion.26.1448968639958; Tue, 01 Dec 2015 03:17:19 -0800 (PST)
X-Received by 10.50.134.69 with SMTP id pi5mr408037igb.5.1448968639893; Tue, 01 Dec 2015 03:17:19 -0800 (PST)
Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!mv3no8905205igc.0!news-out.google.com!f6ni15570igq.0!nntp.google.com!mv3no8905200igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Tue, 1 Dec 2015 03:17:19 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=143.210.188.44; posting-account=5aORBAoAAAD9IKln4K3vf2Ft_vWxr7HF
NNTP-Posting-Host 143.210.188.44
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <a1da3bd6-5643-46b4-bcc5-69659367d491@googlegroups.com> (permalink)
Subject Exclude text within quotation marks and words beginning with a capital letter
From Kevin Glover <kevingloveruk@gmail.com>
Injection-Date Tue, 01 Dec 2015 11:17:19 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Lines 8
Xref csiph.com comp.lang.python:99790

Show key headers only | View raw


I am working on a program that is written in Python 2.7 to be compatible with the POS tagger that I import from Pattern. The tagger identifies all the nouns in a text. I need to exclude from the tagger any text that is within quotation marks, and also any word that begins with an upper case letter (including words at the beginning of sentences).

Any advice on coding that would be gratefully received. Thanks.

Kevin

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Exclude text within quotation marks and words beginning with a capital letter Kevin Glover <kevingloveruk@gmail.com> - 2015-12-01 03:17 -0800
  Re: Exclude text within quotation marks and words beginning with a capital letter Peter Otten <__peter__@web.de> - 2015-12-01 13:43 +0100
  Re: Exclude text within quotation marks and words beginning with a capital letter Jason Friedman <jsf80238@gmail.com> - 2015-12-04 10:38 -0700

csiph-web