Timeline for Count the number of the personages in a book [closed]
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 6, 2017 at 19:08 | comment | added | Rolf Mertig | @m_goldberg It is unsolvable by Mathematica alone. If one adds database-queries of list of (first) names, then one could probably get pretty far with a semi-heuristic approach as I laid out above. But I agree that this question should be closed as "too-difficult" or whatever the reason is to close a research-type question. | |
Mar 6, 2017 at 18:47 | comment | added | user64494 | @Rolf Mertig: Many thanks from me to you for your constructive comment. | |
Mar 6, 2017 at 18:42 | comment | added | user64494 | @m_goldberg: Could you elaborate your statement about an unsolved AI problem? I don't find it here medium.com/ai-roadmap-institute/… . | |
Mar 6, 2017 at 14:54 | history | closed |
m_goldberg vapor MarcoB Feyre Young |
Not suitable for this site | |
Mar 5, 2017 at 22:24 | review | Close votes | |||
Mar 6, 2017 at 14:54 | |||||
Mar 5, 2017 at 22:04 | comment | added | m_goldberg | I'm voting to close this question as off-topic because this is not a Mathematica problem. It is an unsolved AI problem. | |
Mar 5, 2017 at 21:07 | comment | added | Rolf Mertig |
This will be hard in general. This may be a start for you: t1 = StringSplit[ Import["http://www.gutenberg.org/cache/epub/599/pg599.txt"]]; p1 = Tally[ Select[Partition[t1, 2, 1], And @@ (StringLength[#1] > 2 && UpperCaseQ[StringTake[#1, 1]] &) /@ #1 &]]; p2 = Select[p1, DictionaryWordQ[#1[[1, 1]]] && DictionaryWordQ[#1[[1, 2]]] &]; p3 = Select[p2, LowerCaseQ[ StringTake[#1[[1, 1]], {2, 2}] <> StringTake[#1[[1, 2]], {2, 2}]] &]; p4 = (Reverse[SortBy[#1, Last]] &)[ Select[p4, StringMatchQ[StringJoin[#1[[1]]], __?LetterQ] &]]; Column@p4
|
|
Mar 5, 2017 at 20:43 | comment | added | C. E.♦ | @user64494 No you didn't. My English was fine, you introduced grammatical errors into the text and made it harder to read. But your intention was good, and it's your question so it's all good. And thank you for adding the link to Gutenberg. | |
Mar 5, 2017 at 19:44 | history | edited | user64494 | CC BY-SA 3.0 |
edited title
|
Mar 5, 2017 at 19:42 | comment | added | user64494 | @ C. E. Thank you. I somewhat improved your English. | |
Mar 5, 2017 at 19:37 | history | edited | user64494 | CC BY-SA 3.0 |
deleted 1 character in body
|
Mar 5, 2017 at 19:21 | history | edited | user64494 | CC BY-SA 3.0 |
added 67 characters in body
|
Mar 5, 2017 at 18:55 | history | edited | user64494 | CC BY-SA 3.0 |
added 88 characters in body
|
Mar 5, 2017 at 18:51 | comment | added | C. E.♦ | It was very easy to mistake "number of characters" for "string length" in the original question, so I rephrased it a bit. Why did you pick that text if you don't have access to a digital version of it that you can share? Please update the question with a link to a text. Also I think you should have made some headway on this yourself, at the very least you should have imported the text into Mathematica. Please share that code. | |
Mar 5, 2017 at 18:49 | history | edited | C. E.♦ | CC BY-SA 3.0 |
Made it easier to understand what the question is.
|
Mar 5, 2017 at 18:21 | comment | added | user64494 | @ C. E.: Thank you for your interest. Frankly saying, I only looked in Text Analysis. | |
Mar 5, 2017 at 18:19 | comment | added | user64494 | @anderstood: Thank you for your interest. Of course, character = personage. | |
Mar 5, 2017 at 18:14 | comment | added | anderstood |
If the text is stored in variable str , the number of characters can be given by StringLength[str] . How to import the text is another question and I don't think questions such as "find a free version of this book for me" is in the scope of mma.se. edit I think I misunderstood character = person and character = element of a string.
|
|
Mar 5, 2017 at 18:07 | history | asked | user64494 | CC BY-SA 3.0 |