/** * Set the max number of parses that are computed. Default: 1000; default is set in * link-grammar/jni-client.c * * <p>Sets the max number of linkages (parses) that are computed by link-grammar. This should be * set to a value that is significantly larger than the expected number of parses for a sentence. * Setting this below 1000 is strongly discourged, you won't get what you want. Use setMaxParses() * above to control the number of parses displayed. * * <p>Caution: Setting this number too low will result in a **random** subset of possible linakges * to be explored. This random subset might not include the best (highest-scoring) linkages, which * is probably not what you want. This method is here really so as to increase the number of * linakges about 1000 (for the ANY language). */ public void setMaxLinkages(int maxLinkages) { if (!_is_inited) init(); parser.setMaxLinkages(maxLinkages); }