Open PPH3 opened 7 years ago
@PPH3 @mjb232 @etj27 I just added a bit of markdown code to turn your final task list into a checklist. As you complete tasks, check them off!
Attribute list: religious scientific gothic other
Attributes will look like this:
<w type=" value">ancient</w>
@ebeshero In prep. for my meeting tomorrow with Matt, I was running some XPath expressions over their fullList_syn.xml file and was wondering if there was a way to find the top 10 words with the highest synset counts. Obviously, we could use max to find the word with the most synsets, but I'm wondering if there is a way to find the top 10 (like a range of words with the highest synset count values).
Here is where I have been experimenting. I tried to use the fn:subsequence, but it isn't doing what I expected.
@RJP43 In a "for" loop, you can set a predicate to return only where the position() is less than 10. In your case you're sorting on the words based on their count() in the source texts, and you'll need to craft that expression carefully. Once you do, here's how to retrieve only 10 results in your for-loop:
http://stackoverflow.com/questions/4405289/xsl-only-show-10-loops-in-the-for-each
But you may want to output them all first to see if you really want the cut-off to be at 10.
@ebeshero okay let me see what I can make of that. Thanks!