diff --git a/index.js b/index.js index d70f3c824..10a3f2f00 100644 --- a/index.js +++ b/index.js @@ -3923,13 +3923,13 @@ INDEX=[ { "ref":"tf.browser.ner.tables.tokenMatch", "url":97, -"doc":"", +"doc":"Checks whether a sentence matches a sequence of words. When we do the checking, we ignore empty words in the sentence. Parameters L, F, T: object The TF APIs F and L for feature lookup and level-switching, and text extraction s: integer The node of the sentence in question words: list of string The sequence of words that must be matched. They are all non-empty.", "func":1 }, { "ref":"tf.browser.ner.tables.composeS", "url":97, -"doc":"Compose a table of sentences. Will filter the sentences by tokens if the tokens parameter is not None. In that case, tokens should be an array of slots. All sentences that contain the words of those slots will show up, all other sentences will be left out. The matching slots will be highlighted. Parameters app: object The TF app of the corpus in question. setData: dict The entity data of the chosen set. tokenStart, tokenEnd: int or None Specify the start slot number and the end slot number of a sequence of tokens. Only sentences that contain this token sentence will be passed through, all other sentences will be filtered out. Returns - html string The finished HTML of the table, ready to put into the Flask template.", +"doc":"Compose a table of sentences. Will filter the sentences by tokens if the tokenStart and tokenEnd parameters are both filled in. In that case, we look up the text between those tokens and including. All sentences that contain that text of those slots will show up, all other sentences will be left out. The matching slots will be highlighted. Parameters app: object The TF app of the corpus in question. setData: dict The entity data of the chosen set. findPattern: string A search string that filters the sentences, before applying the search for a word sequence. tokenStart, tokenEnd: int or None Specify the start slot number and the end slot number of a sequence of tokens. Only sentences that contain this token sentence will be passed through, all other sentences will be filtered out. Returns - html string The finished HTML of the table, ready to put into the Flask template.", "func":1 }, { diff --git a/tf/about/apps.html b/tf/about/apps.html index 36b131027..67e0f4af1 100644 --- a/tf/about/apps.html +++ b/tf/about/apps.html @@ -110,7 +110,7 @@

Two contexts

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/apps.md
diff --git a/tf/about/background.html b/tf/about/background.html
index 9a8f4aabf..611ff0d17 100644
--- a/tf/about/background.html
+++ b/tf/about/background.html
@@ -149,7 +149,7 @@ 

History

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/background.md
diff --git a/tf/about/browser.html b/tf/about/browser.html
index 23c2fe255..1624de916 100644
--- a/tf/about/browser.html
+++ b/tf/about/browser.html
@@ -169,7 +169,7 @@ 

Unicode in Excel CSVs

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/browser.md
diff --git a/tf/about/clientmanual.html b/tf/about/clientmanual.html
index 47cddb5ff..f073ddecf 100644
--- a/tf/about/clientmanual.html
+++ b/tf/about/clientmanual.html
@@ -560,7 +560,7 @@ 

Credits

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/clientmanual.md
diff --git a/tf/about/code.html b/tf/about/code.html
index 35c9bc3bc..766193ffa 100644
--- a/tf/about/code.html
+++ b/tf/about/code.html
@@ -93,7 +93,7 @@ 

Writing

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/code.md
diff --git a/tf/about/corpora.html b/tf/about/corpora.html
index e9044cf6c..899a869d7 100644
--- a/tf/about/corpora.html
+++ b/tf/about/corpora.html
@@ -337,7 +337,7 @@ 

Extra data

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/corpora.md
diff --git a/tf/about/datamodel.html b/tf/about/datamodel.html
index 5e78eebe4..8e667335a 100644
--- a/tf/about/datamodel.html
+++ b/tf/about/datamodel.html
@@ -260,7 +260,7 @@ 

Serializing and precomputing

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/datamodel.md
diff --git a/tf/about/datasharing.html b/tf/about/datasharing.html
index e1b41f34a..be4c20a3e 100644
--- a/tf/about/datasharing.html
+++ b/tf/about/datasharing.html
@@ -354,7 +354,7 @@ 

More modules at the same time

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/datasharing.md
diff --git a/tf/about/displaydesign.html b/tf/about/displaydesign.html
index e09af3bfc..35a047a5b 100644
--- a/tf/about/displaydesign.html
+++ b/tf/about/displaydesign.html
@@ -146,7 +146,7 @@ 

Output

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/displaydesign.md
diff --git a/tf/about/faq.html b/tf/about/faq.html
index 29b387507..055cbc09f 100644
--- a/tf/about/faq.html
+++ b/tf/about/faq.html
@@ -156,7 +156,7 @@ 

GitHub Rate Limit Exceeded!

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/faq.md
diff --git a/tf/about/fileformats.html b/tf/about/fileformats.html
index e91a2c3e2..3e2aed7be 100644
--- a/tf/about/fileformats.html
+++ b/tf/about/fileformats.html
@@ -153,7 +153,7 @@ 

Single values

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/fileformats.md
diff --git a/tf/about/index.html b/tf/about/index.html
index e3602ca5e..3ae74eccc 100644
--- a/tf/about/index.html
+++ b/tf/about/index.html
@@ -28,7 +28,7 @@ 

Documents

Expand source code -Browse git +Browse git
"""
 # Documents
diff --git a/tf/about/install.html b/tf/about/install.html
index bf9453610..45970f101 100644
--- a/tf/about/install.html
+++ b/tf/about/install.html
@@ -102,7 +102,7 @@ 

Note for Linux users

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/install.md
diff --git a/tf/about/manual.html b/tf/about/manual.html
index d1a0cf919..bf692ca58 100644
--- a/tf/about/manual.html
+++ b/tf/about/manual.html
@@ -384,7 +384,7 @@ 

Keyboard shortcuts

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/manual.md
diff --git a/tf/about/optimizations.html b/tf/about/optimizations.html
index 876e7997a..f5f7e0431 100644
--- a/tf/about/optimizations.html
+++ b/tf/about/optimizations.html
@@ -182,7 +182,7 @@ 

Edge features

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/optimizations.md
diff --git a/tf/about/releases.html b/tf/about/releases.html
index 7366a4c83..de75193b6 100644
--- a/tf/about/releases.html
+++ b/tf/about/releases.html
@@ -106,7 +106,7 @@ 

Older releases

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/releases.md
diff --git a/tf/about/releasesold.html b/tf/about/releasesold.html
index d9c4dde39..b3389b56a 100644
--- a/tf/about/releasesold.html
+++ b/tf/about/releasesold.html
@@ -3345,7 +3345,7 @@ 
Changed
Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/releasesold.md
diff --git a/tf/about/searchdesign.html b/tf/about/searchdesign.html
index 04c830fda..a57d1d1a9 100644
--- a/tf/about/searchdesign.html
+++ b/tf/about/searchdesign.html
@@ -472,7 +472,7 @@ 

Small-first strategy

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/searchdesign.md
diff --git a/tf/about/searchusage.html b/tf/about/searchusage.html
index b37a6d6d9..2bb9749b7 100644
--- a/tf/about/searchusage.html
+++ b/tf/about/searchusage.html
@@ -769,7 +769,7 @@ 
Implementation
Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/searchusage.md
diff --git a/tf/about/tests.html b/tf/about/tests.html
index e737a962e..e6367c128 100644
--- a/tf/about/tests.html
+++ b/tf/about/tests.html
@@ -66,7 +66,7 @@ 

Relations

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/tests.md
diff --git a/tf/about/use.html b/tf/about/use.html
index 178a93572..21ff3fb45 100644
--- a/tf/about/use.html
+++ b/tf/about/use.html
@@ -85,7 +85,7 @@ 

Text-Fabric API

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/use.md
diff --git a/tf/about/usefunc.html b/tf/about/usefunc.html
index 02992902c..5017b9955 100644
--- a/tf/about/usefunc.html
+++ b/tf/about/usefunc.html
@@ -401,7 +401,7 @@ 

Prevent data loading

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/usefunc.md
diff --git a/tf/about/variants.html b/tf/about/variants.html
index 1af53777a..b44fef43d 100644
--- a/tf/about/variants.html
+++ b/tf/about/variants.html
@@ -416,7 +416,7 @@ 

The stack

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/variants.md
diff --git a/tf/about/volumes.html b/tf/about/volumes.html
index 4df717492..4262b869d 100644
--- a/tf/about/volumes.html
+++ b/tf/about/volumes.html
@@ -318,7 +318,7 @@ 

Reflection

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/about/volumes.md
diff --git a/tf/advanced/app.html b/tf/advanced/app.html
index 0ef148950..3de820000 100644
--- a/tf/advanced/app.html
+++ b/tf/advanced/app.html
@@ -26,7 +26,7 @@ 

Module tf.advanced.app

Expand source code -Browse git +Browse git
import types
 import traceback
@@ -809,7 +809,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def findApp(
     appName,
@@ -1099,7 +1099,7 @@ 

Returns

Expand source code -Browse git +Browse git
def loadApp(silent=DEEP):
     """Loads a given TF app or loads the TF app based on the working directory.
@@ -1163,7 +1163,7 @@ 

See Also

Expand source code -Browse git +Browse git
def useApp(appName, backend):
     """Make use of a corpus.
@@ -1263,7 +1263,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class App:
     def __init__(
@@ -1619,7 +1619,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def hoist(self, hoist, silent=None):
     """Hoist the API handles of this TF app to the global scope.
@@ -1687,7 +1687,7 @@ 

Returns

Expand source code -Browse git +Browse git
def load(self, features, silent=SILENT_D):
     """Loads extra features in addition to the main dataset.
@@ -1725,7 +1725,7 @@ 

Returns

Expand source code -Browse git +Browse git
def reinit(self):
     """TF-Apps may override this method.
@@ -1760,7 +1760,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def reuse(self, hoist=False):
     """Re-initialize the app.
diff --git a/tf/advanced/condense.html b/tf/advanced/condense.html
index f7d83c925..fd58c5ca7 100644
--- a/tf/advanced/condense.html
+++ b/tf/advanced/condense.html
@@ -26,7 +26,7 @@ 

Module tf.advanced.condense

Expand source code -Browse git +Browse git
def condense(api, tuples, condenseType, multiple=False):
     F = api.F
@@ -130,7 +130,7 @@ 

Functions

Expand source code -Browse git +Browse git
def condense(api, tuples, condenseType, multiple=False):
     F = api.F
@@ -187,7 +187,7 @@ 

Functions

Expand source code -Browse git +Browse git
def condenseSet(api, tup, condenseType):
     F = api.F
diff --git a/tf/advanced/data.html b/tf/advanced/data.html
index 3810bcfb1..6e109e446 100644
--- a/tf/advanced/data.html
+++ b/tf/advanced/data.html
@@ -26,7 +26,7 @@ 

Module tf.advanced.data

Expand source code -Browse git +Browse git
from ..core.helpers import itemize
 from ..core.files import backendRep, expandDir, prefixSlash, normpath
@@ -397,7 +397,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getModulesData(*args):
     """Retrieve all data for a corpus.
@@ -457,7 +457,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class AppData:
     def __init__(
@@ -794,7 +794,7 @@ 

See Also

Expand source code -Browse git +Browse git
def getMain(self):
     """Get the main data of the corpus.
@@ -857,7 +857,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getModule(
     self, org, repo, relative, checkout, backend=None, isBase=False, specs=None
@@ -974,7 +974,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getModules(self):
     """Get data from additional local directories.
@@ -1044,7 +1044,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getRefs(self):
     """Get data from additional modules.
@@ -1094,7 +1094,7 @@ 

See Also

Expand source code -Browse git +Browse git
def getStandard(self):
     """Get the data of the standard modules specified by the settings of the corpus.
diff --git a/tf/advanced/display.html b/tf/advanced/display.html
index 6a01bc418..a5ccd4c7a 100644
--- a/tf/advanced/display.html
+++ b/tf/advanced/display.html
@@ -64,7 +64,7 @@ 

See also

Expand source code -Browse git +Browse git
"""
 # Display
@@ -1050,7 +1050,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def displayApi(app, silent=SILENT_D):
     """Produce the display API.
@@ -1115,7 +1115,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def displayReset(app, *options):
     """Restore display parameters to their defaults.
@@ -1173,7 +1173,7 @@ 

See Also

Expand source code -Browse git +Browse git
def displaySetup(app, **options):
     """Set up all display parameters.
@@ -1231,7 +1231,7 @@ 

See Also

Expand source code -Browse git +Browse git
def displayShow(app, *options):
     """Show display parameters.
@@ -1364,7 +1364,7 @@ 

Results

Expand source code -Browse git +Browse git
def export(app, tuples, toDir=None, toFile="results.tsv", **options):
     """Exports an iterable of tuples of nodes to an Excel friendly `.tsv` file.
@@ -1509,7 +1509,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getCss(app):
     """Export the CSS for this app.
@@ -1564,7 +1564,7 @@ 

Returns

Expand source code -Browse git +Browse git
def loadCss(app):
     """Load the CSS for this app.
@@ -1650,7 +1650,7 @@ 

Result

Expand source code -Browse git +Browse git
def plain(app, n, _inTuple=False, _asString=False, explain=False, **options):
     """Display the plain text of a node.
@@ -1735,7 +1735,7 @@ 

Result

Expand source code -Browse git +Browse git
def plainTuple(
     app,
@@ -1976,7 +1976,7 @@ 

Result

Expand source code -Browse git +Browse git
def pretty(app, n, explain=False, _asString=False, **options):
     """Displays the material that corresponds to a node in a graphical way.
@@ -2053,7 +2053,7 @@ 

Result

Expand source code -Browse git +Browse git
def prettyTuple(app, tup, seq=None, _asString=False, item=RESULT, **options):
     """Displays the material that corresponds to a tuple of nodes in a graphical way.
@@ -2165,7 +2165,7 @@ 

Result

Expand source code -Browse git +Browse git
def show(app, tuples, _asString=False, **options):
     """Displays an iterable of tuples of nodes.
@@ -2268,7 +2268,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def table(app, tuples, _asString=False, **options):
     """Plain displays of an iterable of tuples of nodes in a table.
diff --git a/tf/advanced/find.html b/tf/advanced/find.html
index 6d78e55ed..38dc41864 100644
--- a/tf/advanced/find.html
+++ b/tf/advanced/find.html
@@ -26,7 +26,7 @@ 

Module tf.advanced.find

Expand source code -Browse git +Browse git
import sys
 from importlib import util
@@ -268,7 +268,7 @@ 

Returns

Expand source code -Browse git +Browse git
def findAppClass(appName, appPath):
     """Find the class definition of an app.
@@ -323,7 +323,7 @@ 

See Also

Expand source code -Browse git +Browse git
def findAppConfig(
     appName,
@@ -476,7 +476,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def loadModule(moduleName, *args):
     """Load a module dynamically, by name.
diff --git a/tf/advanced/helpers.html b/tf/advanced/helpers.html
index a5fc8dc86..6cd2c41e5 100644
--- a/tf/advanced/helpers.html
+++ b/tf/advanced/helpers.html
@@ -26,7 +26,7 @@ 

Module tf.advanced.helpers

Expand source code -Browse git +Browse git
import collections
 from textwrap import dedent
@@ -839,7 +839,7 @@ 

Functions

Expand source code -Browse git +Browse git
def backendRepl(match):
     thisBackend.append(match.group(1))
@@ -869,7 +869,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dh(html, inNb=True, unexpand=False):
     """Display HTML.
@@ -922,7 +922,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dm(md, inNb=True, unexpand=False):
     """Display markdown.
@@ -960,7 +960,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getHeaderTypes(app, tuples):
     api = app.api
@@ -999,7 +999,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getHeaders(app, tuples):
     headerTypes = getHeaderTypes(app, tuples)
@@ -1023,7 +1023,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getLocalDir(backend, cfg, local, version):
     provenanceSpec = cfg.get("provenanceSpec", {})
@@ -1063,7 +1063,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getResultsX(app, results, features, condenseType, fmt=None):
     """Transform a uniform iterable of nodes into a table with extra information.
@@ -1159,7 +1159,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getRowsX(app, tuples, features, condenseType, fmt=None):
     """Transform an iterable of nodes into a table with extra information.
@@ -1183,7 +1183,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getText(
     app, isPretty, n, nType, outer, first, last, level, passage, descend, options=None
@@ -1276,7 +1276,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getTuplesX(app, results, condenseType, fmt=None):
     """Transform a non-uniform iterable of nodes into a table with extra information.
@@ -1344,7 +1344,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getValue(app, n, nType, feat, suppress, math=False):
     F = app.api.F
@@ -1373,7 +1373,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def hData(x):
     if not x:
@@ -1404,7 +1404,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def hDict(x, outer=False):
     elem = f"{'o' if outer else 'u'}l"
@@ -1434,7 +1434,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def hEmpty(x):
     return (
@@ -1456,7 +1456,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def hList(x, outer=False):
     elem = f"{'o' if outer else 'u'}l"
@@ -1484,7 +1484,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def hScalar(x):
     if type(x) is str:
@@ -1504,7 +1504,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def hScalar0(x):
     tpv = type(x)
@@ -1549,7 +1549,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def hasData(backend, local, org, repo, version, relative):
     versionRep = f"/{version}" if version else ""
@@ -1574,7 +1574,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def htmlSafe(text, isHtml, math=False):
     return text.replace("\n", "<br>") if isHtml else htmlEsc(text, math=math)
@@ -1592,7 +1592,7 @@

Parameters

Expand source code -Browse git +Browse git
def isUniform(app, tuples):
     """Whether the members of tuples are uniform.
@@ -1634,7 +1634,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def parseFeatures(features):
     if (
@@ -1663,7 +1663,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def parseFeaturesLogical(feats):
     bare = []
@@ -1689,7 +1689,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def runsInNotebook():
     """Determines whether the program runs in an interactive shell.
@@ -1732,7 +1732,7 @@ 

Returns

Expand source code -Browse git +Browse git
def showDict(title, data, _browse, inNb, *keys):
     """Shows selected keys of a dictionary in a pretty way.
@@ -1773,7 +1773,7 @@ 

Returns

Expand source code -Browse git +Browse git
def splitModRef(moduleRef):
     thisBackend.clear()
@@ -1851,7 +1851,7 @@ 

See Also

Expand source code -Browse git +Browse git
def transitiveClosure(relation, reflexiveExceptions):
     """Produce the reflexive transitive closure of a relation.
@@ -1919,7 +1919,7 @@ 

See Also

Expand source code -Browse git +Browse git
def tupleEnum(tuples, start, end, limit, item, inNb):
     if start is None:
diff --git a/tf/advanced/highlight.html b/tf/advanced/highlight.html
index 0737ecc2c..0c252d5de 100644
--- a/tf/advanced/highlight.html
+++ b/tf/advanced/highlight.html
@@ -26,7 +26,7 @@ 

Module tf.advanced.highlight

Expand source code -Browse git +Browse git
from .search import runSearch
 
@@ -285,7 +285,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getEdgeHlAtt(e, pair, highlights):
     """Get the edge highlight attribute and style for an edge, only for pretty mode.
@@ -365,7 +365,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getHlAtt(app, n, highlights, isSlot):
     """Get the highlight attribute and style for a node for both pretty and plain modes.
@@ -452,7 +452,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getPassageHighlights(app, node, query, colorMap, cache):
     """Get the highlights for a whole passage.
@@ -545,7 +545,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getTupleHighlights(api, tup, highlights, colorMap, condenseType):
     """Get the highlights for a tuple of nodes.
diff --git a/tf/advanced/index.html b/tf/advanced/index.html
index 047b3bd99..8c4c93943 100644
--- a/tf/advanced/index.html
+++ b/tf/advanced/index.html
@@ -61,7 +61,7 @@ 

Advanced API

Expand source code -Browse git +Browse git
"""
 # Advanced API
diff --git a/tf/advanced/interchange.html b/tf/advanced/interchange.html
index c2a4d8857..393f2376b 100644
--- a/tf/advanced/interchange.html
+++ b/tf/advanced/interchange.html
@@ -33,7 +33,7 @@ 

Module tf.advanced.interchange

Expand source code -Browse git +Browse git
"""
 Produce exports of the whole dataset in different formats.
@@ -90,7 +90,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def interchangeApi(app):
     """Produce the interchange functions API.
diff --git a/tf/advanced/links.html b/tf/advanced/links.html
index cd737b414..16525b568 100644
--- a/tf/advanced/links.html
+++ b/tf/advanced/links.html
@@ -27,7 +27,7 @@ 

Module tf.advanced.links

Expand source code -Browse git +Browse git
"""
 Produce links to Text-Fabric data and links from nodes to web resources.
@@ -1089,7 +1089,7 @@ 

Returns

Expand source code -Browse git +Browse git
def flexLink(app, kind):
     """Produce documentation links that are heavily dependent on the backend.
@@ -1164,7 +1164,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def header(app, allMeta=False):
     """Generate a colofon of the app.
@@ -1274,7 +1274,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def linksApi(app, silent=SILENT_D):
     """Produce the link API.
@@ -1452,7 +1452,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def outLink(
     text, href, title=None, passage=None, clsName=None, target="_blank", asHtml=True
@@ -1524,7 +1524,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def provenanceLink(
     backend, org, repo, version, branch, commit, local, release, relative
@@ -1611,7 +1611,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def showProvenance(app, jobName="program code", author="program author"):
     """Shows the provenance that is normally displayed during data loading.
@@ -1694,7 +1694,7 @@ 

See Also

Expand source code -Browse git +Browse git
def webLink(
     app, n, text=None, clsName=None, urlOnly=False, _asString=False, _noUrl=False
diff --git a/tf/advanced/options.html b/tf/advanced/options.html
index acd8f2c84..ff8311c0d 100644
--- a/tf/advanced/options.html
+++ b/tf/advanced/options.html
@@ -388,7 +388,7 @@ 

Parameters

Expand source code -Browse git +Browse git
"""
 # Display Settings.
@@ -1138,7 +1138,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Options:
     def __init__(self, app):
@@ -1316,7 +1316,7 @@ 

Methods

Expand source code -Browse git +Browse git
def check(self, msg, options):
     app = self.app
@@ -1378,7 +1378,7 @@ 

Methods

Expand source code -Browse git +Browse git
def consume(self, options, *remove):
     return {o: options[o] for o in options if o not in remove}
@@ -1392,7 +1392,7 @@

Methods

Expand source code -Browse git +Browse git
def distill(self, options):
     defaults = self.defaults
@@ -1417,7 +1417,7 @@ 

Methods

Expand source code -Browse git +Browse git
def normalize(self, option, value):
     app = self.app
@@ -1482,7 +1482,7 @@ 

Methods

Expand source code -Browse git +Browse git
def reset(self, *options):
     app = self.app
@@ -1510,7 +1510,7 @@ 

Methods

Expand source code -Browse git +Browse git
def setup(self, *options, **overrides):
     current = self.current
@@ -1533,7 +1533,7 @@ 

Methods

Expand source code -Browse git +Browse git
class OptionsCurrent:
     def __init__(self, options):
@@ -1558,7 +1558,7 @@ 

Methods

Expand source code -Browse git +Browse git
def get(self, k, v=None):
     return getattr(self, k, v)
@@ -1572,7 +1572,7 @@

Methods

Expand source code -Browse git +Browse git
def set(self, k, v):
     self.allKeys.add(k)
diff --git a/tf/advanced/render.html b/tf/advanced/render.html
index e42f9a564..78938f2e5 100644
--- a/tf/advanced/render.html
+++ b/tf/advanced/render.html
@@ -40,7 +40,7 @@ 

Information shielding

Expand source code -Browse git +Browse git
"""
 # Render
@@ -782,7 +782,7 @@ 

Functions

Expand source code -Browse git +Browse git
def render(app, isPretty, n, _inTuple, _asString, explain, **options):
     """Renders a node, in plain or pretty mode.
diff --git a/tf/advanced/repo.html b/tf/advanced/repo.html
index 8f97589bf..477770400 100644
--- a/tf/advanced/repo.html
+++ b/tf/advanced/repo.html
@@ -292,7 +292,7 @@ 

Updating a corpus that you alre
Expand source code -Browse git +Browse git
"""
 # Auto downloading from a backend repository
@@ -2507,7 +2507,7 @@ 

Functions

Expand source code -Browse git +Browse git
def GLPERS(backend):
     return f"GL_{SHELL_VAR_RE.sub('_', backend.upper())}_PERS"
@@ -2521,7 +2521,7 @@

Functions

Expand source code -Browse git +Browse git
def bumpRelease(latestR, increase):
     if latestR:
@@ -2559,7 +2559,7 @@ 

Functions

Expand source code -Browse git +Browse git
def catchRemaining(e):
     eType = type(e)
@@ -2675,7 +2675,7 @@ 

Returns

Expand source code -Browse git +Browse git
def checkoutRepo(
     backend,
@@ -2853,7 +2853,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getFinalUrl(url):
     finalUrl = None
@@ -2910,7 +2910,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def publishRelease(app, increase, message=None, description=None):
     """Publishes a new data release for a TF dataset to GitHub.
@@ -3083,7 +3083,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def releaseData(
     backend,
@@ -3150,7 +3150,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Checkout:
     """Auxiliary class for `checkoutRepo`"""
@@ -4227,7 +4227,7 @@ 

Static methods

Expand source code -Browse git +Browse git
@staticmethod
 def fromString(string):
@@ -4264,7 +4264,7 @@ 

Static methods

Expand source code -Browse git +Browse git
@staticmethod
 def retrieve(url):
@@ -4295,7 +4295,7 @@ 

Static methods

Expand source code -Browse git +Browse git
@staticmethod
 def toString(commit, release, local, backend, source=None, dest=None):
@@ -4338,7 +4338,7 @@ 

Methods

Expand source code -Browse git +Browse git
def connect(self):
     conn = self.conn
@@ -4412,7 +4412,7 @@ 

Methods

Expand source code -Browse git +Browse git
def display(self, msg, msgPlain):
     inNb = self.inNb
@@ -4432,7 +4432,7 @@ 

Methods

Expand source code -Browse git +Browse git
def download(self):
     cChk = self.commitChk
@@ -4457,7 +4457,7 @@ 

Methods

Expand source code -Browse git +Browse git
def downloadCommit(self, commit, showErrors=True):
     c = self.getCommitObj(commit)
@@ -4481,7 +4481,7 @@ 

Methods

Expand source code -Browse git +Browse git
def downloadComplete(self):
     ssl._create_default_https_context = ssl._create_unverified_context
@@ -4570,7 +4570,7 @@ 

Methods

Expand source code -Browse git +Browse git
def downloadDir(self, commit, exclude=None, showErrors=False):
     g = self.repoOnline
@@ -4664,7 +4664,7 @@ 

Methods

Expand source code -Browse git +Browse git
def downloadRelease(self, release, showErrors=True):
     cChk = self.commitChk
@@ -4718,7 +4718,7 @@ 

Methods

Expand source code -Browse git +Browse git
def downloadZip(self, where, shiftUp=False, commit=None, showErrors=True):
     # commit parameter only supported for GitLab
@@ -4858,7 +4858,7 @@ 

Methods

Expand source code -Browse git +Browse git
def error(self, msg, newline=True):
     console(msg, error=True, newline=newline)
@@ -4872,7 +4872,7 @@

Methods

Expand source code -Browse git +Browse git
def fetchInfo(self):
     if self.isOffline():
@@ -4910,7 +4910,7 @@ 

Methods

Expand source code -Browse git +Browse git
def fixInfo(self):
     sDir = self.dirPathLocal
@@ -4934,7 +4934,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getCommit(self, commit):
     c = self.getCommitObj(commit)
@@ -4951,7 +4951,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getCommitFromObj(self, c):
     g = self.repoOnline
@@ -4971,7 +4971,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getCommitObj(self, commit):
     g = self.repoOnline
@@ -5024,7 +5024,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getRelease(self, release, showErrors=True):
     r = self.getReleaseObj(release, showErrors=showErrors)
@@ -5041,7 +5041,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getReleaseFromObj(self, r):
     g = self.repoOnline
@@ -5068,7 +5068,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getReleaseObj(self, release, showErrors=True):
     g = self.repoOnline
@@ -5118,7 +5118,7 @@ 

Methods

Expand source code -Browse git +Browse git
def info(self, msg, newline=True):
     silent = self.silent
@@ -5134,7 +5134,7 @@ 

Methods

Expand source code -Browse git +Browse git
def isClone(self):
     return self.local == "clone"
@@ -5148,7 +5148,7 @@

Methods

Expand source code -Browse git +Browse git
def isExpress(self):
     return self.local is None and not self.commitChk and self.releaseChk == ""
@@ -5162,7 +5162,7 @@

Methods

Expand source code -Browse git +Browse git
def isOffline(self):
     return self.local in {"clone", "local"}
@@ -5176,7 +5176,7 @@

Methods

Expand source code -Browse git +Browse git
def login(self):
     onGithub = self.onGithub
@@ -5258,7 +5258,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeSureLocal(self, attempt=False):
     _browse = self._browse
@@ -5466,7 +5466,7 @@ 

Methods

Expand source code -Browse git +Browse git
def possibleError(self, msg, showErrors, again=False, indent="\t", newline=False):
     if showErrors:
@@ -5485,7 +5485,7 @@ 

Methods

Expand source code -Browse git +Browse git
def readInfo(self):
     if fileExists(self.filePathLocal):
@@ -5507,7 +5507,7 @@ 

Methods

Expand source code -Browse git +Browse git
def warning(self, msg, newline=True):
     silent = self.silent
@@ -5523,7 +5523,7 @@ 

Methods

Expand source code -Browse git +Browse git
def writeInfo(self, release=None, commit=None):
     releaseOff = self.releaseOff if release is None else release
@@ -5547,7 +5547,7 @@ 

Methods

Expand source code -Browse git +Browse git
class Repo:
     """Auxiliary class for `releaseData`"""
@@ -5834,7 +5834,7 @@ 

Methods

Expand source code -Browse git +Browse git
def bumpRelease(self):
     increase = self.increase
@@ -5852,7 +5852,7 @@ 

Methods

Expand source code -Browse git +Browse git
def connect(self):
     backend = self.backend
@@ -5919,7 +5919,7 @@ 

Methods

Expand source code -Browse git +Browse git
def error(self, msg, newline=True):
     console(msg, error=True, newline=newline)
@@ -5933,7 +5933,7 @@

Methods

Expand source code -Browse git +Browse git
def fetchInfo(self):
     g = self.repoOnline
@@ -5959,7 +5959,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getCommit(self):
     c = self.getCommitObj()
@@ -5976,7 +5976,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getCommitObj(self):
     g = self.repoOnline
@@ -6005,7 +6005,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getRelease(self):
     r = self.getReleaseObj()
@@ -6022,7 +6022,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getReleaseObj(self):
     g = self.repoOnline
@@ -6050,7 +6050,7 @@ 

Methods

Expand source code -Browse git +Browse git
def info(self, msg, newline=True):
     silent = self.silent
@@ -6066,7 +6066,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeRelease(self):
     g = self.repoOnline
@@ -6105,7 +6105,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeZip(self):
     source = self.source
@@ -6142,7 +6142,7 @@ 

Methods

Expand source code -Browse git +Browse git
def newRelease(self):
     if not self.makeZip():
@@ -6178,7 +6178,7 @@ 

Methods

Expand source code -Browse git +Browse git
def uploadZip(self):
     newTag = self.newTag
@@ -6217,7 +6217,7 @@ 

Methods

Expand source code -Browse git +Browse git
def warning(self, msg, newline=True):
     silent = self.silent
diff --git a/tf/advanced/search.html b/tf/advanced/search.html
index 0bf8371c8..239d92aa7 100644
--- a/tf/advanced/search.html
+++ b/tf/advanced/search.html
@@ -27,7 +27,7 @@ 

Module tf.advanced.search

Expand source code -Browse git +Browse git
"""
 Calls from the advanced API to the Search API.
@@ -310,7 +310,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getQueryFeatures(exe):
     qnodes = getattr(exe, "qnodes", [])
@@ -350,7 +350,7 @@ 

Functions

Expand source code -Browse git +Browse git
def runSearch(app, query, cache):
     """A wrapper around the generic search interface of TF.
@@ -419,7 +419,7 @@ 

Functions

Expand source code -Browse git +Browse git
def runSearchCondensed(app, query, cache, condenseType):
     """A wrapper around the generic search interface of TF.
@@ -536,7 +536,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def search(
     app, query, silent=SILENT_D, sets=None, shallow=False, sort=True, limit=None
@@ -700,7 +700,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def searchApi(app):
     app.search = types.MethodType(search, app)
diff --git a/tf/advanced/sections.html b/tf/advanced/sections.html index 886f8a3a9..eff50c8a2 100644 --- a/tf/advanced/sections.html +++ b/tf/advanced/sections.html @@ -44,7 +44,7 @@

Structure

Expand source code -Browse git +Browse git
"""Section
 
@@ -298,7 +298,7 @@ 

Returns

Expand source code -Browse git +Browse git
def nodeFromSectionStr(app, sectionStr, lang="en"):
     """Find the node of a section string.
@@ -414,7 +414,7 @@ 

Returns

Expand source code -Browse git +Browse git
def sectionStrFromNode(app, n, lang="en", lastSlot=False, fillup=False):
     """The heading of a section to which a node belongs.
@@ -467,7 +467,7 @@ 

Returns

Expand source code -Browse git +Browse git
def sectionsApi(app):
     app.nodeFromSectionStr = types.MethodType(nodeFromSectionStr, app)
@@ -493,7 +493,7 @@ 

Returns

Expand source code -Browse git +Browse git
def structureStrFromNode(app, n):
     """The heading of a structure to which a node belongs.
diff --git a/tf/advanced/settings.html b/tf/advanced/settings.html
index 7cabc5e2f..d39d1a42d 100644
--- a/tf/advanced/settings.html
+++ b/tf/advanced/settings.html
@@ -832,7 +832,7 @@ 

writing

Expand source code -Browse git +Browse git
"""
 # App settings
@@ -2834,7 +2834,7 @@ 

Functions

Expand source code -Browse git +Browse git
def DOC_DEFAULTS(backend):
     return (
@@ -2858,7 +2858,7 @@ 

Functions

Expand source code -Browse git +Browse git
def compileFormatCls(app, specs, givenStyles):
     api = app.api
@@ -2902,7 +2902,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getDataDefaults(app, cfg, dKey, withApi):
     checker = Check(app, withApi)
@@ -2965,7 +2965,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getLevel(defaultLevel, givenInfo, isVerse):
     level = givenInfo.get("level", defaultLevel)
@@ -2985,7 +2985,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getTypeDefaults(app, cfg, dKey, withApi):
     if not withApi:
@@ -3308,7 +3308,7 @@ 

Functions

Expand source code -Browse git +Browse git
def setAppSpecs(app, cfg, reset=False):
     backend = app.backend
@@ -3409,7 +3409,7 @@ 

Functions

Expand source code -Browse git +Browse git
def setAppSpecsApi(app, cfg):
     api = app.api
@@ -3488,7 +3488,7 @@ 

See Also

Expand source code -Browse git +Browse git
def showContext(app, *keys, withComputed=True, asHtml=False):
     """Shows the *context* of the app `tf.advanced.app.App.context` in a pretty way.
@@ -3554,7 +3554,7 @@ 

Classes

Expand source code -Browse git +Browse git
class AppCurrent:
     def __init__(self, specs):
@@ -3584,7 +3584,7 @@ 

Methods

Expand source code -Browse git +Browse git
def get(self, k, v):
     return getattr(self, k, v)
@@ -3598,7 +3598,7 @@

Methods

Expand source code -Browse git +Browse git
def set(self, k, v):
     self.allKeys.add(k)
@@ -3613,7 +3613,7 @@ 

Methods

Expand source code -Browse git +Browse git
def update(self, specs):
     allKeys = self.allKeys
@@ -3633,7 +3633,7 @@ 

Methods

Expand source code -Browse git +Browse git
class Check:
     def __init__(self, app, withApi):
@@ -3836,7 +3836,7 @@ 

Methods

Expand source code -Browse git +Browse git
def checkGroup(self, cfg, defaults, dKey, postpone=set(), extra=None):
     self.cfg = cfg
@@ -3864,7 +3864,7 @@ 

Methods

Expand source code -Browse git +Browse git
def checkItem(self, cfg, dKey):
     self.cfg = cfg
@@ -3884,7 +3884,7 @@ 

Methods

Expand source code -Browse git +Browse git
def checkSetting(self, k, v, extra=None):
     app = self.app
@@ -4043,7 +4043,7 @@ 

Methods

Expand source code -Browse git +Browse git
def report(self):
     errors = self.errors
diff --git a/tf/advanced/tables.html b/tf/advanced/tables.html
index ef53d27c7..290bcff37 100644
--- a/tf/advanced/tables.html
+++ b/tf/advanced/tables.html
@@ -26,7 +26,7 @@ 

Module tf.advanced.tables

Expand source code -Browse git +Browse git
from ..core.text import DEFAULT_FORMAT
 from .helpers import getHeaders, RESULT
@@ -386,7 +386,7 @@ 

Functions

Expand source code -Browse git +Browse git
def compose(
     app,
@@ -502,7 +502,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def composeP(
     app,
@@ -603,7 +603,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def composeT(
     app,
diff --git a/tf/advanced/text.html b/tf/advanced/text.html
index 512236039..fd30fd9c7 100644
--- a/tf/advanced/text.html
+++ b/tf/advanced/text.html
@@ -26,7 +26,7 @@ 

Module tf.advanced.text

Expand source code -Browse git +Browse git
import types
 from textwrap import dedent
@@ -194,7 +194,7 @@ 

Functions

Expand source code -Browse git +Browse git
def showFormats(app):
     inNb = app.inNb
@@ -248,7 +248,7 @@ 

Returns

Expand source code -Browse git +Browse git
def specialCharacters(app, fmt=None, _browse=False):
     """Generate a widget for hard to type characters.
@@ -344,7 +344,7 @@ 

Returns

Expand source code -Browse git +Browse git
def textApi(app):
     api = app.api
diff --git a/tf/advanced/unravel.html b/tf/advanced/unravel.html
index b9770426a..27c8cfb06 100644
--- a/tf/advanced/unravel.html
+++ b/tf/advanced/unravel.html
@@ -30,7 +30,7 @@ 

Unravel

Expand source code -Browse git +Browse git
"""
 # Unravel
@@ -741,7 +741,7 @@ 

Returns

Expand source code -Browse git +Browse git
def unravel(app, n, isPlain=True, _inTuple=False, explain=False, **options):
     """Unravels a node and its graph-neighbourhood into a tree of fragments.
@@ -796,7 +796,7 @@ 

Classes

Expand source code -Browse git +Browse git
class NodeProps:
     """Node properties during plain() or pretty().
@@ -889,7 +889,7 @@ 

Instance variables

Expand source code -Browse git +Browse git
class OuterSettings:
     """Common properties during plain() and pretty().
@@ -971,7 +971,7 @@ 

Instance variables

Expand source code -Browse git +Browse git
class TreeInfo:
     """Tree properties during plain() or pretty().
@@ -999,7 +999,7 @@ 

Methods

Expand source code -Browse git +Browse git
def get(self, k, v):
     return getattr(self, k, v)
@@ -1013,7 +1013,7 @@

Methods

Expand source code -Browse git +Browse git
def update(self, **specs):
     for (k, v) in specs.items():
diff --git a/tf/advanced/volumes.html b/tf/advanced/volumes.html
index 10e2b2c6b..d58caf81b 100644
--- a/tf/advanced/volumes.html
+++ b/tf/advanced/volumes.html
@@ -27,7 +27,7 @@ 

Module tf.advanced.volumes

Expand source code -Browse git +Browse git
"""
 Produce links to Text-Fabric data and links from nodes to web resources.
@@ -138,7 +138,7 @@ 

Functions

Expand source code -Browse git +Browse git
def collect(app, *args, **kwargs):
     """Calls `tf.fabric.Fabric.collect` from an app object."""
@@ -158,7 +158,7 @@ 

Functions

Expand source code -Browse git +Browse git
def extract(app, *args, **kwargs):
     """Calls `tf.fabric.Fabric.extract` from an app object."""
@@ -185,7 +185,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getVolumes(app, *args, **kwargs):
     """Calls `tf.fabric.Fabric.getVolumes` from an app object.
@@ -227,7 +227,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def volumesApi(app):
     """Produce the volume support functions API.
diff --git a/tf/advanced/zipdata.html b/tf/advanced/zipdata.html
index 0eefc2ea9..6bcf35a67 100644
--- a/tf/advanced/zipdata.html
+++ b/tf/advanced/zipdata.html
@@ -26,7 +26,7 @@ 

Module tf.advanced.zipdata

Expand source code -Browse git +Browse git
import sys
 import types
@@ -462,7 +462,7 @@ 

Functions

Expand source code -Browse git +Browse git
def addCheckout(path):
     release = None
@@ -501,7 +501,7 @@ 

Functions

Expand source code -Browse git +Browse git
def collectFiles(base, path, results, zipBase=None):
     if zipBase is None:
@@ -549,7 +549,7 @@ 

EFFECT

Expand source code -Browse git +Browse git
def main(cargs=sys.argv):
     if len(cargs) < 2 or any(
@@ -628,7 +628,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def zipAll(app):
     """Gathers all data for a TF resource and zips it into one file.
@@ -764,7 +764,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def zipApi(app):
     """Produce the zip creation API.
@@ -810,7 +810,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def zipData(
     backend,
@@ -939,7 +939,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def zipDataPart(source, results):
     if not dirExists(source):
diff --git a/tf/app.html b/tf/app.html
index b30b133be..9999346da 100644
--- a/tf/app.html
+++ b/tf/app.html
@@ -34,7 +34,7 @@ 

Module tf.app

Expand source code -Browse git +Browse git
"""
 Make use of a corpus.
@@ -132,7 +132,7 @@ 

See Also

Expand source code -Browse git +Browse git
def use(appName, *args, backend=None, **kwargs):
     """Make use of a corpus.
diff --git a/tf/browser/command.html b/tf/browser/command.html
index 6c22fc8a5..1186d69c5 100644
--- a/tf/browser/command.html
+++ b/tf/browser/command.html
@@ -27,7 +27,7 @@ 

Module tf.browser.command

Expand source code -Browse git +Browse git
"""
 Command line argument processing
@@ -149,7 +149,7 @@ 

Functions

Expand source code -Browse git +Browse git
def argApp(cargs, simple):
     (appName, checkoutApp, dataLoc) = argParam(cargs)
@@ -203,7 +203,7 @@ 

Functions

Expand source code -Browse git +Browse git
def argNoweb(cargs):
     for arg in cargs:
@@ -220,7 +220,7 @@ 

Functions

Expand source code -Browse git +Browse git
def argParam(cargs):
     appName = None
@@ -260,7 +260,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getPort(slug):
     portOffset = crc32(slug.encode("utf8")) % 10000
diff --git a/tf/browser/index.html b/tf/browser/index.html
index 60debb547..14cec3322 100644
--- a/tf/browser/index.html
+++ b/tf/browser/index.html
@@ -27,7 +27,7 @@ 

Local TF-data and web server

Expand source code -Browse git +Browse git
"""
 # Local TF-data and web server
diff --git a/tf/browser/kernel.html b/tf/browser/kernel.html
index f0b7c35cc..d06042611 100644
--- a/tf/browser/kernel.html
+++ b/tf/browser/kernel.html
@@ -33,7 +33,7 @@ 

Kernel API

Expand source code -Browse git +Browse git
"""
 # Text-Fabric kernel
@@ -540,7 +540,7 @@ 

Functions

Expand source code -Browse git +Browse git
def makeTfKernel(app, appName):
     if not app.api:
diff --git a/tf/browser/ner/kernel.html b/tf/browser/ner/kernel.html
index 6d76bcfbc..7b3d30c7e 100644
--- a/tf/browser/ner/kernel.html
+++ b/tf/browser/ner/kernel.html
@@ -29,7 +29,7 @@ 

Module tf.browser.ner.kernel

Expand source code -Browse git +Browse git
"""TF backend processing.
 
@@ -342,7 +342,7 @@ 

Returns

Expand source code -Browse git +Browse git
def loadData(web, annoSet):
     """Loads data of the given annotation set from disk into memory.
diff --git a/tf/browser/ner/serve.html b/tf/browser/ner/serve.html
index 1b31f2ecf..ead1e7037 100644
--- a/tf/browser/ner/serve.html
+++ b/tf/browser/ner/serve.html
@@ -29,7 +29,7 @@ 

Module tf.browser.ner.serve

Expand source code -Browse git +Browse git
"""Main controller for Flask
 
@@ -118,6 +118,7 @@ 

Module tf.browser.ner.serve

sortKey = key break + sFind = templateData["sfind"] tSelectStart = templateData["tselectstart"] tSelectEnd = templateData["tselectend"] @@ -126,8 +127,18 @@

Module tf.browser.ner.serve

templateData["entities"] = composeE(app, setData, sortKey, sortDir) templateData["entitykinds"] = wrapEntityKinds(setData) templateData["entityheaders"] = wrapEntityHeaders(sortKey, sortDir) - templateData["query"] = composeQ(app, tSelectStart, tSelectEnd) - templateData["sentences"] = composeS(app, setData, tSelectStart, tSelectEnd) + ( + sFindRe, + templateData["find"], + templateData["findCtrl"], + templateData["query"], + templateData["queryCtrl"], + ) = composeQ(app, sFind, tSelectStart, tSelectEnd) + ( + templateData["findStat"], + templateData["queryStat"], + templateData["sentences"], + ) = composeS(app, setData, sFindRe, tSelectStart, tSelectEnd) templateData["messages"] = wrapMessages(messages) return render_template( @@ -157,7 +168,7 @@

Parameters

Expand source code -Browse git +Browse git
def serveNer(web):
     """Serves the NE annotation tool.
@@ -230,6 +241,7 @@ 

Parameters

sortKey = key break + sFind = templateData["sfind"] tSelectStart = templateData["tselectstart"] tSelectEnd = templateData["tselectend"] @@ -238,8 +250,18 @@

Parameters

templateData["entities"] = composeE(app, setData, sortKey, sortDir) templateData["entitykinds"] = wrapEntityKinds(setData) templateData["entityheaders"] = wrapEntityHeaders(sortKey, sortDir) - templateData["query"] = composeQ(app, tSelectStart, tSelectEnd) - templateData["sentences"] = composeS(app, setData, tSelectStart, tSelectEnd) + ( + sFindRe, + templateData["find"], + templateData["findCtrl"], + templateData["query"], + templateData["queryCtrl"], + ) = composeQ(app, sFind, tSelectStart, tSelectEnd) + ( + templateData["findStat"], + templateData["queryStat"], + templateData["sentences"], + ) = composeS(app, setData, sFindRe, tSelectStart, tSelectEnd) templateData["messages"] = wrapMessages(messages) return render_template( diff --git a/tf/browser/ner/servelib.html b/tf/browser/ner/servelib.html index bb6faa6fe..06c4f1a2f 100644 --- a/tf/browser/ner/servelib.html +++ b/tf/browser/ner/servelib.html @@ -27,7 +27,7 @@

Module tf.browser.ner.servelib

Expand source code -Browse git +Browse git
"""Auxiliary functions for serving the web page.
 """
@@ -65,6 +65,7 @@ 

Module tf.browser.ner.servelib

form["freqsort"] = request.form.get("freqsort", "") form["kindsort"] = request.form.get("kindsort", "") form["etxtsort"] = request.form.get("etxtsort", "") + form["sfind"] = request.form.get("sfind", "") tSelectStart = request.form.get("tselectstart", "") form["tselectstart"] = int(tSelectStart) if tSelectStart else None tSelectEnd = request.form.get("tselectend", "") @@ -116,7 +117,7 @@

Returns

Expand source code -Browse git +Browse git
def annoSets(annoDir):
     """Get the existing annotation sets.
@@ -151,7 +152,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getFormData(web):
     """Get form data.
@@ -181,6 +182,7 @@ 

Returns

form["freqsort"] = request.form.get("freqsort", "") form["kindsort"] = request.form.get("kindsort", "") form["etxtsort"] = request.form.get("etxtsort", "") + form["sfind"] = request.form.get("sfind", "") tSelectStart = request.form.get("tselectstart", "") form["tselectstart"] = int(tSelectStart) if tSelectStart else None tSelectEnd = request.form.get("tselectend", "") diff --git a/tf/browser/ner/tables.html b/tf/browser/ner/tables.html index fca6bf04e..4cddb9157 100644 --- a/tf/browser/ner/tables.html +++ b/tf/browser/ner/tables.html @@ -27,11 +27,12 @@

Module tf.browser.ner.tables

Expand source code -Browse git +Browse git
"""Module to compose tables of result data.
 """
 
+import re
 from textwrap import dedent
 
 
@@ -91,48 +92,76 @@ 

Module tf.browser.ner.tables

return "\n".join(html) -def tokenMatch(L, F, s, words): +def tokenMatch(L, F, T, s, findPatternRe, words): + """Checks whether a sentence matches a sequence of words. + + When we do the checking, we ignore empty words in the sentence. + + Parameters + ---------- + L, F, T: object + The TF APIs `F` and `L` for feature lookup and level-switching, and text + extraction + s: integer + The node of the sentence in question + words: list of string + The sequence of words that must be matched. They are all non-empty. + """ nWords = len(words) - sTokens = {t: F.str.v(t) or "" for t in L.d(s, otype="t")} + positions = set() + + if findPatternRe: + fits = False + sText = T.text(s) + + for match in findPatternRe.finditer(sText): + positions |= set(range(match.start(), match.end())) + fits = True + + sTokensAll = [(t, F.str.v(t)) or "" for t in L.d(s, otype="t")] + sTokens = [x for x in sTokensAll if x[1].strip()] + matches = set() if nWords: - sWords = set(sTokens.values()) + sWords = {w for (t, w) in sTokens} if any(w not in sWords for w in words): - return None + return (fits, None) nSTokens = len(sTokens) - for (i, (t, w)) in enumerate(sTokens.items()): + for (i, (t, w)) in enumerate(sTokens): if w != words[0]: continue - if nSTokens < i + nWords: - return None + if i + nWords - 1 >= nSTokens: + return (fits, None) match = True for (j, w) in enumerate(words[1:]): - if sTokens[t + j + 1] != w: + if sTokens[i + j + 1][1] != w: match = False break if match: - matches |= set(range(t, t + nWords)) + lastT = sTokens[i + nWords - 1][0] + matches |= set(range(t, lastT + 1)) if len(matches) == 0: - return None + return (fits, None) - return (sTokens, matches) + return (fits, (sTokensAll, matches, positions)) -def composeS(app, setData, tokenStart, tokenEnd): +def composeS(app, setData, findPatternRe, tokenStart, tokenEnd): """Compose a table of sentences. - Will filter the sentences by tokens if the `tokens` parameter is not None. - In that case, `tokens` should be an array of slots. - All sentences that contain the words of those slots will show up, + Will filter the sentences by tokens if the `tokenStart` and `tokenEnd` parameters + are both filled in. + In that case, we look up the text between those tokens and including. + All sentences that contain that text of those slots will show up, all other sentences will be left out. The matching slots will be highlighted. @@ -144,6 +173,10 @@

Module tf.browser.ner.tables

setData: dict The entity data of the chosen set. + findPattern: string + A search string that filters the sentences, before applying the search + for a word sequence. + tokenStart, tokenEnd: int or None Specify the start slot number and the end slot number of a sequence of tokens. Only sentences that contain this token sentence will be passed through, @@ -158,27 +191,52 @@

Module tf.browser.ner.tables

api = app.api L = api.L F = api.F + T = api.T html = [] words = [] if tokenStart and tokenEnd: for t in range(tokenStart, tokenEnd + 1): - words.append(F.str.v(t) or "") + word = F.str.v(t) + if word: + words.append(word) entitiesSlotIndex = setData.entitiesSlotIndex + nFind = 0 + nQuery = 0 + nTotal = 0 + for s in setData.sentences: - result = tokenMatch(L, F, s, words) + (fits, result) = tokenMatch(L, F, T, s, findPatternRe, words) + if fits: + nFind += 1 + if result is None: continue - (sTokens, matches) = result + nQuery += 1 + + if not fits: + continue + + nTotal += 1 + + (sTokens, matches, positions) = result ht = [] + ht.append(f"""<span class="sh">{app.sectionStrFromNode(s)}</span> """) + + charPos = 0 - for (t, w) in sTokens.items(): - queried = 'class="queried"' if t in matches else "" + for (t, w) in sTokens: after = F.after.v(t) or "" + lenW = len(w) + lenWa = len(w) + len(after) + found = any(charPos + i in positions for i in range(lenW)) + queried = t in matches + hlClasses = (" found " if found else "") + (" queried " if queried else "") + hlClass = f""" class="{hlClasses}" """ if hlClasses else "" info = entitiesSlotIndex.get(t, None) inEntity = False @@ -197,7 +255,7 @@

Module tf.browser.ner.tables

) ) inside = 'class="ei"' if inEntity else "" - ht.append(f"""<span {queried} {inside} t="{t}">{w}</span>{after}""") + ht.append(f"""<span {hlClass} {inside} t="{t}">{w}</span>{after}""") if info is not None: for item in info: @@ -205,18 +263,25 @@

Module tf.browser.ner.tables

(status, kind, freq) = item if not status: ht.append( - dedent( - f"""<span class="ee">{kind}</span></span>""" - ) + dedent(f"""<span class="ee">{kind}</span></span>""") ) + charPos += lenWa + ht = "".join(ht) html.append(f"""<div class="s">{ht}</div>""") - return "".join(html) + findStat = f"""<span class="stat">{nFind}</span>""" if findPatternRe else "" + if tokenStart and tokenEnd: + n = f"{nTotal} of {nQuery}" if findPatternRe else f"{nQuery}" + queryStat = f"""<span class="stat">{n}</span>""" + else: + queryStat = "" + + return (findStat, queryStat, "".join(html)) -def composeQ(app, tokenStart, tokenEnd): +def composeQ(app, findPattern, tokenStart, tokenEnd): """HTML for the query tokens. Parameters @@ -240,6 +305,43 @@

Module tf.browser.ner.tables

html = [] + findPattern = (findPattern or "").strip() + findPatternRe = None + errorMsg = "" + + if findPattern: + try: + findPatternRe = re.compile(findPattern) + except Exception as e: + errorMsg = str(e) + + html.append( + dedent( + f""" + <input type="text" + name="sfind" + id="sFind" + value="{findPattern}" + > + """ + ) + ) + + findCtrl = ( + dedent( + """ + <button type="submit" id="findClear">clear</button> + """ + ) + ) + + if errorMsg: + html.append("""</p><p class="error">{errorMsg}""") + + findHtml = "\n".join(html) + + html = [] + wordHtml = ( " ".join( f"""<span>{F.str.v(t) or ""}</span> """ @@ -267,16 +369,17 @@

Module tf.browser.ner.tables

) ) - html.append( + queryCtrl = ( dedent( """ - <button type="submit" id="queryFilter">filter</button> <button type="submit" id="queryClear">clear</button> + <button type="submit" id="queryFilter">filter</button> """ ) ) - return "\n".join(html)
+ queryHtml = "\n".join(html) + return (findPatternRe, findHtml, findCtrl, queryHtml, queryCtrl)
@@ -324,7 +427,7 @@

Returns

Expand source code -Browse git +Browse git
def composeE(app, setData, sortKey, sortDir):
     """Compose a table of entities with selection and sort controls.
@@ -383,7 +486,7 @@ 

Returns

-def composeQ(app, tokenStart, tokenEnd) +def composeQ(app, findPattern, tokenStart, tokenEnd)

HTML for the query tokens.

@@ -404,9 +507,9 @@

Returns

Expand source code -Browse git +Browse git -
def composeQ(app, tokenStart, tokenEnd):
+
def composeQ(app, findPattern, tokenStart, tokenEnd):
     """HTML for the query tokens.
 
     Parameters
@@ -430,6 +533,43 @@ 

Returns

html = [] + findPattern = (findPattern or "").strip() + findPatternRe = None + errorMsg = "" + + if findPattern: + try: + findPatternRe = re.compile(findPattern) + except Exception as e: + errorMsg = str(e) + + html.append( + dedent( + f""" + <input type="text" + name="sfind" + id="sFind" + value="{findPattern}" + > + """ + ) + ) + + findCtrl = ( + dedent( + """ + <button type="submit" id="findClear">clear</button> + """ + ) + ) + + if errorMsg: + html.append("""</p><p class="error">{errorMsg}""") + + findHtml = "\n".join(html) + + html = [] + wordHtml = ( " ".join( f"""<span>{F.str.v(t) or ""}</span> """ @@ -457,26 +597,28 @@

Returns

) ) - html.append( + queryCtrl = ( dedent( """ - <button type="submit" id="queryFilter">filter</button> <button type="submit" id="queryClear">clear</button> + <button type="submit" id="queryFilter">filter</button> """ ) ) - return "\n".join(html)
+ queryHtml = "\n".join(html) + return (findPatternRe, findHtml, findCtrl, queryHtml, queryCtrl)
-def composeS(app, setData, tokenStart, tokenEnd) +def composeS(app, setData, findPatternRe, tokenStart, tokenEnd)

Compose a table of sentences.

-

Will filter the sentences by tokens if the tokens parameter is not None. -In that case, tokens should be an array of slots. -All sentences that contain the words of those slots will show up, +

Will filter the sentences by tokens if the tokenStart and tokenEnd parameters +are both filled in. +In that case, we look up the text between those tokens and including. +All sentences that contain that text of those slots will show up, all other sentences will be left out. The matching slots will be highlighted.

Parameters

@@ -485,6 +627,9 @@

Parameters

The TF app of the corpus in question.
setData : dict
The entity data of the chosen set.
+
findPattern : string
+
A search string that filters the sentences, before applying the search +for a word sequence.
tokenStart, tokenEnd : int or None
Specify the start slot number and the end slot number of a sequence of tokens. Only sentences that contain this token sentence will be passed through, @@ -498,14 +643,15 @@

Returns

Expand source code -Browse git +Browse git -
def composeS(app, setData, tokenStart, tokenEnd):
+
def composeS(app, setData, findPatternRe, tokenStart, tokenEnd):
     """Compose a table of sentences.
 
-    Will filter the sentences by tokens if the `tokens` parameter is not None.
-    In that case, `tokens` should be an array of slots.
-    All sentences that contain the words of those slots will show up,
+    Will filter the sentences by tokens if the `tokenStart` and `tokenEnd` parameters
+    are both filled in.
+    In that case, we look up the text between those tokens and including.
+    All sentences that contain that text of those slots will show up,
     all other sentences will be left out.
     The matching slots will be highlighted.
 
@@ -517,6 +663,10 @@ 

Returns

setData: dict The entity data of the chosen set. + findPattern: string + A search string that filters the sentences, before applying the search + for a word sequence. + tokenStart, tokenEnd: int or None Specify the start slot number and the end slot number of a sequence of tokens. Only sentences that contain this token sentence will be passed through, @@ -531,27 +681,52 @@

Returns

api = app.api L = api.L F = api.F + T = api.T html = [] words = [] if tokenStart and tokenEnd: for t in range(tokenStart, tokenEnd + 1): - words.append(F.str.v(t) or "") + word = F.str.v(t) + if word: + words.append(word) entitiesSlotIndex = setData.entitiesSlotIndex + nFind = 0 + nQuery = 0 + nTotal = 0 + for s in setData.sentences: - result = tokenMatch(L, F, s, words) + (fits, result) = tokenMatch(L, F, T, s, findPatternRe, words) + if fits: + nFind += 1 + if result is None: continue - (sTokens, matches) = result + nQuery += 1 + + if not fits: + continue + + nTotal += 1 + + (sTokens, matches, positions) = result ht = [] + ht.append(f"""<span class="sh">{app.sectionStrFromNode(s)}</span> """) + + charPos = 0 - for (t, w) in sTokens.items(): - queried = 'class="queried"' if t in matches else "" + for (t, w) in sTokens: after = F.after.v(t) or "" + lenW = len(w) + lenWa = len(w) + len(after) + found = any(charPos + i in positions for i in range(lenW)) + queried = t in matches + hlClasses = (" found " if found else "") + (" queried " if queried else "") + hlClass = f""" class="{hlClasses}" """ if hlClasses else "" info = entitiesSlotIndex.get(t, None) inEntity = False @@ -570,7 +745,7 @@

Returns

) ) inside = 'class="ei"' if inEntity else "" - ht.append(f"""<span {queried} {inside} t="{t}">{w}</span>{after}""") + ht.append(f"""<span {hlClass} {inside} t="{t}">{w}</span>{after}""") if info is not None: for item in info: @@ -578,61 +753,106 @@

Returns

(status, kind, freq) = item if not status: ht.append( - dedent( - f"""<span class="ee">{kind}</span></span>""" - ) + dedent(f"""<span class="ee">{kind}</span></span>""") ) + charPos += lenWa + ht = "".join(ht) html.append(f"""<div class="s">{ht}</div>""") - return "".join(html)
+ findStat = f"""<span class="stat">{nFind}</span>""" if findPatternRe else "" + if tokenStart and tokenEnd: + n = f"{nTotal} of {nQuery}" if findPatternRe else f"{nQuery}" + queryStat = f"""<span class="stat">{n}</span>""" + else: + queryStat = "" + + return (findStat, queryStat, "".join(html))
-def tokenMatch(L, F, s, words) +def tokenMatch(L, F, T, s, findPatternRe, words)
-
+

Checks whether a sentence matches a sequence of words.

+

When we do the checking, we ignore empty words in the sentence.

+

Parameters

+
+
L, F, T : object
+
The TF APIs F and L for feature lookup and level-switching, and text +extraction
+
s : integer
+
The node of the sentence in question
+
words : list of string
+
The sequence of words that must be matched. They are all non-empty.
+
Expand source code -Browse git +Browse git -
def tokenMatch(L, F, s, words):
+
def tokenMatch(L, F, T, s, findPatternRe, words):
+    """Checks whether a sentence matches a sequence of words.
+
+    When we do the checking, we ignore empty words in the sentence.
+
+    Parameters
+    ----------
+    L, F, T: object
+        The TF APIs `F` and `L` for feature lookup and level-switching, and text
+        extraction
+    s: integer
+        The node of the sentence in question
+    words: list of string
+        The sequence of words that must be matched. They are all non-empty.
+    """
     nWords = len(words)
 
-    sTokens = {t: F.str.v(t) or "" for t in L.d(s, otype="t")}
+    positions = set()
+
+    if findPatternRe:
+        fits = False
+        sText = T.text(s)
+
+        for match in findPatternRe.finditer(sText):
+            positions |= set(range(match.start(), match.end()))
+            fits = True
+
+    sTokensAll = [(t, F.str.v(t)) or "" for t in L.d(s, otype="t")]
+    sTokens = [x for x in sTokensAll if x[1].strip()]
+
     matches = set()
 
     if nWords:
-        sWords = set(sTokens.values())
+        sWords = {w for (t, w) in sTokens}
 
         if any(w not in sWords for w in words):
-            return None
+            return (fits, None)
 
         nSTokens = len(sTokens)
 
-        for (i, (t, w)) in enumerate(sTokens.items()):
+        for (i, (t, w)) in enumerate(sTokens):
             if w != words[0]:
                 continue
-            if nSTokens < i + nWords:
-                return None
+            if i + nWords - 1 >= nSTokens:
+                return (fits, None)
 
             match = True
 
             for (j, w) in enumerate(words[1:]):
-                if sTokens[t + j + 1] != w:
+                if sTokens[i + j + 1][1] != w:
                     match = False
                     break
 
             if match:
-                matches |= set(range(t, t + nWords))
+                lastT = sTokens[i + nWords - 1][0]
+                matches |= set(range(t, lastT + 1))
 
         if len(matches) == 0:
-            return None
+            return (fits, None)
 
-    return (sTokens, matches)
+ return (fits, (sTokensAll, matches, positions))
diff --git a/tf/browser/ner/web.html b/tf/browser/ner/web.html index 441e862f1..44522db3a 100644 --- a/tf/browser/ner/web.html +++ b/tf/browser/ner/web.html @@ -26,7 +26,7 @@

Module tf.browser.ner.web

Expand source code -Browse git +Browse git
from flask import Blueprint, send_file
 
@@ -71,7 +71,7 @@ 

Functions

Expand source code -Browse git +Browse git
def factory(web):
     app = Blueprint(
diff --git a/tf/browser/ner/wrap.html b/tf/browser/ner/wrap.html
index 6e51cf50b..0c764b82e 100644
--- a/tf/browser/ner/wrap.html
+++ b/tf/browser/ner/wrap.html
@@ -27,7 +27,7 @@ 

Module tf.browser.ner.wrap

Expand source code -Browse git +Browse git
"""Wraps various pieces into HTML.
 """
@@ -235,7 +235,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def wrapAnnoSets(annoDir, chosenAnnoSet, annoSets):
     """HTML for the annoset chooser.
@@ -345,7 +345,7 @@ 

Returns

Expand source code -Browse git +Browse git
def wrapEntityHeaders(sortKey, sortDir):
     """HTML for the header of the entity table.
@@ -406,7 +406,7 @@ 

Returns

Expand source code -Browse git +Browse git
def wrapEntityKinds(setData):
     """HTML for the kinds of entities.
@@ -446,7 +446,7 @@ 

Returns

Expand source code -Browse git +Browse git
def wrapMessages(messages):
     """HTML for messages.
diff --git a/tf/browser/serve.html b/tf/browser/serve.html
index 360b6be4e..1e56ed7f5 100644
--- a/tf/browser/serve.html
+++ b/tf/browser/serve.html
@@ -32,7 +32,7 @@ 

Dress TF nodes up for serving
Expand source code -Browse git +Browse git
"""
 # Dress TF nodes up for serving on the web
@@ -524,7 +524,7 @@ 

Functions

Expand source code -Browse git +Browse git
def serveAll(web, anything):
     aContext = web.context
@@ -655,7 +655,7 @@ 

Functions

Expand source code -Browse git +Browse git
def serveDownload(web, jobOnly):
     aContext = web.context
@@ -753,7 +753,7 @@ 

Functions

Expand source code -Browse git +Browse git
def serveExport(web):
     aContext = web.context
@@ -827,7 +827,7 @@ 

Functions

Expand source code -Browse git +Browse git
def servePassage(web, getx):
     kernelApi = web.kernelApi
@@ -877,7 +877,7 @@ 

Functions

Expand source code -Browse git +Browse git
def serveQuery(web, getx, asDict=False):
     kernelApi = web.kernelApi
@@ -970,7 +970,7 @@ 

Functions

Expand source code -Browse git +Browse git
def serveTable(web, kind, getx=None, asDict=False):
     kernelApi = web.kernelApi
diff --git a/tf/browser/servelib.html b/tf/browser/servelib.html
index bdf928b3c..9b2e6c70a 100644
--- a/tf/browser/servelib.html
+++ b/tf/browser/servelib.html
@@ -34,7 +34,7 @@ 

About

Expand source code -Browse git +Browse git
"""
 # Common Server Related Functions
@@ -315,7 +315,7 @@ 

Functions

Expand source code -Browse git +Browse git
def batchAround(nResults, position, batch):
     halfBatch = int((batch + 1) / 2)
@@ -337,7 +337,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getAbout(colofon, header, provenance, form):
     return f"""
@@ -391,7 +391,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getFormData(interfaceDefaults):
     """Get form data.
@@ -552,7 +552,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getInt(x, default=1):
     if len(x) > 15:
@@ -570,7 +570,7 @@ 

Functions

Expand source code -Browse git +Browse git
def zipTables(csvs, tupleResultsX, queryResultsX, about, form):
     appName = form["appName"]
diff --git a/tf/browser/start.html b/tf/browser/start.html
index 1ebaf82ba..269b41503 100644
--- a/tf/browser/start.html
+++ b/tf/browser/start.html
@@ -77,7 +77,7 @@ 

Implementation notes

Expand source code -Browse git +Browse git
"""
 # Start the TF browser
@@ -298,7 +298,7 @@ 

Functions

Expand source code -Browse git +Browse git
def main(cargs=sys.argv[1:]):
     console(BANNER)
diff --git a/tf/browser/web.html b/tf/browser/web.html
index fd4b55d96..d555422c2 100644
--- a/tf/browser/web.html
+++ b/tf/browser/web.html
@@ -109,7 +109,7 @@ 

Javascript

Expand source code -Browse git +Browse git
"""
 # Web interface
@@ -417,7 +417,7 @@ 

Functions

Expand source code -Browse git +Browse git
def factory(web):
     app = Flask(__name__)
@@ -505,7 +505,7 @@ 

Functions

Expand source code -Browse git +Browse git
def main(cargs=sys.argv[1:]):
     args = []
@@ -604,7 +604,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Web:
     def __init__(self, kernelApi):
@@ -628,7 +628,7 @@ 

Methods

Expand source code -Browse git +Browse git
def console(self, msg):
     if self.debug:
diff --git a/tf/browser/wrap.html b/tf/browser/wrap.html
index 0e0d30e69..4c23ef676 100644
--- a/tf/browser/wrap.html
+++ b/tf/browser/wrap.html
@@ -28,7 +28,7 @@ 

Wrap material into HTML

Expand source code -Browse git +Browse git
"""
 # Wrap material into HTML
@@ -586,7 +586,7 @@ 

Functions

Expand source code -Browse git +Browse git
def pageLinks(nResults, position, spread=10):
     """Provide navigation links for results sets, big or small.
@@ -668,7 +668,7 @@ 

Functions

Expand source code -Browse git +Browse git
def passageLinks(passages, sec0Type, sec0, sec1, tillLevel):
     """Provide navigation links for passages,
@@ -720,7 +720,7 @@ 

Functions

Expand source code -Browse git +Browse git
def wrapColorMap(form):
     """Wraps the color map for query result highlighting into HTML.
@@ -805,7 +805,7 @@ 

Functions

Expand source code -Browse git +Browse git
def wrapEColorMap(form):
     """Wraps the edge color map for edge highlighting into HTML.
@@ -914,7 +914,7 @@ 

Functions

Expand source code -Browse git +Browse git
def wrapOptions(context, form):
     """Wraps the boolean options, including the app-specific ones, into HTML."""
@@ -954,7 +954,7 @@ 

Functions

Expand source code -Browse git +Browse git
def wrapProvenance(form, provenance, setNames):
     utc_offset_sec = time.altzone if time.localtime().tm_isdst else time.timezone
@@ -1130,7 +1130,7 @@ 

Returns

Expand source code -Browse git +Browse git
def wrapSelect(option, allowedValues, value, group, item, multiple):
     """Provides a buttoned chooser for the node types.
diff --git a/tf/capable.html b/tf/capable.html
index 03d8614f2..e938392f3 100644
--- a/tf/capable.html
+++ b/tf/capable.html
@@ -26,7 +26,7 @@ 

Module tf.capable

Expand source code -Browse git +Browse git
from textwrap import dedent
 from importlib import import_module
@@ -126,7 +126,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Capable:
     def __init__(self, *extras):
@@ -211,7 +211,7 @@ 

Methods

Expand source code -Browse git +Browse git
def can(self, extra):
     if extra in {"github", "gitlab"}:
@@ -242,7 +242,7 @@ 

Methods

Expand source code -Browse git +Browse git
def load(self, module):
     modules = self.modules
@@ -267,7 +267,7 @@ 

Methods

Expand source code -Browse git +Browse git
def loadFrom(self, module, *members):
     loaded = self.load(module)
@@ -288,7 +288,7 @@ 

Methods

Expand source code -Browse git +Browse git
def tryImport(self, *extras):
     backendProviders = self.backendProviders
diff --git a/tf/cheatsheet.html b/tf/cheatsheet.html
index dbd0e4b0f..cd1b7bcf2 100644
--- a/tf/cheatsheet.html
+++ b/tf/cheatsheet.html
@@ -1595,7 +1595,7 @@ 

Command-line tools

Expand source code -Browse git +Browse git
"""
 .. include:: docs/main/cheatsheet.md
diff --git a/tf/clean.html b/tf/clean.html
index f28b8c21b..d80c37d52 100644
--- a/tf/clean.html
+++ b/tf/clean.html
@@ -35,7 +35,7 @@ 

Clean

Expand source code -Browse git +Browse git
"""
 # Clean
@@ -202,7 +202,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def clean(tfd=True, backend=None, dry=True, specific=None, current=False):
     """Clean up older compressed .tfx files.
@@ -288,7 +288,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def err(msg):
     """Write to standard error output immediately."""
@@ -304,7 +304,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def out(msg):
     """Write to standard normal output immediately."""
diff --git a/tf/client/index.html b/tf/client/index.html
index 3c974acda..5c8c93a0d 100644
--- a/tf/client/index.html
+++ b/tf/client/index.html
@@ -52,7 +52,7 @@ 

Acknowledgements

Expand source code -Browse git +Browse git
"""
 # Layered Search
diff --git a/tf/client/make/build.html b/tf/client/make/build.html
index b03fc6da3..be3bf673f 100644
--- a/tf/client/make/build.html
+++ b/tf/client/make/build.html
@@ -76,7 +76,7 @@ 

Commands

Expand source code -Browse git +Browse git
"""
 # Usage
@@ -1499,7 +1499,7 @@ 

Functions

Expand source code -Browse git +Browse git
def console(*args, error=False):
     device = sys.stderr if error else sys.stdout
@@ -1515,7 +1515,7 @@ 

Functions

Expand source code -Browse git +Browse git
def invertMap(legend):
     return (
@@ -1535,7 +1535,7 @@ 

Functions

Expand source code -Browse git +Browse git
def main():
     Args = readArgsLegacy()
@@ -1596,7 +1596,7 @@ 

Functions

Expand source code -Browse git +Browse git
def makeSearchClients(dataset, folder, appFolder, backend=None, dataDir=None):
     DEBUG_STATE = "off"
@@ -1642,7 +1642,7 @@ 

Functions

Expand source code -Browse git +Browse git
def readArgsLegacy():
     class Args:
@@ -1755,7 +1755,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Make:
     def __init__(
@@ -2873,7 +2873,7 @@ 

Methods

Expand source code -Browse git +Browse git
def adjustDebug(self):
     C = self.C
@@ -2905,7 +2905,7 @@ 

Methods

Expand source code -Browse git +Browse git
def adjustVersion(self):
     C = self.C
@@ -2929,7 +2929,7 @@ 

Methods

Expand source code -Browse git +Browse git
def compress(self, data):
     sets = {}
@@ -2956,7 +2956,7 @@ 

Methods

Expand source code -Browse git +Browse git
def config(self):
     C = self.C
@@ -3236,7 +3236,7 @@ 

Methods

Expand source code -Browse git +Browse git
def doCommand(self, command):
     if command == "serve":
@@ -3273,7 +3273,7 @@ 

Methods

Expand source code -Browse git +Browse git
def dumpConfig(self):
     C = self.C
@@ -3299,7 +3299,7 @@ 

Methods

Expand source code -Browse git +Browse git
def dumpCorpus(self):
     C = self.C
@@ -3428,7 +3428,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getAllClients(self):
     C = self.C
@@ -3453,7 +3453,7 @@ 

Methods

Expand source code -Browse git +Browse git
def getDebugs(self):
     C = self.C
@@ -3486,7 +3486,7 @@ 

Methods

Expand source code -Browse git +Browse git
def importMake(self, c=None):
     client = self.client
@@ -3526,7 +3526,7 @@ 

Methods

Expand source code -Browse git +Browse git
def incVersion(self):
     C = self.C
@@ -3546,7 +3546,7 @@ 

Methods

Expand source code -Browse git +Browse git
def loadTf(self):
     C = self.C
@@ -3568,7 +3568,7 @@ 

Methods

Expand source code -Browse git +Browse git
def make(self):
     self.makeConfig()
@@ -3602,7 +3602,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeClient(self):
     """
@@ -3686,7 +3686,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeClientSettings(self):
     C = self.C
@@ -3830,7 +3830,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeCombined(self):
     C = self.C
@@ -3900,7 +3900,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeConfig(self):
     if not getattr(self, "A", None):
@@ -3918,7 +3918,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeCorpus(self):
     if not getattr(self, "A", None):
@@ -3945,7 +3945,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeHtml(self):
     C = self.C
@@ -4030,7 +4030,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeLinks(self):
     C = self.C
@@ -4061,7 +4061,7 @@ 

Methods

Expand source code -Browse git +Browse git
def publish(self, allClients=True):
     C = self.C
@@ -4094,7 +4094,7 @@ 

Methods

Expand source code -Browse git +Browse git
def replaceDebug(self, mask, value):
     def subVersion(match):
@@ -4111,7 +4111,7 @@ 

Methods

Expand source code -Browse git +Browse git
def serve(self):
     dataset = self.dataset
@@ -4154,7 +4154,7 @@ 

Methods

Expand source code -Browse git +Browse git
def ship(self, publish=True):
     self.adjustVersion()
@@ -4175,7 +4175,7 @@ 

Methods

Expand source code -Browse git +Browse git
def showDebug(self):
     debugInfo = self.getDebugs()
@@ -4195,7 +4195,7 @@ 

Methods

Expand source code -Browse git +Browse git
def showVersion(self):
     C = self.C
@@ -4212,7 +4212,7 @@ 

Methods

Expand source code -Browse git +Browse git
def zipApp(self):
     C = self.C
diff --git a/tf/client/make/gh.html b/tf/client/make/gh.html
index c932a0d41..e736158c7 100644
--- a/tf/client/make/gh.html
+++ b/tf/client/make/gh.html
@@ -26,7 +26,7 @@ 

Module tf.client.make.gh

Expand source code -Browse git +Browse git
import sys
 import os
@@ -203,7 +203,7 @@ 

Functions

Expand source code -Browse git +Browse git
def console(*args):
     sys.stdout.write(" ".join(args) + "\n")
@@ -218,7 +218,7 @@ 

Functions

Expand source code -Browse git +Browse git
def deploy(org, repo):
     (result, error) = _ghp_import()
diff --git a/tf/client/make/help.html b/tf/client/make/help.html
index e578ebaea..295ff6205 100644
--- a/tf/client/make/help.html
+++ b/tf/client/make/help.html
@@ -26,7 +26,7 @@ 

Module tf.client.make.help

Expand source code -Browse git +Browse git
HELP = """
 text-fabric-make [--backend={backend} {org}/{repo} serve {folder}
diff --git a/tf/client/make/index.html b/tf/client/make/index.html
index dc7207e67..ed02129ee 100644
--- a/tf/client/make/index.html
+++ b/tf/client/make/index.html
@@ -27,7 +27,7 @@ 

Module tf.client.make

Expand source code -Browse git +Browse git
"""
 The search app make program
diff --git a/tf/convert/addnlp.html b/tf/convert/addnlp.html
index 16d4a5acc..8f3ac4fe9 100644
--- a/tf/convert/addnlp.html
+++ b/tf/convert/addnlp.html
@@ -111,7 +111,7 @@ 

Examples

Expand source code -Browse git +Browse git
"""Add data from an NLP pipeline.
 
@@ -1673,7 +1673,7 @@ 

Functions

Expand source code -Browse git +Browse git
def main():
     (good, tasks, params, flags) = readArgs("tf-addnlp", HELP, TASKS, PARAMS, FLAGS)
@@ -1772,7 +1772,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class NLPipeline:
     def __init__(
@@ -3103,7 +3103,7 @@ 

Static methods

Expand source code -Browse git +Browse git
@staticmethod
 def lingo(*args, **kwargs):
@@ -3141,7 +3141,7 @@ 

Returns

Expand source code -Browse git +Browse git
def generatePlain(self):
     """Generates a plain text out of a data source.
@@ -3366,7 +3366,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getElementInfo(self, verbose=None):
     """Analyse the schema.
@@ -3485,7 +3485,7 @@ 

Returns

Expand source code -Browse git +Browse git
def ingest(
     self,
@@ -3997,7 +3997,7 @@ 

Returns

Expand source code -Browse git +Browse git
def ingestNlpOutput(self, positions, tkStream, sentenceStream, entityStream):
     """Ingests nlp output such as tokens in a dataset. Tokens become the new slots.
@@ -4305,7 +4305,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def loadApp(self, app=None, verbose=None):
     """Loads a given TF app or loads the TF app based on the working directory.
@@ -4409,7 +4409,7 @@ 

Returns

Expand source code -Browse git +Browse git
def task(
     self,
diff --git a/tf/convert/app/app.html b/tf/convert/app/app.html
index 08e4309a2..dab48a2a5 100644
--- a/tf/convert/app/app.html
+++ b/tf/convert/app/app.html
@@ -26,7 +26,7 @@ 

Module tf.convert.app.app

Expand source code -Browse git +Browse git
import types
 from tf.advanced.app import App
@@ -86,7 +86,7 @@ 

Functions

Expand source code -Browse git +Browse git
def fmt_layout(app, n, **kwargs):
     return app._wrapHtml(n)
@@ -139,7 +139,7 @@

Parameters

Expand source code -Browse git +Browse git
class TfApp(App):
     def __init__(app, *args, **kwargs):
diff --git a/tf/convert/app/index.html b/tf/convert/app/index.html
index bded5792c..f59a7b253 100644
--- a/tf/convert/app/index.html
+++ b/tf/convert/app/index.html
@@ -26,7 +26,7 @@ 

Module tf.convert.app

Expand source code -Browse git +Browse git
 
diff --git a/tf/convert/helpers.html b/tf/convert/helpers.html index 9a18a2e56..6e6417dca 100644 --- a/tf/convert/helpers.html +++ b/tf/convert/helpers.html @@ -26,7 +26,7 @@

Module tf.convert.helpers

Expand source code -Browse git +Browse git
import re
 from textwrap import dedent
@@ -722,7 +722,7 @@ 

Functions

Expand source code -Browse git +Browse git
def checkModel(kind, thisModel):
     modelDefault = PAGE_MODEL_DEFAULT if kind == "page" else SECTION_MODEL_DEFAULT
@@ -840,7 +840,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def lookupSource(cv, cur, specs):
     """Looks up information from the current XML stack.
@@ -952,7 +952,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def matchModel(properties, tag, atts):
     if tag == properties["element"]:
@@ -980,7 +980,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def setUp(kind):
     helpText = f"""
@@ -1033,7 +1033,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def tweakTrans(
     template,
diff --git a/tf/convert/index.html b/tf/convert/index.html
index 846652f59..63c36bd56 100644
--- a/tf/convert/index.html
+++ b/tf/convert/index.html
@@ -34,7 +34,7 @@ 

Various forms of data interchange

Expand source code -Browse git +Browse git
"""
 # Various forms of data interchange
diff --git a/tf/convert/mql.html b/tf/convert/mql.html
index 87f962d08..72f41f777 100644
--- a/tf/convert/mql.html
+++ b/tf/convert/mql.html
@@ -123,7 +123,7 @@ 

Enumeration types

Expand source code -Browse git +Browse git
"""
 # MQL
@@ -1184,7 +1184,7 @@ 

See Also

Expand source code -Browse git +Browse git
def exportMQL(app, mqlDb, exportDir=None):
     """Exports the complete TF dataset into single MQL database.
@@ -1301,7 +1301,7 @@ 

Returns

Expand source code -Browse git +Browse git
def importMQL(mqlFile, saveDir, silent=None, slotType=None, otext=None, meta=None):
     """Converts an MQL database dump to a Text-Fabric dataset.
@@ -1387,7 +1387,7 @@ 

Returns

Expand source code -Browse git +Browse git
def makeuni(match):
     """Make proper unicode of a text that contains byte escape codes
@@ -1405,7 +1405,7 @@ 

Returns

Expand source code -Browse git +Browse git
def parseMql(mqlFile, tmObj):
     info = tmObj.info
@@ -1619,7 +1619,7 @@ 

Returns

Expand source code -Browse git +Browse git
def tfFromData(tmObj, objectTypes, tables, nodeF, edgeF, slotType, otext, meta):
     info = tmObj.info
@@ -1748,7 +1748,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def tfFromMql(mqlFile, tmObj, slotType=None, otext=None, meta=None):
     """Generate TF from MQL
@@ -1780,7 +1780,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def uni(line):
     return uniscan.sub(makeuni, line)
@@ -1800,7 +1800,7 @@

Classes

Expand source code -Browse git +Browse git
class MQL:
     def __init__(self, app, mqlDb, exportDir, silent=SILENT_D):
@@ -2201,7 +2201,7 @@ 

Methods

Expand source code -Browse git +Browse git
def write(self):
     silent = self.silent
diff --git a/tf/convert/pandas.html b/tf/convert/pandas.html
index 7ea8628c7..bac00e1e0 100644
--- a/tf/convert/pandas.html
+++ b/tf/convert/pandas.html
@@ -56,7 +56,7 @@ 

Examples

Expand source code -Browse git +Browse git
"""
 # Export a TF dataset to a Pandas dataframe.
@@ -430,7 +430,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def exportPandas(app, inTypes=None, exportDir=None):
     """Export a currently loaded TF dataset to Pandas.
diff --git a/tf/convert/recorder.html b/tf/convert/recorder.html
index 90684d81e..58a3214f1 100644
--- a/tf/convert/recorder.html
+++ b/tf/convert/recorder.html
@@ -180,7 +180,7 @@ 

Usage

Expand source code -Browse git +Browse git
"""
 # Recorder
@@ -952,7 +952,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class Recorder:
     def __init__(self, api=None):
@@ -1617,7 +1617,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def add(self, string, empty=ZWJ):
     """Add text to the accumulator.
@@ -1655,7 +1655,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def end(self, n):
     """End a node.
@@ -1706,7 +1706,7 @@ 

Returns

Expand source code -Browse git +Browse git
    def iPositions(self, byType=False, logical=True, asEntries=False):
         """Get the character positions as mapping from nodes.
@@ -1812,7 +1812,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def makeFeatures(self, featurePath, headers=True):
     """Read a tab-separated file of annotation data and convert it to features.
@@ -1917,7 +1917,7 @@ 

Returns

Expand source code -Browse git +Browse git
    def positions(self, byType=False, simple=False):
         """Get the node positions as mapping from character positions.
@@ -2078,7 +2078,7 @@ 

Returns

Expand source code -Browse git +Browse git
def rPositions(self, acceptMaterialOutsideNodes=False):
     """Get the first textual position for each node
@@ -2247,7 +2247,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def read(self, textPath, posPath=None):
     """Read recorder information from disk.
@@ -2297,7 +2297,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def start(self, n):
     """Start a node.
@@ -2325,7 +2325,7 @@ 

Returns

Expand source code -Browse git +Browse git
def text(self):
     """Get the accumulated text.
@@ -2384,7 +2384,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def write(
     self, textPath, inverted=False, posPath=None, byType=False, optimize=True
diff --git a/tf/convert/tei.html b/tf/convert/tei.html
index 06e6ad3fa..52552579e 100644
--- a/tf/convert/tei.html
+++ b/tf/convert/tei.html
@@ -390,7 +390,7 @@ 

Examples

Expand source code -Browse git +Browse git
"""
 # TEI import
@@ -4643,7 +4643,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getRefs(tag, atts, xmlFile):
     refAtt = REFERENCING.get(tag, None)
@@ -4673,7 +4673,7 @@ 

Functions

Expand source code -Browse git +Browse git
def main():
     (good, tasks, params, flags) = readArgs(
@@ -4696,7 +4696,7 @@ 

Functions

Expand source code -Browse git +Browse git
def makeCssInfo():
     """Make the CSS info for the stylesheet."""
@@ -4844,7 +4844,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class TEI:
     def __init__(
@@ -8336,7 +8336,7 @@ 

Returns

Expand source code -Browse git +Browse git
def appTask(self, tokenBased=False):
     """Implementation of the "app" task.
@@ -8719,7 +8719,7 @@ 

Returns

Expand source code -Browse git +Browse git
def browseTask(self):
     """Implementation of the "browse" task.
@@ -8784,7 +8784,7 @@ 

Returns

Expand source code -Browse git +Browse git
def checkTask(self):
     """Implementation of the "check" task.
@@ -9468,7 +9468,7 @@ 

Returns

Expand source code -Browse git +Browse git
def convertTask(self):
     """Implementation of the "convert" task.
@@ -9541,7 +9541,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getConverter(self):
     """Initializes a converter.
@@ -9582,7 +9582,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getDirector(self):
     """Factory for the director function.
@@ -10986,7 +10986,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getParser(self):
     """Configure the lxml parser.
@@ -11017,7 +11017,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getSwitches(self, xmlPath):
     verbose = self.verbose
@@ -11084,7 +11084,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getXML(self):
     """Make an inventory of the TEI source files.
@@ -11182,7 +11182,7 @@ 

Returns

Expand source code -Browse git +Browse git
def loadTask(self):
     """Implementation of the "load" task.
@@ -11237,7 +11237,7 @@ 

Returns

Expand source code -Browse git +Browse git
def readSchemas(self):
     schemaDir = self.schemaDir
@@ -11321,7 +11321,7 @@ 

Returns

Expand source code -Browse git +Browse git
def task(
     self,
diff --git a/tf/convert/tf.html b/tf/convert/tf.html
index a854404bf..11d6adc04 100644
--- a/tf/convert/tf.html
+++ b/tf/convert/tf.html
@@ -27,7 +27,7 @@ 

Raw, unoptimized data from TF files<
Expand source code -Browse git +Browse git
"""
 # Raw, unoptimized data from TF files
@@ -413,7 +413,7 @@ 

Returns

Expand source code -Browse git +Browse git
def explode(inPath, outPath):
     """Explodes .tf files into non-optimized .tf files without metadata.
diff --git a/tf/convert/variants.html b/tf/convert/variants.html
index f15ad1d99..03b64c3f9 100644
--- a/tf/convert/variants.html
+++ b/tf/convert/variants.html
@@ -33,7 +33,7 @@ 

Variants

Expand source code -Browse git +Browse git
"""
 # Variants
@@ -670,7 +670,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class Variants:
     def __init__(self, cv, cur, baseWitness, sentType, checkPunc, addWarning, addError):
@@ -1208,7 +1208,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def checkSent(self, trans, punc):
     """Checks whether there is a "sentence" boundary at this point.
@@ -1255,7 +1255,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def collectWitnesses(self, node):
     """Collect all witnesses.
@@ -1324,7 +1324,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def endApp(self, tag):
     """Actions at the end of app- lem- and rdg-elements.
@@ -1384,7 +1384,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def endSent(self):
     """Ends a "sentence" if there is a current sentence.
@@ -1423,7 +1423,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def initApps(self):
     """Initialize app- processing and witness collection.
@@ -1452,7 +1452,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def resetApps(self):
     """Initialize app- and "sentence" processing.
@@ -1495,7 +1495,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def startApp(self, tag, atts):
     """Actions at the start of app- lem- and rdg-elements.
@@ -1576,7 +1576,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def startSent(self):
     """Starts a "sentence" if there is no current sentence.
diff --git a/tf/convert/walker.html b/tf/convert/walker.html
index f44dec0da..843412644 100644
--- a/tf/convert/walker.html
+++ b/tf/convert/walker.html
@@ -152,7 +152,7 @@ 

Action methods

Expand source code -Browse git +Browse git
"""
 # Walker
@@ -1927,7 +1927,7 @@ 

Classes

Expand source code -Browse git +Browse git
class CV:
     S = "slot"
@@ -3570,7 +3570,7 @@ 

Returns

Expand source code -Browse git +Browse git
def active(self, node):
     """Returns whether a node is currently active.
@@ -3622,7 +3622,7 @@ 

Returns

Expand source code -Browse git +Browse git
def activeNodes(self, nTypes=None):
     """The currently active nodes, i.e. the embedders.
@@ -3668,7 +3668,7 @@ 

Returns

Expand source code -Browse git +Browse git
def activeTypes(self):
     """The node types of the currently active nodes, i.e. the embedders.
@@ -3710,7 +3710,7 @@ 

Returns

Expand source code -Browse git +Browse git
def delete(self, node):
     """**deletes** a node.
@@ -3776,7 +3776,7 @@ 

Returns

Expand source code -Browse git +Browse git
def edge(self, nodeFrom, nodeTo, **features):
     """Add **edge features**.
@@ -3839,7 +3839,7 @@ 

Returns

Expand source code -Browse git +Browse git
def feature(self, node, **features):
     """Add **node features**.
@@ -3887,7 +3887,7 @@ 

Returns

Expand source code -Browse git +Browse git
def features(self):
     """Get the list of all features.
@@ -3933,7 +3933,7 @@ 

Returns

Expand source code -Browse git +Browse git
def get(self, feature, *args):
     """Retrieve feature values.
@@ -4003,7 +4003,7 @@ 

Returns

Expand source code -Browse git +Browse git
def link(self, node, slots):
     """Link the given, existing slots to a node.
@@ -4065,7 +4065,7 @@ 

Returns

Expand source code -Browse git +Browse git
def linked(self, node):
     """Returns the slots `ss` to which a node is currently linked.
@@ -4125,7 +4125,7 @@ 

Returns

Expand source code -Browse git +Browse git
def meta(self, feat, **metadata):
     """Add, modify, delete metadata fields of features.
@@ -4226,7 +4226,7 @@ 

Returns

Expand source code -Browse git +Browse git
def node(self, nType, slots=None):
     """Make a non-slot node and return the handle to it in `n`.
@@ -4340,7 +4340,7 @@ 

Returns

Expand source code -Browse git +Browse git
def occurs(self, feat):
     """Whether the feature `featureName` occurs in the resulting data so far.
@@ -4402,7 +4402,7 @@ 

Returns

Expand source code -Browse git +Browse git
def resume(self, node):
     """**resume** a node.
@@ -4476,7 +4476,7 @@ 

Returns

Expand source code -Browse git +Browse git
def slot(self, key=None):
     """Make a slot node and return the handle to it in `n`.
@@ -4563,7 +4563,7 @@ 

Returns

Expand source code -Browse git +Browse git
def stop(self, msg):
     """Stops the director. No further input will be read.
@@ -4616,7 +4616,7 @@ 

Returns

Expand source code -Browse git +Browse git
def terminate(self, node):
     """**terminate** a node.
@@ -4729,7 +4729,7 @@ 

Returns

Expand source code -Browse git +Browse git
def walk(
     self,
diff --git a/tf/convert/xml.html b/tf/convert/xml.html
index c46b77867..405ed3002 100644
--- a/tf/convert/xml.html
+++ b/tf/convert/xml.html
@@ -130,7 +130,7 @@ 

Examples

Expand source code -Browse git +Browse git
"""
 # XML import
@@ -1364,7 +1364,7 @@ 

Functions

Expand source code -Browse git +Browse git
def main():
     (good, tasks, params, flags) = readArgs(
@@ -1504,7 +1504,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class XML:
     def __init__(
@@ -2547,7 +2547,7 @@ 

Returns

Expand source code -Browse git +Browse git
def appTask(self, tokenBased=False):
     """Implementation of the "app" task.
@@ -2795,7 +2795,7 @@ 

Returns

Expand source code -Browse git +Browse git
def browseTask(self):
     """Implementation of the "browse" task.
@@ -2858,7 +2858,7 @@ 

Returns

Expand source code -Browse git +Browse git
def checkTask(self):
     """Implementation of the "check" task.
@@ -3101,7 +3101,7 @@ 

Returns

Expand source code -Browse git +Browse git
def convertTask(self):
     """Implementation of the "convert" task.
@@ -3132,7 +3132,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getConverter(self):
     """Initializes a converter.
@@ -3164,7 +3164,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getParser(self):
     """Configure the lxml parser.
@@ -3203,7 +3203,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getXML(self):
     """Make an inventory of the XML source files.
@@ -3263,7 +3263,7 @@ 

Returns

Expand source code -Browse git +Browse git
def loadTask(self):
     """Implementation of the "load" task.
@@ -3344,7 +3344,7 @@ 

Returns

Expand source code -Browse git +Browse git
def task(
     self,
diff --git a/tf/convert/xmlCustom.html b/tf/convert/xmlCustom.html
index e1effbc22..b380c15d6 100644
--- a/tf/convert/xmlCustom.html
+++ b/tf/convert/xmlCustom.html
@@ -26,7 +26,7 @@ 

Module tf.convert.xmlCustom

Expand source code -Browse git +Browse git
import re
 from lxml import etree
@@ -377,7 +377,7 @@ 

Returns

Expand source code -Browse git +Browse git
def convertTaskDefault(self):
     """Implementation of the "convert" task.
@@ -466,7 +466,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getDirector(self):
     """Factory for the director function.
diff --git a/tf/core/api.html b/tf/core/api.html
index 8455804be..3954d1820 100644
--- a/tf/core/api.html
+++ b/tf/core/api.html
@@ -28,7 +28,7 @@ 

The core API of TF.

Expand source code -Browse git +Browse git
"""
 # The core API of TF.
@@ -633,7 +633,7 @@ 

Functions

Expand source code -Browse git +Browse git
def addLocality(api):
     api.L = Locality(api)
@@ -648,7 +648,7 @@ 

Functions

Expand source code -Browse git +Browse git
def addNodes(api):
     api.N = Nodes(api)
@@ -663,7 +663,7 @@ 

Functions

Expand source code -Browse git +Browse git
def addOtype(api):
     setattr(api.F.otype, "all", tuple(o[0] for o in api.C.levels.data))
@@ -680,7 +680,7 @@ 

Functions

Expand source code -Browse git +Browse git
def addSearch(api, silent=SILENT_D):
     silent = silentConvert(silent)
@@ -696,7 +696,7 @@ 

Functions

Expand source code -Browse git +Browse git
def addText(api):
     api.T = Text(api)
@@ -717,7 +717,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Api:
     def __init__(self, TF):
@@ -1244,7 +1244,7 @@ 

Methods

Expand source code -Browse git +Browse git
def Call(self):
     """Returns a sorted list of all usable, loaded computed data names."""
@@ -1273,7 +1273,7 @@ 

Returns

Expand source code -Browse git +Browse git
def Cs(self, fName, warn=True):
     """Get the computed data sub API.
@@ -1315,7 +1315,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def Eall(self, warp=True):
     """Returns a sorted list of all usable, loaded edge feature names.
@@ -1350,7 +1350,7 @@ 

Returns

Expand source code -Browse git +Browse git
def Es(self, fName, warn=True):
     """Get the edge feature sub API.
@@ -1392,7 +1392,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def Fall(self, warp=True):
     """Returns a sorted list of all usable, loaded node feature names.
@@ -1427,7 +1427,7 @@ 

Returns

Expand source code -Browse git +Browse git
def Fs(self, fName, warn=True):
     """Get the node feature sub API.
@@ -1478,7 +1478,7 @@ 

Returns

Expand source code -Browse git +Browse git
def ensureLoaded(self, features):
     """Checks if features are loaded and if not loads them.
@@ -1546,7 +1546,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def footprint(self, recompute=False, bySize=True):
     """Computes the memory footprint in RAM of the loaded TF data.
@@ -1667,7 +1667,7 @@ 

Returns

Expand source code -Browse git +Browse git
def isLoaded(
     self, features=None, pretty=True, valueType=True, path=False, meta="description"
@@ -1945,7 +1945,7 @@ 

Notes

Expand source code -Browse git +Browse git
def makeAvailableIn(self, scope):
     """Exports members of the API to the global namespace.
diff --git a/tf/core/command.html b/tf/core/command.html
index 643050aaa..b39b784dd 100644
--- a/tf/core/command.html
+++ b/tf/core/command.html
@@ -26,7 +26,7 @@ 

Module tf.core.command

Expand source code -Browse git +Browse git
import sys
 from textwrap import dedent
@@ -242,7 +242,7 @@ 

Returns

Expand source code -Browse git +Browse git
def readArgs(
     command, descr, possibleTasks, possibleParams, possibleFlags, notInAll=set()
diff --git a/tf/core/computed.html b/tf/core/computed.html
index ea00e41c8..3ae48efc2 100644
--- a/tf/core/computed.html
+++ b/tf/core/computed.html
@@ -47,7 +47,7 @@ 

Precomputed data components

Expand source code -Browse git +Browse git
"""
 # Precomputed data components
@@ -112,7 +112,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Computed:
     """Provides access to precomputed data.
@@ -133,7 +133,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Computeds:
     pass
diff --git a/tf/core/data.html b/tf/core/data.html index 08f537c87..ed951ebd1 100644 --- a/tf/core/data.html +++ b/tf/core/data.html @@ -26,7 +26,7 @@

Module tf.core.data

Expand source code -Browse git +Browse git
import array
 import gc
@@ -769,7 +769,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Data:
     def __init__(
@@ -1460,7 +1460,7 @@ 

Methods

Expand source code -Browse git +Browse git
def cleanDataBin(self):
     fileRemove(self.binPath)
@@ -1477,7 +1477,7 @@

Methods

Expand source code -Browse git +Browse git
def load(self, metaOnly=False, silent=SILENT_D, _withGc=True):
     """Load a feature.
@@ -1598,7 +1598,7 @@ 

Methods

Expand source code -Browse git +Browse git
def save(self, overwrite=False, nodeRanges=False, silent=SILENT_D):
     silent = silentConvert(silent)
@@ -1621,7 +1621,7 @@ 

Methods

Expand source code -Browse git +Browse git
def unload(self):
     self.data = None
diff --git a/tf/core/edgefeature.html b/tf/core/edgefeature.html
index 1f3bbd6b2..a14d24bee 100644
--- a/tf/core/edgefeature.html
+++ b/tf/core/edgefeature.html
@@ -41,7 +41,7 @@ 

Module tf.core.edgefeature

Expand source code -Browse git +Browse git
"""
 Mappings from edges to values.
@@ -342,7 +342,7 @@ 

Classes

Expand source code -Browse git +Browse git
class EdgeFeature:
     """Provides access to (edge) feature data.
@@ -667,7 +667,7 @@ 

Notes

Expand source code -Browse git +Browse git
def b(self, n):
     """Query *both* incoming edges to, and outgoing edges from a node.
@@ -778,7 +778,7 @@ 

Returns

Expand source code -Browse git +Browse git
def f(self, n):
     """Get outgoing edges *from* a node.
@@ -843,7 +843,7 @@ 

Returns

Expand source code -Browse git +Browse git
def freqList(self, nodeTypesFrom=None, nodeTypesTo=None):
     """Frequency list of the values of this feature.
@@ -920,7 +920,7 @@ 

Returns

Expand source code -Browse git +Browse git
def items(self):
     """A generator that yields the items of the feature, seen as a mapping.
@@ -966,7 +966,7 @@ 

Returns

Expand source code -Browse git +Browse git
def t(self, n):
     """Get incoming edges *to* a node.
@@ -1013,7 +1013,7 @@ 

Returns

Expand source code -Browse git +Browse git
class EdgeFeatures:
     pass
diff --git a/tf/core/fabric.html b/tf/core/fabric.html index a4dbca72a..5c0593006 100644 --- a/tf/core/fabric.html +++ b/tf/core/fabric.html @@ -36,7 +36,7 @@

FabricCore

Expand source code -Browse git +Browse git
"""
 # FabricCore
@@ -1200,7 +1200,7 @@ 

Returns

Expand source code -Browse git +Browse git
class FabricCore:
     """Initialize the core API for a corpus.
@@ -2184,7 +2184,7 @@ 

See Also

Expand source code -Browse git +Browse git
def clearCache(self):
     """Clears the cache of compiled TF data.
@@ -2249,7 +2249,7 @@ 

Notes

Expand source code -Browse git +Browse git
def explore(self, silent=SILENT_D, show=True):
     """Makes categorization of all features in the dataset.
@@ -2358,7 +2358,7 @@ 

Returns

Expand source code -Browse git +Browse git
def load(self, features, add=False, silent=SILENT_D):
     """Loads features from disk into RAM memory.
@@ -2536,7 +2536,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def loadAll(self, silent=SILENT_D):
     """Load all loadable features.
@@ -2637,7 +2637,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def save(
     self,
diff --git a/tf/core/files.html b/tf/core/files.html
index dcfed0f7c..ba4056def 100644
--- a/tf/core/files.html
+++ b/tf/core/files.html
@@ -26,7 +26,7 @@ 

Module tf.core.files

Expand source code -Browse git +Browse git
import os
 from shutil import rmtree, copytree, copy
@@ -728,7 +728,7 @@ 

Functions

Expand source code -Browse git +Browse git
def abspath(path):
     return normpath(os.path.abspath(path))
@@ -755,7 +755,7 @@

Returns

Expand source code -Browse git +Browse git
def annotateDir(app, tool):
     """Return the working directory for a specific annotation tool.
@@ -830,7 +830,7 @@ 

Returns

Expand source code -Browse git +Browse git
def backendRep(be, kind, default=None):
     """Various backend dependent values.
@@ -948,7 +948,7 @@ 

Returns

Expand source code -Browse git +Browse git
def baseNm(path):
     """Get the file part of a file name."""
@@ -968,7 +968,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def chDir(directory):
     """Change to other directory.
@@ -996,7 +996,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def clearTree(path):
     """Remove all files from a directory, recursively, but leave subdirs.
@@ -1051,7 +1051,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dirContents(path):
     """Gets the contents of a directory.
@@ -1096,7 +1096,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dirCopy(pathSrc, pathDst):
     """Copies a directory if it exists as directory.
@@ -1116,7 +1116,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dirEmpty(target):
     target = normpath(target)
@@ -1131,7 +1131,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dirExists(path):
     """Whether a path exists as directory on the file system."""
@@ -1154,7 +1154,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dirMake(path):
     """Creates a directory if it does not already exist as directory."""
@@ -1171,7 +1171,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dirMove(pathSrc, pathDst):
     """Moves a directory if it exists as directory.
@@ -1192,7 +1192,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dirNm(path):
     """Get the directory part of a file name."""
@@ -1207,7 +1207,7 @@ 

Returns

Expand source code -Browse git +Browse git
def dirRemove(path):
     """Removes a directory if it exists as directory."""
@@ -1223,7 +1223,7 @@ 

Returns

Expand source code -Browse git +Browse git
def expandDir(obj, dirName):
     if dirName.startswith("~"):
@@ -1243,7 +1243,7 @@ 

Returns

Expand source code -Browse git +Browse git
def expanduser(path):
     nPath = normpath(path)
@@ -1262,7 +1262,7 @@ 

Returns

Expand source code -Browse git +Browse git
def fileCopy(pathSrc, pathDst):
     """Copies a file if it exists as file.
@@ -1282,7 +1282,7 @@ 

Returns

Expand source code -Browse git +Browse git
def fileExists(path):
     """Whether a path exists as file on the file system."""
@@ -1298,7 +1298,7 @@ 

Returns

Expand source code -Browse git +Browse git
def fileMove(pathSrc, pathDst):
     """Moves a file if it exists as file.
@@ -1318,7 +1318,7 @@ 

Returns

Expand source code -Browse git +Browse git
def fileRemove(path):
     """Removes a file if it exists as file."""
@@ -1339,7 +1339,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getCwd():
     """Get current directory.
@@ -1381,7 +1381,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getLocation(targetDir=None):
     """Get backend, org, repo, relative of directory.
@@ -1462,7 +1462,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def initTree(path, fresh=False, gentle=False):
     """Make sure a directory exists, optionally clean it.
@@ -1504,7 +1504,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def isDir(path):
     """Whether path exists and is a directory."""
@@ -1519,7 +1519,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def isFile(path):
     """Whether path exists and is a file."""
@@ -1534,7 +1534,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def normpath(path):
     if path is None:
@@ -1551,7 +1551,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def prefixSlash(path):
     """Prefix a / before a path if it is non-empty and not already starts with it."""
@@ -1566,7 +1566,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def setDir(obj):
     obj.homeDir = expanduser("~")
@@ -1582,7 +1582,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def splitPath(path):
     """Split a filename in a directory part and a file part."""
@@ -1597,7 +1597,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def unexpanduser(path):
     nPath = normpath(path)
diff --git a/tf/core/generic.html b/tf/core/generic.html
index c219b8884..3d2e0e70e 100644
--- a/tf/core/generic.html
+++ b/tf/core/generic.html
@@ -26,7 +26,7 @@ 

Module tf.core.generic

Expand source code -Browse git +Browse git
class AttrDict(dict):
     """Turn a dict into an object with attributes.
@@ -164,7 +164,7 @@ 

Returns

Expand source code -Browse git +Browse git
def deepAttrDict(info):
     """Turn a dict into an AttrDict, recursively.
@@ -220,7 +220,7 @@ 

Returns

Expand source code -Browse git +Browse git
def deepdict(info):
     """Turns an AttrDict into a dict, recursively.
@@ -281,7 +281,7 @@ 

Classes

Expand source code -Browse git +Browse git
class AttrDict(dict):
     """Turn a dict into an object with attributes.
@@ -339,7 +339,7 @@ 

Methods

Expand source code -Browse git +Browse git
def deepdict(self):
     return deepdict(self)
diff --git a/tf/core/helpers.html b/tf/core/helpers.html index dfb3a4255..c02196431 100644 --- a/tf/core/helpers.html +++ b/tf/core/helpers.html @@ -26,7 +26,7 @@

Module tf.core.helpers

Expand source code -Browse git +Browse git
import os
 import sys
@@ -718,7 +718,7 @@ 

Functions

Expand source code -Browse git +Browse git
def camel(name):
     if not name:
@@ -735,7 +735,7 @@ 

Functions

Expand source code -Browse git +Browse git
def check32():
     warn = ""
@@ -756,7 +756,7 @@ 

Functions

Expand source code -Browse git +Browse git
def cleanName(name):
     clean = "".join(c if c in VALID else "_" for c in name)
@@ -773,7 +773,7 @@ 

Functions

Expand source code -Browse git +Browse git
def collectFormats(config):
     featureSet = set()
@@ -810,7 +810,7 @@ 

Functions

Expand source code -Browse git +Browse git
def console(*msg, error=False, newline=True):
     msg = " ".join(m if type(m) is str else repr(m) for m in msg)
@@ -838,7 +838,7 @@ 

Functions

Expand source code -Browse git +Browse git
def deepSize(o, handlers={}, verbose=False, seen=None):
     """Returns the approximate memory footprint an object and all of its contents.
@@ -894,7 +894,7 @@ 

Functions

Expand source code -Browse git +Browse git
def fitemize(value):
     if not value:
@@ -914,7 +914,7 @@ 

Functions

Expand source code -Browse git +Browse git
def flattenToSet(features):
     theseFeatures = set()
@@ -951,7 +951,7 @@ 

Returns

Expand source code -Browse git +Browse git
def formatMeta(featureMeta):
     """Reorder meta data.
@@ -1000,7 +1000,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getAllRealFeatures(api):
     """Get all config features and all loaded node and edge features.
@@ -1045,7 +1045,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def htmlEsc(val, math=False):
     """Escape certain HTML characters by HTML entities.
@@ -1084,7 +1084,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def isClean(name):
     if name is None or len(name) == 0 or name[0] not in LETTER:
@@ -1100,7 +1100,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def isInt(val):
     try:
@@ -1118,7 +1118,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def itemize(string, sep=None):
     if not string:
@@ -1136,7 +1136,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def makeExamples(nodeList):
     lN = len(nodeList)
@@ -1159,7 +1159,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def makeIndex(data):
     inv = {}
@@ -1176,7 +1176,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def makeInverse(data):
     inverse = {}
@@ -1194,7 +1194,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def makeInverseVal(data):
     inverse = {}
@@ -1214,7 +1214,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def mathEsc(val):
     """Escape $ signs to `<span>$</span>`.
@@ -1242,7 +1242,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def mdEsc(val, math=False):
     """Escape certain markdown characters.
@@ -1282,7 +1282,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def mdhtmlEsc(val, math=False):
     """Escape certain Markdown characters by HTML entities or span elements.
@@ -1331,7 +1331,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def mergeDict(source, overrides):
     """Merge overrides into a source dictionary recursively.
@@ -1359,7 +1359,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def mergeDictOfSets(d1, d2):
     for n, ms in d2.items():
@@ -1377,7 +1377,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def nbytes(by):
     units = ["B", "KB", "MB", "GB", "TB"]
@@ -1398,7 +1398,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def pandasEsc(x):
     """Escapes the character that will be used as the Pandas quote char.
@@ -1423,7 +1423,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def project(iterableOfTuples, maxDimension):
     if maxDimension == 1:
@@ -1439,7 +1439,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def rangesFromList(nodeList):  # the list must be sorted
     curstart = None
@@ -1466,7 +1466,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def rangesFromSet(nodeSet):
     # ranges = []
@@ -1508,7 +1508,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def run(cmdline, workDir=None):
     """Runs a shell command and returns all relevant info.
@@ -1552,7 +1552,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def setFromSpec(spec):
     covered = set()
@@ -1578,7 +1578,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def setFromStr(x):
     if x is None:
@@ -1595,7 +1595,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def setFromValue(x, asInt=False):
     if x is None:
@@ -1620,7 +1620,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def specFromRanges(ranges):  # ranges must be normalized
     return ",".join(
@@ -1636,7 +1636,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def specFromRangesLogical(ranges):  # ranges must be normalized
     return [r[0] if r[0] == r[1] else [r[0], r[1]] for r in ranges]
@@ -1650,7 +1650,7 @@

Parameters

Expand source code -Browse git +Browse git
def tfFromValue(val):
     valTp = type(val)
@@ -1676,7 +1676,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def tsvEsc(x):
     """Escapes a double quote for strings to be included in TSV data.
@@ -1696,7 +1696,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def valueFromTf(tf):
     return "\\".join(
@@ -1722,7 +1722,7 @@ 

Returns

Expand source code -Browse git +Browse git
def var(envVar):
     """Retrieves the value of an environment variable.
@@ -1748,7 +1748,7 @@ 

Returns

Expand source code -Browse git +Browse git
def versionSort(x):
     parts = []
@@ -1769,7 +1769,7 @@ 

Returns

Expand source code -Browse git +Browse git
def wrapMessages(messages):
     if type(messages) is str:
@@ -1804,7 +1804,7 @@ 

Returns

Expand source code -Browse git +Browse git
def xmlEsc(val):
     """Escape certain HTML characters by XML entities.
diff --git a/tf/core/index.html b/tf/core/index.html
index f13a56652..f4ea8bc5e 100644
--- a/tf/core/index.html
+++ b/tf/core/index.html
@@ -39,7 +39,7 @@ 

Core API of TF

Expand source code -Browse git +Browse git
"""
 # Core API of TF
diff --git a/tf/core/locality.html b/tf/core/locality.html
index 0ec061871..7bdb2d5bc 100644
--- a/tf/core/locality.html
+++ b/tf/core/locality.html
@@ -27,7 +27,7 @@ 

Local navigation between nodes.

Expand source code -Browse git +Browse git
"""
 # Local navigation between nodes.
@@ -399,7 +399,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Locality:
     """Methods by which you can navigate from a node to its neighborhood.
@@ -737,7 +737,7 @@ 

Returns

Expand source code -Browse git +Browse git
def d(self, n, otype=None):
     """Produces an ordered tuple of *downward* nodes.
@@ -831,7 +831,7 @@ 

Returns

Expand source code -Browse git +Browse git
def i(self, n, otype=None):
     """Produces an ordered tuple of *intersecting* nodes
@@ -913,7 +913,7 @@ 

Returns

Expand source code -Browse git +Browse git
def n(self, n, otype=None):
     """Produces an ordered tuple of *next* nodes.
@@ -989,7 +989,7 @@ 

Returns

Expand source code -Browse git +Browse git
def p(self, n, otype=None):
     """Produces an ordered tuple of *previous* nodes.
@@ -1070,7 +1070,7 @@ 

Returns

Expand source code -Browse git +Browse git
def u(self, n, otype=None):
     """Produces an ordered tuple of *upward* nodes.
diff --git a/tf/core/nodefeature.html b/tf/core/nodefeature.html
index 0f4a27715..415fbe129 100644
--- a/tf/core/nodefeature.html
+++ b/tf/core/nodefeature.html
@@ -36,7 +36,7 @@ 

Mappings from nodes to values.

Expand source code -Browse git +Browse git
"""
 # Mappings from nodes to values.
@@ -192,7 +192,7 @@ 

Classes

Expand source code -Browse git +Browse git
class NodeFeature:
     """Provides access to (node) feature data.
@@ -334,7 +334,7 @@ 

Returns

Expand source code -Browse git +Browse git
def freqList(self, nodeTypes=None):
     """Frequency list of the values of this feature.
@@ -381,7 +381,7 @@ 

Returns

Expand source code -Browse git +Browse git
def items(self):
     """A generator that yields the items of the feature, seen as a mapping.
@@ -422,7 +422,7 @@ 

Returns

Expand source code -Browse git +Browse git
def s(self, val):
     """Query all nodes having a specified feature value.
@@ -470,7 +470,7 @@ 

Returns

Expand source code -Browse git +Browse git
def v(self, n):
     """Get the value of a feature for a node.
@@ -501,7 +501,7 @@ 

Returns

Expand source code -Browse git +Browse git
class NodeFeatures:
     pass
diff --git a/tf/core/nodes.html b/tf/core/nodes.html index 90b89cabd..f433d0850 100644 --- a/tf/core/nodes.html +++ b/tf/core/nodes.html @@ -76,7 +76,7 @@

Canonical Order

Expand source code -Browse git +Browse git
"""
 # Node organization
@@ -394,7 +394,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Nodes:
     def __init__(self, api):
@@ -705,7 +705,7 @@ 

Methods

Expand source code -Browse git +Browse git
def makeSortKeyChunk(self):
     api = self.api
@@ -797,7 +797,7 @@ 

See Also

Expand source code -Browse git +Browse git
def sortNodes(self, nodeSet):
     """Delivers a tuple of nodes sorted by the *canonical ordering*.
@@ -866,7 +866,7 @@ 

Returns

Expand source code -Browse git +Browse git
def walk(self, nodes=None, events=False):
     """Generates all nodes in the *canonical order*.
diff --git a/tf/core/oslotsfeature.html b/tf/core/oslotsfeature.html
index a63a85e31..00e55e43a 100644
--- a/tf/core/oslotsfeature.html
+++ b/tf/core/oslotsfeature.html
@@ -30,7 +30,7 @@ 

Access to oslots feature data. Expand source code -Browse git +Browse git
"""
 # Access to *oslots* feature data.
@@ -115,7 +115,7 @@ 

Classes

Expand source code -Browse git +Browse git
class OslotsFeature:
     def __init__(self, api, metaData, data):
@@ -191,7 +191,7 @@ 

Methods

Expand source code -Browse git +Browse git
def items(self):
     """A generator that yields the non-slot nodes with their slots.
@@ -230,7 +230,7 @@ 

Returns

Expand source code -Browse git +Browse git
def s(self, n):
     """Get the slots of a (non-slot) node.
diff --git a/tf/core/otypefeature.html b/tf/core/otypefeature.html
index c182604ad..2f5d6c919 100644
--- a/tf/core/otypefeature.html
+++ b/tf/core/otypefeature.html
@@ -30,7 +30,7 @@ 

Access to otype feature data.

Expand source code -Browse git +Browse git
"""
 # Access to *otype* feature data.
@@ -185,7 +185,7 @@ 

Classes

Expand source code -Browse git +Browse git
class OtypeFeature:
     def __init__(self, api, metaData, data):
@@ -346,7 +346,7 @@ 

Methods

Expand source code -Browse git +Browse git
def items(self):
     """As in `tf.core.nodefeature.NodeFeature.items`."""
@@ -387,7 +387,7 @@ 

Returns

Expand source code -Browse git +Browse git
def s(self, val):
     """Query all nodes having a specified node type.
@@ -447,7 +447,7 @@ 

Returns

Expand source code -Browse git +Browse git
def sInterval(self, val):
     """The interval of nodes having a specified node type.
@@ -493,7 +493,7 @@ 

Returns

Expand source code -Browse git +Browse git
def v(self, n):
     """Get the node type of a node.
diff --git a/tf/core/prepare.html b/tf/core/prepare.html
index c6b127c58..bb759ed98 100644
--- a/tf/core/prepare.html
+++ b/tf/core/prepare.html
@@ -34,7 +34,7 @@ 

Precompute data.

Expand source code -Browse git +Browse git
"""
 # Precompute data.
@@ -867,7 +867,7 @@ 

Notes

Expand source code -Browse git +Browse git
def boundary(info, error, otype, oslots, rank):
     """Computes boundary data.
@@ -966,7 +966,7 @@ 

Returns

Expand source code -Browse git +Browse git
def characters(info, error, otext, tFormats, *tFeats):
     """Computes character data.
@@ -1066,7 +1066,7 @@ 

Returns

Expand source code -Browse git +Browse git
def levDown(info, error, otype, levUp, rank):
     """Computes level-down data.
@@ -1165,7 +1165,7 @@ 

Warnings

Expand source code -Browse git +Browse git
def levUp(info, error, otype, oslots, rank):
     """Computes level-up data.
@@ -1314,7 +1314,7 @@ 

Notes

Expand source code -Browse git +Browse git
def levels(info, error, otype, oslots, otext):
     """Computes level data.
@@ -1465,7 +1465,7 @@ 

See Also

Expand source code -Browse git +Browse git
def order(info, error, otype, oslots, levels):
     """Computes order data for the canonical ordering.
@@ -1570,7 +1570,7 @@ 

Returns

Expand source code -Browse git +Browse git
def rank(info, error, otype, order):
     """Computes rank data.
@@ -1657,7 +1657,7 @@ 

Warnings

Expand source code -Browse git +Browse git
def sections(info, error, otype, oslots, otext, levUp, levels, *sFeats):
     """Computes section data.
@@ -1847,7 +1847,7 @@ 

Notes

Expand source code -Browse git +Browse git
def structure(info, error, otype, oslots, otext, rank, levUp, *sFeats):
     """Computes structure data.
diff --git a/tf/core/text.html b/tf/core/text.html
index 213b76055..e94fcdb95 100644
--- a/tf/core/text.html
+++ b/tf/core/text.html
@@ -363,7 +363,7 @@ 

The T.text() function

Expand source code -Browse git +Browse git
"""
 # Text API
@@ -1675,7 +1675,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Text:
     """Low level text representation, including section headings.
@@ -2624,7 +2624,7 @@ 

Notes

Expand source code -Browse git +Browse git
def down(self, n):
     """Gives the children of a structural node.
@@ -2696,7 +2696,7 @@ 

Notes

Expand source code -Browse git +Browse git
def headingFromNode(self, n):
     """Gives the full heading of a structural node.
@@ -2768,7 +2768,7 @@ 

Notes

Expand source code -Browse git +Browse git
def nodeFromHeading(self, head):
     """Gives the node corresponding to a heading, provided it exists.
@@ -2833,7 +2833,7 @@ 

Returns

Expand source code -Browse git +Browse git
def nodeFromSection(self, section, lang="en"):
     """Given a section tuple, return the node of it.
@@ -2917,7 +2917,7 @@ 

Warnings

Expand source code -Browse git +Browse git
def sectionFromNode(self, n, lastSlot=False, lang="en", fillup=False):
     """Gives the full heading of a section node.
@@ -3016,7 +3016,7 @@ 

Returns

Expand source code -Browse git +Browse git
def sectionTuple(self, n, lastSlot=False, fillup=False):
     """Gives a tuple of nodes that correspond to a section.
@@ -3121,7 +3121,7 @@ 

Returns

Expand source code -Browse git +Browse git
def splitDefaultFormat(self, tpl):
     api = self.api
@@ -3144,7 +3144,7 @@ 

Returns

Expand source code -Browse git +Browse git
def splitFormat(self, tpl):
     api = self.api
@@ -3178,7 +3178,7 @@ 

Returns

Expand source code -Browse git +Browse git
def structure(self, node=None):
     """Gives the structure of node and everything below it as a tuple.
@@ -3231,7 +3231,7 @@ 

Returns

Expand source code -Browse git +Browse git
    def structureInfo(self):
         """Gives a summary of how structure has been configured in the dataset.
@@ -3326,7 +3326,7 @@ 

Returns

Expand source code -Browse git +Browse git
def structurePretty(self, node=None, fullHeading=False):
     """Gives the structure of node and everything below it as a string.
@@ -3427,7 +3427,7 @@ 

Parameters

Expand source code -Browse git +Browse git
    def text(self, nodes, fmt=None, descend=None, func=None, explain=False, **kwargs):
         """Gives the text that corresponds to a bunch of nodes.
@@ -3652,7 +3652,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def top(self):
     """Gives all top-level structural nodes in the dataset.
@@ -3696,7 +3696,7 @@ 

Notes

Expand source code -Browse git +Browse git
def up(self, n):
     """Gives the parent of a structural node.
diff --git a/tf/core/timestamp.html b/tf/core/timestamp.html
index b7c1322a2..d270e6cbd 100644
--- a/tf/core/timestamp.html
+++ b/tf/core/timestamp.html
@@ -29,7 +29,7 @@ 

Timed messages

Expand source code -Browse git +Browse git
"""
 # Timed messages
@@ -409,7 +409,7 @@ 

Functions

Expand source code -Browse git +Browse git
def silentConvert(arg):
     if arg is None:
@@ -471,7 +471,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class Timestamp:
     def __init__(self, silent=SILENT_D, level=None):
@@ -773,7 +773,7 @@ 

Methods

Expand source code -Browse git +Browse git
def cache(self, _asString=False):
     if _asString:
@@ -819,7 +819,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def debug(self, msg, tm=True, nl=True, cache=0, force=False):
     """Sends a debug message to the standard output.
@@ -874,7 +874,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def error(self, msg, tm=True, nl=True, cache=0, force=True):
     """Sends an warning message to the standard error.
@@ -923,7 +923,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def indent(self, level=None, reset=False, _verbose=None):
     """Changes the indentation and timing of forthcoming messages.
@@ -991,7 +991,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def info(self, msg, tm=True, nl=True, cache=0, force=False):
     """Sends an informational message to the standard output.
@@ -1033,7 +1033,7 @@ 

Returns

Expand source code -Browse git +Browse git
def isSilent(self):
     """The current verbosity.
@@ -1054,7 +1054,7 @@ 

Returns

Expand source code -Browse git +Browse git
def raw_msg(self, msg, tm=True, nl=True, cache=0, error=False):
     # cache is a list: append to cache, do not output anything
@@ -1091,7 +1091,7 @@ 

Returns

Expand source code -Browse git +Browse git
def reset(self):
     self.log = []
@@ -1110,7 +1110,7 @@

Parameters

Expand source code -Browse git +Browse git
def setSilent(self, silent):
     """Set the verbosity.
@@ -1133,7 +1133,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def silentOff(self):
     """Enable informational messages."""
@@ -1155,7 +1155,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def silentOn(self, deep=False):
     """Suppress informational messages.
@@ -1198,7 +1198,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def warning(self, msg, tm=True, nl=True, cache=0, force=False):
     """Sends an warning message to the standard output.
diff --git a/tf/dataset/index.html b/tf/dataset/index.html
index da0a7d296..79f827820 100644
--- a/tf/dataset/index.html
+++ b/tf/dataset/index.html
@@ -38,7 +38,7 @@ 

Dataset operations

Expand source code -Browse git +Browse git
"""
 # Dataset operations
diff --git a/tf/dataset/modify.html b/tf/dataset/modify.html
index b4fafb620..e13cfbb85 100644
--- a/tf/dataset/modify.html
+++ b/tf/dataset/modify.html
@@ -43,7 +43,7 @@ 

Usage

Expand source code -Browse git +Browse git
"""
 # Modify
@@ -1828,7 +1828,7 @@ 

Example

Expand source code -Browse git +Browse git
def modify(
     location,
diff --git a/tf/dataset/nodemaps.html b/tf/dataset/nodemaps.html
index 5440c4357..149dfda5d 100644
--- a/tf/dataset/nodemaps.html
+++ b/tf/dataset/nodemaps.html
@@ -133,7 +133,7 @@ 

Usage

Expand source code -Browse git +Browse git
"""
 # Nodemaps
@@ -888,7 +888,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class Versions:
     def __init__(self, api, va, vb, silent=SILENT_D, slotMap=None):
@@ -1454,7 +1454,7 @@ 

Methods

Expand source code -Browse git +Browse git
    def caption(self, level, heading, good=None, newLine=True, continuation=False):
         silent = self.silent
@@ -1530,7 +1530,7 @@ 

Methods

Expand source code -Browse git +Browse git
def exploreNodeMapping(self, nodeType):
     va = self.va
@@ -1599,7 +1599,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getDiagnosis(self, node=None, label=None):
     """Show the diagnosis of a mapping.
@@ -1679,7 +1679,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def legend(self):
     """Show the labels and descriptions of the diagnosis classes.
@@ -1703,7 +1703,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def makeNodeMapping(self, nodeType):
     edge = self.edge
@@ -1794,7 +1794,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def makeVersionMapping(self):
     Fa = self.Fa
@@ -1850,7 +1850,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def migrateFeatures(self, featureNames, silent=None, location=None):
     """Migrate features from one version to another based on a node map.
@@ -2045,7 +2045,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def omapName(self):
     va = self.va
@@ -2061,7 +2061,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def writeMap(self):
     TFb = self.TFb
diff --git a/tf/fabric.html b/tf/fabric.html
index ab20101a6..a4187993d 100644
--- a/tf/fabric.html
+++ b/tf/fabric.html
@@ -47,7 +47,7 @@ 

Fabric

Expand source code -Browse git +Browse git
"""
 # Fabric
@@ -341,7 +341,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class Fabric(FabricCore):
     """Initialize the core API for a corpus.
@@ -567,7 +567,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def collect(
     self,
@@ -623,7 +623,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def extract(
     self, volumes=True, byTitle=True, silent=SILENT_D, overwrite=None, show=False
@@ -670,7 +670,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def getVolumes(self):
     """Lists available volumes within the dataset.
diff --git a/tf/index.html b/tf/index.html
index 8d626c60a..3c8ab3c1a 100644
--- a/tf/index.html
+++ b/tf/index.html
@@ -135,7 +135,7 @@ 

More resources

Expand source code -Browse git +Browse git
"""
 .. include:: docs/main/top.md
diff --git a/tf/lib.html b/tf/lib.html
index 3366c0aaf..ebf833a02 100644
--- a/tf/lib.html
+++ b/tf/lib.html
@@ -28,7 +28,7 @@ 

Uitility functions

Expand source code -Browse git +Browse git
"""
 # Uitility functions
@@ -232,7 +232,7 @@ 

Returns

Expand source code -Browse git +Browse git
def readList(source):
     """Reads list of tuples from a tsv file.
@@ -295,7 +295,7 @@ 

Returns

Expand source code -Browse git +Browse git
def readSets(source):
     """Reads a dictionary of named sets from file.
@@ -365,7 +365,7 @@ 

Returns

Expand source code -Browse git +Browse git
def writeList(data, dest, intCols=None):
     """Writes a list of tuples sets to a tsv file.
@@ -452,7 +452,7 @@ 

Returns

Expand source code -Browse git +Browse git
def writeSets(sets, dest):
     """Writes a dictionary of named sets to file.
diff --git a/tf/parameters.html b/tf/parameters.html
index ed587db0e..fed520f80 100644
--- a/tf/parameters.html
+++ b/tf/parameters.html
@@ -28,7 +28,7 @@ 

Parameters

Expand source code -Browse git +Browse git
"""
 # Parameters
diff --git a/tf/search/graph.html b/tf/search/graph.html
index 65bde46f4..e96e4adee 100644
--- a/tf/search/graph.html
+++ b/tf/search/graph.html
@@ -27,7 +27,7 @@ 

Graph oriented functions nee
Expand source code -Browse git +Browse git
"""
 # Graph oriented functions needed for search
@@ -285,7 +285,7 @@ 

Functions

Expand source code -Browse git +Browse git
def connectedness(searchExe):
     error = searchExe.api.TF.error
@@ -337,7 +337,7 @@ 

Functions

Expand source code -Browse git +Browse git
def displayEdge(searchExe, e, dir, nodesSeen):
     info = searchExe.api.TF.info
@@ -391,7 +391,7 @@ 

Functions

Expand source code -Browse git +Browse git
def displayNode(searchExe, q, pos2=False):
     info = searchExe.api.TF.info
@@ -419,7 +419,7 @@ 

Functions

Expand source code -Browse git +Browse git
def displayPlan(searchExe, details=False):
     if not searchExe.good:
@@ -492,7 +492,7 @@ 

Functions

Expand source code -Browse git +Browse git
def multiEdges(searchExe):
     relations = searchExe.relations
diff --git a/tf/search/index.html b/tf/search/index.html
index a0daef5d5..187d0148f 100644
--- a/tf/search/index.html
+++ b/tf/search/index.html
@@ -32,7 +32,7 @@ 

Guidance for searching

Expand source code -Browse git +Browse git
"""
 # Guidance for searching
diff --git a/tf/search/relations.html b/tf/search/relations.html
index 14a09cab6..d75931c78 100644
--- a/tf/search/relations.html
+++ b/tf/search/relations.html
@@ -27,7 +27,7 @@ 

Search by relational patter
Expand source code -Browse git +Browse git
"""
 # Search by relational patterns between nodes
@@ -1860,7 +1860,7 @@ 

Functions

Expand source code -Browse git +Browse git
def add_F_Relations(searchExe, varRels):
     relations = searchExe.relations
@@ -1941,7 +1941,7 @@ 

Functions

Expand source code -Browse git +Browse git
def add_K_Relations(searchExe, varRels):
     relations = searchExe.relations
@@ -1994,7 +1994,7 @@ 

Functions

Expand source code -Browse git +Browse git
def add_V_Relations(searchExe, varRels):
     relations = searchExe.relations
@@ -2059,7 +2059,7 @@ 

Functions

Expand source code -Browse git +Browse git
def basicRelations(searchExe, api):
     C = api.C
diff --git a/tf/search/search.html b/tf/search/search.html
index 5b8a386ba..6f9bb211d 100644
--- a/tf/search/search.html
+++ b/tf/search/search.html
@@ -27,7 +27,7 @@ 

Search (top-level)

Expand source code -Browse git +Browse git
"""
 # Search (top-level)
@@ -591,7 +591,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Search:
     """ """
@@ -1171,7 +1171,7 @@ 

Returns

Expand source code -Browse git +Browse git
def count(self, progress=None, limit=None):
     """Counts the results, with progress messages, optionally up to a limit.
@@ -1273,7 +1273,7 @@ 

Notes

Expand source code -Browse git +Browse git
def fetch(self, limit=None, _msgCache=False):
     """Retrieves query results, up to a limit.
@@ -1385,7 +1385,7 @@ 

Notes

Expand source code -Browse git +Browse git
def glean(self, tup):
     """Renders a single result into something human readable.
@@ -1471,7 +1471,7 @@ 

Returns

Expand source code -Browse git +Browse git
def relationsLegend(self):
     """Dynamic info about the basic relations that can be used in templates.
@@ -1542,7 +1542,7 @@ 

Notes

Expand source code -Browse git +Browse git
def search(
     self,
@@ -1652,7 +1652,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def showPlan(self, details=False):
     """Show the result of the latest study of a template.
@@ -1729,7 +1729,7 @@ 

See Also

Expand source code -Browse git +Browse git
def study(
     self,
@@ -1912,7 +1912,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def tweakPerformance(self, silent=SILENT_D, **kwargs):
     """Tweak parameters that influence the search process.
diff --git a/tf/search/searchexe.html b/tf/search/searchexe.html
index 0c660ac93..95f949887 100644
--- a/tf/search/searchexe.html
+++ b/tf/search/searchexe.html
@@ -27,7 +27,7 @@ 

Search execution management

Expand source code -Browse git +Browse git
"""
 # Search execution management
@@ -295,7 +295,7 @@ 

Classes

Expand source code -Browse git +Browse git
class SearchExe:
     perfDefaults = dict(
@@ -548,7 +548,7 @@ 

Static methods

Expand source code -Browse git +Browse git
@classmethod
 def setPerfParams(cls, params):
@@ -566,7 +566,7 @@ 

Methods

Expand source code -Browse git +Browse git
def count(self, progress=None, limit=None):
     TF = self.api.TF
@@ -632,7 +632,7 @@ 

Methods

Expand source code -Browse git +Browse git
def fetch(self, limit=None):
     api = self.api
@@ -678,7 +678,7 @@ 

Methods

Expand source code -Browse git +Browse git
def search(self, limit=None):
     api = self.api
@@ -698,7 +698,7 @@ 

Methods

Expand source code -Browse git +Browse git
def showOuterTemplate(self, _msgCache):
     error = self.api.TF.error
@@ -719,7 +719,7 @@ 

Methods

Expand source code -Browse git +Browse git
def showPlan(self, details=False):
     displayPlan(self, details=details)
@@ -733,7 +733,7 @@

Methods

Expand source code -Browse git +Browse git
def study(self, strategy=None):
     api = self.api
diff --git a/tf/search/semantics.html b/tf/search/semantics.html
index 782ae37a9..f8c84c04f 100644
--- a/tf/search/semantics.html
+++ b/tf/search/semantics.html
@@ -27,7 +27,7 @@ 

Semantics of search templates

Expand source code -Browse git +Browse git
"""
 # Semantics of search templates
@@ -561,7 +561,7 @@ 

Functions

Expand source code -Browse git +Browse git
def semantics(searchExe):
     if not searchExe.good:
diff --git a/tf/search/spin.html b/tf/search/spin.html
index a2aafbeb3..a4818f72f 100644
--- a/tf/search/spin.html
+++ b/tf/search/spin.html
@@ -27,7 +27,7 @@ 

Search preprocessing

Expand source code -Browse git +Browse git
"""
 # Search preprocessing
@@ -479,7 +479,7 @@ 

Functions

Expand source code -Browse git +Browse git
def estimateSpreads(searchExe, both=False):
     TRY_LIMIT_F = searchExe.perfParams["tryLimitFrom"]
@@ -557,7 +557,7 @@ 

Functions

Expand source code -Browse git +Browse git
def spinAtoms(searchExe):
     qnodes = searchExe.qnodes
@@ -573,7 +573,7 @@ 

Functions

Expand source code -Browse git +Browse git
def spinEdges(searchExe):
     qnodes = searchExe.qnodes
diff --git a/tf/search/stitch.html b/tf/search/stitch.html
index eff579e7b..43c2024e8 100644
--- a/tf/search/stitch.html
+++ b/tf/search/stitch.html
@@ -27,7 +27,7 @@ 

Search result finding

Expand source code -Browse git +Browse git
"""
 # Search result finding
@@ -932,7 +932,7 @@ 

Functions

Expand source code -Browse git +Browse git
def setStrategy(searchExe, strategy, keep=False):
     error = searchExe.api.TF.error
@@ -966,7 +966,7 @@ 

Functions

Expand source code -Browse git +Browse git
def stitch(searchExe):
     estimateSpreads(searchExe, both=True)
diff --git a/tf/search/syntax.html b/tf/search/syntax.html
index 228136459..baeb637d2 100644
--- a/tf/search/syntax.html
+++ b/tf/search/syntax.html
@@ -27,7 +27,7 @@ 

Syntax of search templates

Expand source code -Browse git +Browse git
"""
 # Syntax of search templates
@@ -725,7 +725,7 @@ 

Functions

Expand source code -Browse git +Browse git
def cleanParent(atom, parentName):
     (kind, data) = parseLine(atom)
@@ -743,7 +743,7 @@ 

Functions

Expand source code -Browse git +Browse git
def deContext(quantifier, parentName):
     (quKind, quTemplates, ln) = quantifier
@@ -799,7 +799,7 @@ 

Functions

Expand source code -Browse git +Browse git
def parseFeatureVals(searchExe, featStr, features, i, asEdge=False):
     if asEdge:
@@ -874,7 +874,7 @@ 

Functions

Expand source code -Browse git +Browse git
def parseLine(line):
     for x in [True]:
@@ -931,7 +931,7 @@ 

Functions

Expand source code -Browse git +Browse git
def syntax(searchExe):
     error = searchExe.api.TF.error
diff --git a/tf/tools/checkdiffs.html b/tf/tools/checkdiffs.html
index d3c06b18c..e15e18289 100644
--- a/tf/tools/checkdiffs.html
+++ b/tf/tools/checkdiffs.html
@@ -26,7 +26,7 @@ 

Module tf.tools.checkdiffs

Expand source code -Browse git +Browse git
import sys
 from itertools import zip_longest
@@ -125,7 +125,7 @@ 

Functions

Expand source code -Browse git +Browse git
def checkDiffs(path1, path2):
     """Check differences between runs of tf generations.
diff --git a/tf/tools/index.html b/tf/tools/index.html
index 7771f3f5e..f0c22edff 100644
--- a/tf/tools/index.html
+++ b/tf/tools/index.html
@@ -27,7 +27,7 @@ 

Module tf.tools

Expand source code -Browse git +Browse git
"""Various tools for workflows around Text-Fabric."""
diff --git a/tf/tools/myspacy.html b/tf/tools/myspacy.html index 052df9aac..0ecb38157 100644 --- a/tf/tools/myspacy.html +++ b/tf/tools/myspacy.html @@ -36,7 +36,7 @@

Module tf.tools.myspacy

Expand source code -Browse git +Browse git
"""Get words and tokens from a plain text with the help of Spacy.
 
@@ -460,7 +460,7 @@ 

Returns

Expand source code -Browse git +Browse git
def nlpOutput(text, lang="en", ner=False, parser=False):
     """Runs the Spacy NLP pipeline and delivers the results.
@@ -530,7 +530,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class Spacy:
     def __init__(self, lang=None, parser=False):
@@ -837,7 +837,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getEntities(self):
     """Get the resulting named entities.
@@ -898,7 +898,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getSentences(self):
     """Get the resulting sentences.
@@ -977,7 +977,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getTokens(self):
     """Get the resulting tokens.
@@ -1044,7 +1044,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def read(self, text):
     """Process a plain text.
diff --git a/tf/tools/nbconvert.html b/tf/tools/nbconvert.html
index 6d396fd59..cdda16770 100644
--- a/tf/tools/nbconvert.html
+++ b/tf/tools/nbconvert.html
@@ -26,7 +26,7 @@ 

Module tf.tools.nbconvert

Expand source code -Browse git +Browse git
import sys
 import re
@@ -300,7 +300,7 @@ 

Functions

Expand source code -Browse git +Browse git
def convertDir(inputDir, outputDir):
     inPlace = outputDir == "-"
@@ -401,7 +401,7 @@ 

Functions

Expand source code -Browse git +Browse git
def main():
     args = sys.argv[1:]
@@ -420,7 +420,7 @@ 

Functions

Expand source code -Browse git +Browse git
def makeIndex(inputDir):
     htmlStart = dedent(
@@ -528,7 +528,7 @@ 

Index Mode

Expand source code -Browse git +Browse git
def task(*args):
     inputDir = args[0]
diff --git a/tf/tools/pdocs.html b/tf/tools/pdocs.html
index 5e1d72707..70c83e42a 100644
--- a/tf/tools/pdocs.html
+++ b/tf/tools/pdocs.html
@@ -26,7 +26,7 @@ 

Module tf.tools.pdocs

Expand source code -Browse git +Browse git
import sys
 import os
@@ -267,7 +267,7 @@ 

Functions

Expand source code -Browse git +Browse git
def console(*args):
     sys.stderr.write(" ".join(args) + "\n")
@@ -282,7 +282,7 @@ 

Functions

Expand source code -Browse git +Browse git
def getCommand(pkg, asString=False):
     templateLoc = TEMPLATE_LOC.format(pkg)
@@ -307,7 +307,7 @@ 

Functions

Expand source code -Browse git +Browse git
def pdoc3(pkg):
     """Build the docs into site."""
@@ -336,7 +336,7 @@ 

Functions

Expand source code -Browse git +Browse git
def pdoc3serve(pkg):
     """Build the docs into site and serve them."""
@@ -359,7 +359,7 @@ 

Functions

Expand source code -Browse git +Browse git
def shipDocs(org, repo, pkg, pdoc=True):
     """Build the docs into site and ship them."""
diff --git a/tf/tools/release.html b/tf/tools/release.html
index 94b8414d6..01bcb6c67 100644
--- a/tf/tools/release.html
+++ b/tf/tools/release.html
@@ -26,7 +26,7 @@ 

Module tf.tools.release

Expand source code -Browse git +Browse git
import sys
 
@@ -105,7 +105,7 @@ 

Functions

Expand source code -Browse git +Browse git
def makeRelease(org, repo, tag, name, msg, silent=True):
     ghPerson = var("GHPERS")
diff --git a/tf/tools/xmlschema.html b/tf/tools/xmlschema.html
index 604a1bb99..d8103101a 100644
--- a/tf/tools/xmlschema.html
+++ b/tf/tools/xmlschema.html
@@ -102,7 +102,7 @@ 

As library

Expand source code -Browse git +Browse git
"""
 ## Meaningful information from XML schemas.
@@ -1135,7 +1135,7 @@ 

Functions

Expand source code -Browse git +Browse git
def main():
     A = Analysis()
@@ -1164,7 +1164,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class Analysis:
     @staticmethod
@@ -1586,7 +1586,7 @@ 

Static methods

Expand source code -Browse git +Browse git
@staticmethod
 def help():
@@ -1627,7 +1627,7 @@ 

Methods

Expand source code -Browse git +Browse git
def analyser(self, baseSchema, override):
     """Initializes an analyser for a schema.
@@ -1683,7 +1683,7 @@ 

Returns

Expand source code -Browse git +Browse git
def elements(self, baseSchema, override):
     """Makes a list of elements and their properties.
@@ -1746,7 +1746,7 @@ 

Returns

Expand source code -Browse git +Browse git
def fromrelax(self, baseSchema, schemaOut):
     """Converts a RELAX NG schema to an XSD schema.
@@ -1793,7 +1793,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getBaseSchema(self):
     """Get the base schema.
@@ -1835,7 +1835,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getElementInfo(self, baseSchema, overrides, verbose=None):
     """Analyse the schema and its overrides.
@@ -1892,7 +1892,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getModel(self, xmlContent):
     modelRe = self.modelRe
@@ -1929,7 +1929,7 @@ 

Returns

Expand source code -Browse git +Browse git
def run(self):
     """Run a task specified by arguments on the command line.
@@ -2000,7 +2000,7 @@ 

Returns

Expand source code -Browse git +Browse git
def setModes(self, debug=False, verbose=-1):
     """Sets debug and verbose modes.
@@ -2033,7 +2033,7 @@ 

Returns

Expand source code -Browse git +Browse git
def task(self, task, *args, verbose=None):
     """Implements a higher level task.
@@ -2121,7 +2121,7 @@ 

Returns

Expand source code -Browse git +Browse git
def validate(self, schema, instances):
     """Validates an instance against a schema.
@@ -2200,7 +2200,7 @@ 

Parameters

Expand source code -Browse git +Browse git
class Elements:
     types = set(
@@ -2712,7 +2712,7 @@ 

Returns

Expand source code -Browse git +Browse git
@staticmethod
 def eKey(x):
@@ -2748,7 +2748,7 @@ 

Returns

Expand source code -Browse git +Browse git
@staticmethod
 def repKind(k):
@@ -2763,7 +2763,7 @@ 

Returns

Expand source code -Browse git +Browse git
@staticmethod
 def repMixed(m):
@@ -2793,7 +2793,7 @@ 

Parameters

Expand source code -Browse git +Browse git
def configure(self, baseSchema, override=None, roots=None):
     """Configure for an XML schema and overrides
@@ -2932,7 +2932,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getDefs(self, asTsv=False):
     """Delivers the analysis results.
@@ -2991,7 +2991,7 @@ 

Returns

Expand source code -Browse git +Browse git
def interpret(self):
     """Reads the xsd and interprets the element definitions.
@@ -3157,7 +3157,7 @@ 

Returns

Expand source code -Browse git +Browse git
def resolve(self, definitions):
     """Resolve indirections in the definitions.
@@ -3226,7 +3226,7 @@ 

Returns

Expand source code -Browse git +Browse git
def showElems(self):
     """Shows the current state of definitions.
@@ -3263,7 +3263,7 @@ 

Returns

Expand source code -Browse git +Browse git
def showOverrides(self):
     """Shows the overriding definitions."""
@@ -3296,7 +3296,7 @@ 

Returns

Expand source code -Browse git +Browse git
def writeDefs(self, outputDir):
     """Writes the definitions of the elements to a file.
diff --git a/tf/volumes/collect.html b/tf/volumes/collect.html
index 8ccf28c3d..b39692c89 100644
--- a/tf/volumes/collect.html
+++ b/tf/volumes/collect.html
@@ -49,7 +49,7 @@ 

Usage

Expand source code -Browse git +Browse git
"""
 # Collect
@@ -1182,7 +1182,7 @@ 

Example

Expand source code -Browse git +Browse git
def collect(
     volumes,
diff --git a/tf/volumes/extract.html b/tf/volumes/extract.html
index 9d4545bd1..783cef345 100644
--- a/tf/volumes/extract.html
+++ b/tf/volumes/extract.html
@@ -35,7 +35,7 @@ 

Usage

Expand source code -Browse git +Browse git
"""
 # Extract
@@ -936,7 +936,7 @@ 

Example

Expand source code -Browse git +Browse git
def extract(
     workLocation,
@@ -1612,7 +1612,7 @@ 

Returns

Expand source code -Browse git +Browse git
def getVolumes(volumesLocation):
     """Lists volumes of a work that exist in a given directory.
diff --git a/tf/volumes/index.html b/tf/volumes/index.html
index 21112330e..9d754fbbe 100644
--- a/tf/volumes/index.html
+++ b/tf/volumes/index.html
@@ -33,7 +33,7 @@ 

Volume operations

Expand source code -Browse git +Browse git
"""
 # Volume operations
diff --git a/tf/writing/arabic.html b/tf/writing/arabic.html
index aebd41d5e..01c482e74 100644
--- a/tf/writing/arabic.html
+++ b/tf/writing/arabic.html
@@ -1014,7 +1014,7 @@ 

See also

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/writing/arabic.md
diff --git a/tf/writing/greek.html b/tf/writing/greek.html
index 9d6a15bb3..3fb16dab4 100644
--- a/tf/writing/greek.html
+++ b/tf/writing/greek.html
@@ -28,7 +28,7 @@ 

Greek characters

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/writing/greek.md
diff --git a/tf/writing/hebrew.html b/tf/writing/hebrew.html
index 8a247a6c1..486d3448f 100644
--- a/tf/writing/hebrew.html
+++ b/tf/writing/hebrew.html
@@ -1238,7 +1238,7 @@ 

Text-critical

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/writing/hebrew.md
diff --git a/tf/writing/index.html b/tf/writing/index.html
index 581d5c382..cf31fefeb 100644
--- a/tf/writing/index.html
+++ b/tf/writing/index.html
@@ -70,7 +70,7 @@ 

Writing systems support

Expand source code -Browse git +Browse git
"""
 # Writing systems support
diff --git a/tf/writing/neoaramaic.html b/tf/writing/neoaramaic.html
index 1ca72382c..e6df15144 100644
--- a/tf/writing/neoaramaic.html
+++ b/tf/writing/neoaramaic.html
@@ -143,7 +143,7 @@ 

Consonant phonem
Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/writing/neoaramaic.md
diff --git a/tf/writing/syriac.html b/tf/writing/syriac.html
index 5b0b49a4c..1bf6816aa 100644
--- a/tf/writing/syriac.html
+++ b/tf/writing/syriac.html
@@ -603,7 +603,7 @@ 

Pericope markers

Expand source code -Browse git +Browse git
"""
 .. include:: ../docs/writing/syriac.md
diff --git a/tf/writing/transcription.html b/tf/writing/transcription.html
index 374eb7cf6..b0803ed5a 100644
--- a/tf/writing/transcription.html
+++ b/tf/writing/transcription.html
@@ -49,7 +49,7 @@ 

cld Neo Aramaic

Expand source code -Browse git +Browse git
"""
 # Transcription
@@ -1080,7 +1080,7 @@ 

Classes

Expand source code -Browse git +Browse git
class Transcription:
     """Conversion between unicode and various transcriptions.
@@ -2194,7 +2194,7 @@ 

Methods

Expand source code -Browse git +Browse git
def asciiFromArabic(word):
     return "".join(Transcription.arabicTransAscii.get(x, x) for x in word)
@@ -2208,7 +2208,7 @@

Methods

Expand source code -Browse git +Browse git
def can_from_syriac(self, word):
     return all(c in self.syriac_mappingi for c in word if c != " ")
@@ -2222,7 +2222,7 @@

Methods

Expand source code -Browse git +Browse git
def can_to_syriac(self, word):
     return all(
@@ -2245,7 +2245,7 @@ 

Output

Expand source code -Browse git +Browse git
def from_arabic(word):
     """
@@ -2277,7 +2277,7 @@ 

Output

Expand source code -Browse git +Browse git
def from_hebrew(self, word):
     """
@@ -2311,7 +2311,7 @@ 

Output

Expand source code -Browse git +Browse git
def from_syriac(self, word):
     """
@@ -2338,7 +2338,7 @@ 

Output

Expand source code -Browse git +Browse git
def latinFromArabic(word):
     return "".join(Transcription.arabicTransLatin.get(x, x) for x in word)
@@ -2364,7 +2364,7 @@

Output

Expand source code -Browse git +Browse git
def ph_simplify(pword):
     """
@@ -2399,7 +2399,7 @@ 

Output

Expand source code -Browse git +Browse git
def quranFromArabic(word):
     return "".join(Transcription.arabicTransQuran.get(x, x) for x in word)
@@ -2413,7 +2413,7 @@

Output

Expand source code -Browse git +Browse git
def standardFromArabic(word):
     return "".join(Transcription.arabicTransStandard.get(x, x) for x in word)
@@ -2442,7 +2442,7 @@

Output

Expand source code -Browse git +Browse git
def suffix_and_finales(word):
     """
@@ -2522,7 +2522,7 @@ 

Output

Expand source code -Browse git +Browse git
def suppress_space(word):
     """
@@ -2554,7 +2554,7 @@ 

Output

Expand source code -Browse git +Browse git
def sycSplitPunc(self):
     pass
@@ -2573,7 +2573,7 @@

Output

Expand source code -Browse git +Browse git
def to_arabic(word):
     """
@@ -2607,7 +2607,7 @@ 

Output

Expand source code -Browse git +Browse git
def to_etcbc_c(word):
     """
@@ -2650,7 +2650,7 @@ 

Output

Expand source code -Browse git +Browse git
def to_etcbc_v(word):
     """
@@ -2684,7 +2684,7 @@ 

Output

Expand source code -Browse git +Browse git
def to_hebrew(word):
     """
@@ -2720,7 +2720,7 @@ 

Output

Expand source code -Browse git +Browse git
def to_hebrew_c(word):
     """
@@ -2756,7 +2756,7 @@ 

Output

Expand source code -Browse git +Browse git
def to_hebrew_v(word):
     """
@@ -2792,7 +2792,7 @@ 

Output

Expand source code -Browse git +Browse git
def to_hebrew_x(word):
     """
@@ -2826,7 +2826,7 @@ 

Output

Expand source code -Browse git +Browse git
def to_syriac(self, word):
     """
diff --git a/tf/zip.html b/tf/zip.html
index fdc512180..41967047a 100644
--- a/tf/zip.html
+++ b/tf/zip.html
@@ -26,7 +26,7 @@ 

Module tf.zip

Expand source code -Browse git +Browse git
from .advanced.app import loadApp
 from .core.timestamp import DEEP
@@ -80,7 +80,7 @@ 

Functions

Expand source code -Browse git +Browse git
def main():
     """Makes a complete zip file.