Namespace doubletree
doubletree
All of the functionality is in the doubletree namespace
Defined in: DoubleTree.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
doubletree.fieldText(info, the)
return the value of a field in the provided information object
|
<static> |
doubletree.filterByMaxCount(n)
function to filter the nodes according to a maximum for the count field
|
<static> |
doubletree.filterByMinCount(n)
function to filter the nodes according to a minimum for the count field
|
<static> |
doubletree.filterByPOS(n)
function to filter the nodes according to the "POS" field (if it exists)
|
<static> |
doubletree.infoToText(the)
converts an information object to a string
|
<static> |
doubletree.sortByContinuations()
function to sort the nodes according to the continuations field in the information object
|
<static> |
doubletree.sortByCount()
function to sort the nodes according to the count field in the information object
|
<static> |
doubletree.sortByStrFld(fld)
function to sort the nodes (case insenstive) by a field in the information object
|
<static> |
doubletree.tokenText(info)
convenience function to return the value of the "token" field (if it exists).
|
Method Detail
<static>
doubletree.fieldText(info, the)
return the value of a field in the provided information object
- Parameters:
- info
- the information object
- the
- field to get
- Returns:
- the value of the field in the information object
<static>
doubletree.filterByMaxCount(n)
function to filter the nodes according to a maximum for the count field
- Parameters:
- n
- the maximum count to include
<static>
doubletree.filterByMinCount(n)
function to filter the nodes according to a minimum for the count field
- Parameters:
- n
- the minimum count to include
<static>
doubletree.filterByPOS(n)
function to filter the nodes according to the "POS" field (if it exists)
- Parameters:
- n
- a string for a regular expression of the POS values to include
<static>
doubletree.infoToText(the)
converts an information object to a string
- Parameters:
- the
- information object
- Returns:
- a string with one key/value pair per line
<static>
doubletree.sortByContinuations()
function to sort the nodes according to the continuations field in the information object
<static>
doubletree.sortByCount()
function to sort the nodes according to the count field in the information object
<static>
doubletree.sortByStrFld(fld)
function to sort the nodes (case insenstive) by a field in the information object
- Parameters:
- fld
- the field to sort by
<static>
doubletree.tokenText(info)
convenience function to return the value of the "token" field (if it exists). The same as doubletree.fieldText(info, "token")
- Parameters:
- info
- the information object
- Returns:
- the value of the "token" field of the information object