Skip to content

Commit

Permalink
Clarify that you can now supply annType and xxxFeatures to measuremen…
Browse files Browse the repository at this point in the history
…t helper
  • Loading branch information
ianroberts committed Jun 10, 2019
1 parent 4825980 commit 8f4fdb4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions doc/plugins.tex
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ \subsection{Configuring the Measurements SAH}
}
\end{lstlisting}

Note that the measurement helper does not need any ``annType'' or
``{\em xxx}Features'' parameters, as it is hard-coded to work only for
annotations that are produced by the measurement tagger PR. However the
constructor does take a {\tt Map} with other named arguments:
The measurement helper does accept the usual ``annType'' and
``{\em xxx}Features'' parameters but they are not required -- the ``annType''
defaults to ``Measurement'' and the nominal and float-typed features
required to support ``spec'' queries are added automatically to the features
(if any) supplied by the user. The constructor also accepts some
other named arguments specific to this helper:
\begin{lstlisting}[firstnumber=6,texcl]
// Example of how to configure a custom ``units'' file
annotation helper:new MeasurementAnnotationHelper(
Expand Down Expand Up @@ -142,10 +144,6 @@ \subsection{Configuring the Measurements SAH}
``Measurement''
\ede

The measurements SAH is pre-configured with the feature names that the
measurements tagger produces, and attempting to specify any feature name
parameters such as nominalFeatures will cause an error.

\subsubsection{Measurements helper implementation}

The {\tt MeasurementAnnotationHelper} extends the
Expand Down

0 comments on commit 8f4fdb4

Please sign in to comment.