Talk:Markov chain text generator

From Rosetta Code
Revision as of 08:07, 28 September 2016 by Rdm (talk | contribs) (→‎Strangeness with safari: new section)

Task is ambiguous

Need to specify algorithm in task description (either copy the rose-hulman.edu description or get a different one here). Need to specify test data in task description (ideally host that here, but if it is huge at least provide a stable off-site link). Need to specify value (or values) for n (in n-grams) in task description - the current implementation looks like it only uses 2-grams and, if that is the intent, this constraint should be specified in the task description. --Rdm (talk) 18:21, 27 June 2016 (UTC)


Rewording

I hope the text for the task is now clearer!

And by the way, the C++ implementation does not uses 2-grams as Rdm supposed - take a look at the call to create in "main". --Paulo Jorente (talk) 07:43, 28 June 2016 (UTC)

Strangeness with safari

Currently, the J entry wraps oddly in Safari.

This seems to be because of the style sheet http://rosettacode.org/mw/load.php?debug=false&lang=en&modules=ext.bootstrap.styles&only=styles&skin=chameleon which contains word-wrap: break-word; (along with a bunch of other stuff). Disabling this removes the wrapping (which seems to be on character boundaries rather than word boundaries).

I'm not sure why we have things set up this way, but my impression is that if we are trying to achieve word wrap we should not be using the pre tag (even in the heavily doctored way that it's currently being used).

Any thoughts on this? --Rdm (talk) 08:07, 28 September 2016 (UTC)