Download latest PDF - Read the Docs

Transcript
educe Documentation, Release 0.1
• updates (Updates) –
Returns span
Return type Span
See also:
shift_char() for details on how this works
educe.stac.oneoff.weave.src_gaps(matches)
Given matches between the source and target document, return the spaces between these matches as source
offset and size (a bit like the matches). Note that we assume that the target document text is a subsequence of
the source document.
educe.stac.oneoff.weave.tgt_gaps(matches)
Given matches between the source and target document, return the spaces between these matches as target offset
and size (a bit like the matches). By rights this should be empty, but you never know
educe.stac.sanity package
Subpackages
educe.stac.sanity.checks package
Submodules
educe.stac.sanity.checks.annotation module STAC sanity-check: annotation oversights
class educe.stac.sanity.checks.annotation.FeatureItem(doc, contexts, anno, attrs, status=’missing’)
Bases: educe.stac.sanity.common.ContextItem
Annotations that are missing some feature(s)
annotations()
html()
educe.stac.sanity.checks.annotation.is_blank_edu(anno)
True if the annotation looks like it may be an unannotated EDU
educe.stac.sanity.checks.annotation.is_cross_dialogue(contexts)
The units connected by this relation (or cdu) do not inhabit the same dialogue.
educe.stac.sanity.checks.annotation.is_fixme(feature_value)
True if a feature value has a fixme value
educe.stac.sanity.checks.annotation.is_review_edu(anno)
True if the annotation has a FIXME tagged type
educe.stac.sanity.checks.annotation.missing_features(doc, anno)
Return set of attribute names for any expected features that may be missing for this annotation
educe.stac.sanity.checks.annotation.run(inputs, k)
Add any annotation omission errors to the current report
educe.stac.sanity.checks.annotation.search_for_fixme_features(inputs, k)
Return a ReportItem for any annotations in the document whose features have a fixme type
4.3. Subpackages
89