hello pdahal,

unfortunately the Crystal::Ball module is not on CPAN..

It would be an useful module for me to know what are you parsing and for you to find proteines that are good against thrombosis in your texts. But..

If I understand you want to tell between Xa proteine name from Liu Xa a fantasy chinese name.

This is not possible..

I suspect some manual work is needed in your case.

The best I can imagine is the following: given a list of proteine, build up a hash with proteine name as key and an empty array as value. Parse your texts searching proteine names and store in the array some sourronding text: like $prot{Xa}=["the proteine Xa is good for"]

It can happen that you store something $prot{Xa}=["as the famous Liu Xa said to the queen"]

Then choose some human redable dataformat to save your data and clean it by hand: many options are available, YAML among them.

It is still risky because you can parse something like the proteine Xa used in the terapy followed by the text is now considered harmfull

So, because you are working on sensible things, the best will be to store also the name of text and the line number, to check it by hand: like $prot{Xa}=["Necronomicon,42,the proteine Xa is good for"]

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

In reply to Re: Recognizing protein name -- Crystal::Ball by Discipulus
in thread Recognizing protein name by pdahal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.