Hi there,
I am using Text explorer to find phrases in a clean corpus that I know pretty well, oracle text from Magic the Gathering cards. It's doing a great job, but there's something I'd like to improve. It is finding the common phrase "destroy up to one target" but it is not finding the phrases "destroy up to one target creature" or "destroy up to one target enchantment". I'd like to be able to find these. They are common enough that they should probably be found. I have increased the maximum number of words per phrase from 10 to 100 to 1000 to see if this would affect algorithm behavior and it didn't. I've turned of all stop words and I am not using stemming. I have the maximum number of phrases to find parameter to 50,000 and it only found about 30,000, so I don't think that is the issue.
Aside from these basic settings, is there something I can do to "train" the phrase finding algorithm to find these extended phrases? I don't understand Regex, but perhaps there's something that could be done there? This kind of unfortunate truncation (at least for the purposes of my research) happens throughout my corpus, so I'm looking for a solution that would fix this problem systemically, rather than a 1 time fix, like adding the specific phrase I am working for. I think I would find many of the phrases that I am looking for if it could just be taught to extend all existing phrases one word more. I imagine there's so rule that makes it think that it's found the optimal stopping point for each phrase as it adds one word at a time, but for this corpus, it often stops just a little too short. Of course, it's finding all kinds of non-sensical 10 word phrases that I am not looking for.
Does anyone have an idea for how to get it to just extend each of the phrases that it finds by one word?
I haven't found that changing any settings makes a difference. Does anyone have any suggestions? I