Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Mark Lawrence Newsgroups: comp.lang.python Subject: Re: Catogorising strings into random versus non-random Date: Mon, 21 Dec 2015 17:09:21 +0000 Lines: 20 Message-ID: References: <56776b9d$0$1615$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de EcUjL7dWtUMIJSng3TVz4AzNqHoHS3TFn/YEUF0JSikg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'from:addr:yahoo.co.uk': 0.05; 'source.': 0.05; '21,': 0.07; 'trailing': 0.07; 'finite': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:into': 0.09; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:non': 0.16; 'subject:random': 0.16; 'subject:versus': 0.16; 'underscores': 0.16; 'wrote:': 0.16; 'language': 0.19; '2015': 0.20; 'machine': 0.21; 'lawrence': 0.22; 'am,': 0.23; 'dec': 0.23; 'replacing': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints- To:1': 0.26; 'point.': 0.27; 'transition': 0.27; 'separated': 0.29; "i'd": 0.31; 'language.': 0.32; 'url:python': 0.33; 'text': 0.35; 'something': 0.35; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'expect': 0.37; 'received:org': 0.37; 'seem': 0.37; 'starting': 0.37; 'mean': 0.38; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'some': 0.40; 'your': 0.60; 'charset:windows-1252': 0.62; 'url:0': 0.63; 'our': 0.64; 'score': 0.76; 'smith': 0.76; 'sounds': 0.76; 'matrix.': 0.84; 'pythonistas,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: host-92-21-245-167.as13285.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100680 On 21/12/2015 16:49, Ian Kelly wrote: > On Mon, Dec 21, 2015 at 9:40 AM, duncan smith wrote: >> Finite state machine / transition matrix. Learn from some English text >> source. Then process your strings by lower casing, replacing underscores >> with spaces, removing trailing numeric characters etc. Base your score >> on something like the mean transition probability. I'd expect to see two >> pretty well separated groups of scores. > > Sounds like a case for a Hidden Markov Model. > In which case https://pypi.python.org/pypi/Markov/0.1 would seem to be a starting point. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence