Skip to content

Commit

Permalink
Update of the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JanOdijk committed Aug 29, 2024
1 parent 8d836c2 commit b0dc72e
Show file tree
Hide file tree
Showing 37 changed files with 180 additions and 399 deletions.
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

158 changes: 0 additions & 158 deletions docs/conf.py

This file was deleted.

35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

11 changes: 0 additions & 11 deletions docs/smallclausetable.csv

This file was deleted.

10 changes: 5 additions & 5 deletions src/sastadev/ASTApostfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def neologisme(stree: SynTree) -> List[SynTree]:
n]" or the special form "@n" applies. It uses the function *mdbasedquery* to
achieve this.
.. autofunction:: ASTApostfunctions::mdbasedquery
.. autofunction:: sastadev.ASTApostfunctions::mdbasedquery
'''
results1 = mdbasedquery(stree, errormarking, "['n']")
Expand All @@ -93,7 +93,7 @@ def sempar(stree: SynTree) -> List[SynTree]:
The function *sempar* identifies the nodes for which the CHAT error marking "[*
s]" applies. It uses the function *mdbasedquery* to achieve this.
.. autofunction:: ASTApostfunctions::mdbasedquery
.. autofunction:: sastadev.ASTApostfunctions::mdbasedquery
'''
Expand All @@ -106,7 +106,7 @@ def phonpar(stree: SynTree) -> List[SynTree]:
The function *phonpar* identifies the nodes for which the CHAT error marking "[*
p]" applies. It uses the function *mdbasedquery* to achieve this.
.. autofunction:: ASTApostfunctions::mdbasedquery
.. autofunction:: sastadev.ASTApostfunctions::mdbasedquery
'''
results = mdbasedquery(stree, errormarking, "['p']")
Expand Down Expand Up @@ -280,7 +280,7 @@ def getnounlemmas(allresults, _):
*allresults* and the query identifier for nouns to obtain the lemmas
for nouns.
.. autofunction:: ASTApostfunctions::getposlemmas
.. autofunction:: sastadev.ASTApostfunctions::getposlemmas
'''
result = getposlemmas(allresults, nounreskey)
Expand All @@ -293,7 +293,7 @@ def getlexlemmas(allresults, _):
*allresults* and the query identifier for lexical verbs to obtain the lemmas
for lexical verbs.
.. autofunction:: ASTApostfunctions::getposlemmas
.. autofunction:: sastadev.ASTApostfunctions::getposlemmas
'''
result = getposlemmas(allresults, lexreskey)
return result
Expand Down
38 changes: 19 additions & 19 deletions src/sastadev/Sziplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Vr5+: through the function *vr5plus*:
.. autofunction:: Sziplus::vr5plus
.. autofunction:: sastadev.Sziplus::vr5plus
In the meantime a different implementation using macros has replaced this function,
so it has become obsolete
* 6+: through the function *sziplus6*:
.. autofunction:: Sziplus::sziplus6
.. autofunction:: sastadev.Sziplus::sziplus6
'''

Expand Down Expand Up @@ -56,7 +56,7 @@ def isindexnode(node: SynTree) -> bool:
The function *noposcatin* is defined as follows:
.. autofunction:: Sziplus::noposcatin
.. autofunction:: sastadev.Sziplus::noposcatin
* **Remark** The function *noposcatin* is better replaced by a function that checks for the absence of the attributes *cat* and *word*.
Expand All @@ -70,7 +70,7 @@ def isvcinforppart(node: SynTree) -> bool:
The function *isvcinforppart* determines whether a node is a node for a nonfinite
verbal complement. That is the case if
* its category is one of *inf*, *teinf*, or *ppart*
* its category is one of *inf*, *teinf*, or *ppart*
* its relation has the value *vc*
'''
Expand All @@ -85,7 +85,7 @@ def isvcinforppart(node: SynTree) -> bool:

def isrealnode(node: SynTree) -> bool:
'''
The fucntion *isrealnode* determines whether a nide is a real node, which it is if:
The function *isrealnode* determines whether a nide is a real node, which it is if:
* it is not a node for an interpunction sign
* it is not a nonfinite complement
Expand All @@ -94,7 +94,7 @@ def isrealnode(node: SynTree) -> bool:
The function *isindexnode* is defined as follows:
.. autofunction:: Sziplus::isindexnode
.. autofunction:: sastadev.Sziplus::isindexnode
'''
pt = getattval(node, 'pt')
rel = getattval(node, 'rel')
Expand Down Expand Up @@ -134,11 +134,11 @@ def getnodecount(clause: SynTree) -> int:
The function *isrealnode* is defined as follows:
.. autofunction:: Sziplus::isrealnode
.. autofunction:: sastadev.Sziplus::isrealnode
The function *isvcinforppart* is defined as follows:
.. autofunction:: Sziplus::isvcinforppart
.. autofunction:: sastadev.Sziplus::isvcinforppart
'''
nodectr = 0
Expand All @@ -157,11 +157,11 @@ def sziplus(syntree: SynTree, i: int) -> List[SynTree]:
The function *sziplus* takes a SynTree *syntree* and an integer *i* and uses the
function *nodeiplus* by applying it to *syntree*, *i*, and *clausequery*:
.. autodata:: Sziplus::clausequery
.. autodata:: sastadev.Sziplus::clausequery
The function *nodeiplus* is defined as follows:
.. autofunction:: Sziplus::nodeiplus
.. autofunction:: sastadev.Sziplus::nodeiplus
'''
results = nodeiplus(syntree, i, clausequery)
Expand All @@ -178,11 +178,12 @@ def vr5plus(syntree: SynTree) -> List[SynTree]:
The Xpath *vrquery* is defined as follows:
.. autodata:: Sziplus::vrquery
.. autodata:: sastadev.Sziplus::vrquery
The function *nodeiplus* is defined as follows:
.. autofunction:: Sziplus::nodeiplus
.. autofunction:: sastadev.Sziplus::nodeiplus
'''
results = nodeiplus(syntree, 5, vrquery)
return results
Expand All @@ -198,7 +199,8 @@ def nodeiplus(syntree: SynTree,
It makes use of the function *getnodecount*, which is defined as follows:
.. autofunction:: Sziplus::getnodecount
.. autofunction:: sastadev.Sziplus::getnodecount
'''
clauses = syntree.xpath(query)
results = []
Expand All @@ -211,14 +213,12 @@ def nodeiplus(syntree: SynTree,

def sziplus6(syntree: SynTree) -> List[SynTree]:
'''
The function *sziplus6* implements the TARSP language measure *6+*. It makes use of
the function *sziplus*, which is applied to the *syntree* in combination with the
integer *6*.
The function *sziplus6* implements the TARSP language measure *6+*. It makes use of the function *sziplus*, which is applied to the *syntree* in combination with the integer *6*.
.. autofunction:: sastadev.Sziplus::sziplus
.. autofunction:: Sziplus::sziplus
* **Remark** The function *sziplus* was written in an early stage, but probably can now be better rewritten as a composed language measure.
* **Remark** The function *sziplus* was written in an early stage, but probably can now be better
rewritten as a composed language measure.
'''
results = sziplus(syntree, 6)
Expand Down
Loading

0 comments on commit b0dc72e

Please sign in to comment.