code: public static void main(final String[] args) {
  
      final String goldParseString = "(TOP (S (NP (NNS Sales) (NNS executives)) (VP (VBD were) (VP (VBG examing) (NP (DT the) (NNS figures)) (PP (IN with) (NP (JJ great) (NN care))) ))  (NP (NN yesterday)) (. .) ))";
      final Span[] goldConsts = getConstituencySpans(
          Parse.parseParse(goldParseString));
  
      final String testParseString = "(TOP (S (NP (NNS Sales) (NNS executives)) (VP (VBD were) (VP (VBG examing) (NP (DT the) (NNS figures)) (PP (IN with) (NP (JJ great) (NN care) (NN yesterday))) ))  (. .) ))";
      final Span[] testConsts = getConstituencySpans(
          Parse.parseParse(testParseString));
  
      final FMeasure measure = new FMeasure();
      measure.updateScores(goldConsts, testConsts);
  
      // Expected output:
      // Precision: 0.42857142857142855
      // Recall: 0.375
      // F-Measure: 0.39999999999999997
  
      System.out.println(measure.toString());
    }
docs: TODO: Move this to a test case!