mirror of
https://github.com/nhammer514/textfiles-politics.git
synced 2025-05-07 00:56:12 -04:00
pushing a new xquery and another test Regex directory
This commit is contained in:
parent
780f7e4c00
commit
8a031d6eb7
330 changed files with 239037 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
let $conspFiles := collection('personTestingOutput')
|
||||
let $ents := $conspFiles//ent
|
||||
let $entTypes := $ents/@type[. = 'NORP'] ! string() => distinct-values()
|
||||
let $entTypes := $ents/@type[. = 'PERSON'] ! string() => distinct-values()
|
||||
for $e in $entTypes
|
||||
return
|
||||
<table id="{$e}">
|
||||
|
@ -10,13 +10,13 @@ return
|
|||
let $namesE := $conspFiles//ent[@type=$e]
|
||||
let $distNamesE := $namesE ! normalize-space() => distinct-values() => sort()
|
||||
for $t in $distNamesE
|
||||
let $countT := $conspFiles//ent[. ! normalize-space() = $t] => count()
|
||||
where $countT > 10
|
||||
(: order by $countT descending:)
|
||||
(: let $countT := $conspFiles//ent[. ! normalize-space() = $t] => count() :)
|
||||
(: where $countT > 10 :)
|
||||
(: order by $countT descending:)
|
||||
return
|
||||
<tr>
|
||||
<td>{$t}</td>
|
||||
<td>{$countT}</td>
|
||||
<!-- <td>{$countT}</td> -->
|
||||
</tr>
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue