Jump to content

Recommended Posts

Posted

Hey guys,

So basically I have a chunk of of text and i need to figure out how many times every character shows up and then list them by frequency. Any idea on how to do this? It is to know which kanji pop up most often in a particular Vn.

Posted

So you mean to do it manually. Isn't there a way to check with a program?

Not necessarily manually, you can always code something that will do that. Depends on the script, it would most likely have to be custom for your specific VN/engine.

Posted

Simple task for someone with programming knowledge, like shcboomer and ReTrans have said. Depending on formatting it can get a little complex, but it just basically needs a definition of what to exclude.

If you feel confident in grasping new concepts, have a look at Python, regular expressions and string splitting - otherwise provide your scripts in some way and someone could do it for you, we have quite a few people around who should be able and willing to help.

Posted

Umm, if you want to just get chars frequency, you don't need regexes or anything else.

>>> import collections

>>> d = collections.Counter()
>>> d.update(list(s))
where s is text string.

Posted

I made a few assumptions about the "chunk of text" equaling "script", which can contain any and all kinds of characters unrelated to the text to be counted, so I didn't apply Occam's razor to that.

 

So above is the simplest solution to it, which should be fairly accurate in it's own right.

Posted

No I mean I literally have a txt file with much of the script from the Vn pasted onto it and want to know which kanji pop up the most. If someone would be willing to do that for me I would appreciate it very much. I can send you the txt file any way  you want.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...