Problems with syntax for themes

Anonymous
2013-11-01
2013-11-03
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2013-11-01

    I am having trouble writing coding rule -- in that the program is not picking up cases that my syntax says it should -- and is picking up cases that I am telling it to ignore.

    For example: my code as " and not(unconcerned)" but I still get that word included in my code.
    Is there a place where you have rules about how to write coding rules?

     
  • HIGUCHI Koichi

    HIGUCHI Koichi - 2013-11-02

    These threads can be some help:
    https://sourceforge.net/p/khc/discussion/222396/thread/144b6d44/
    https://sourceforge.net/p/khc/discussion/222396/thread/81254127/
    https://sourceforge.net/p/khc/discussion/222396/thread/eac8a50b/

    Or you can post actual examples of your coding rules.

    Detailed manual is currently in Japanese language only. Sorry for the inconvenience. I am well aware of the importance of the manual, but it is so long and it would take some time to translate. Meanwhile, please post questions here.

     
    Last edit: HIGUCHI Koichi 2013-11-02
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous - 2013-11-02

      Is there a way to remove stop words from the system? When I take one out, and re-run the preprocessing, I am still see that word ignored in the code.

       
  • HIGUCHI Koichi

    HIGUCHI Koichi - 2013-11-02

    take one out, and re-run the preprocessing

    Did you take one out from the KH Coder's config window? Then, that's all you have to do.

    Probably, the problem is the syntax of the coding rule.

    Can you post the actual example of your code?

     
    Last edit: HIGUCHI Koichi 2013-11-02
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2013-11-03

    Here is an example of the code rule I am working with:

    *sense making
    toll or notify or report or area or farm or vaccine or transmission or rise or risk or dead or spread or casualty or infect or evolve or carrier or search or pandemic or found or victim or reach or hospital or infection
    or newly or unstable or panic or hit or block or ward or kill or suffocation or scientist or founder or expert or contain or symptom or death or poultry or pose or official or seriously or more+infectious
    or (human and !greed)

    The problem I am running into most often is how to construct the "not" rule. For example, if there is a word that makes it so that the unit (which is a h1 tag) should not apply to the code rule --
    If use include "and !market" -- then all the units are not included. If I do it as I did above -- (human and !greed) -- this seems to work better. But sometimes it removes all the human in addition to all the greed.
    Is there a rule for how to construct the code for the "not"?

     
  • HIGUCHI Koichi

    HIGUCHI Koichi - 2013-11-03

    [1] You need white spaces before and after "not," "(" and ")."

    [2] You should try more simple rules when you are at a loss. For example, try these rules please.

    *test1
    human

    *test2
    human and not greed

    test3
    risk or ( human and not greed )

     
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous - 2013-11-03

      Thanks. That is helpful.

       


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks