/** Create a POS tagger annotator. * * @param posLoc Location of POS tagger model (may be file path, classpath resource, or URL * @param verbose Whether to show verbose information on model loading * @param maxSentenceLength Sentences longer than this length will be skipped in processing * @param numThreads The number of threads for the POS tagger annotator to use */ public POSTaggerAnnotator(String posLoc, boolean verbose, int maxSentenceLength, int numThreads) { this(loadModel(posLoc, verbose), maxSentenceLength, numThreads); }
public POSTaggerAnnotator(String annotatorName, Properties props) { String posLoc = props.getProperty(annotatorName + ".model"); if (posLoc == null) { posLoc = DefaultPaths.DEFAULT_POS_MODEL; } boolean verbose = PropertiesUtils.getBool(props, annotatorName + ".verbose", false); this.pos = loadModel(posLoc, verbose); this.maxSentenceLength = PropertiesUtils.getInt(props, annotatorName + ".maxlen", Integer.MAX_VALUE); this.nThreads = PropertiesUtils.getInt(props, annotatorName + ".nthreads", PropertiesUtils.getInt(props, "nthreads", 1)); this.reuseTags = PropertiesUtils.getBool(props, annotatorName + ".reuseTags", false); }
/** Create a POS tagger annotator. * * @param posLoc Location of POS tagger model (may be file path, classpath resource, or URL * @param verbose Whether to show verbose information on model loading * @param maxSentenceLength Sentences longer than this length will be skipped in processing * @param numThreads The number of threads for the POS tagger annotator to use */ public POSTaggerAnnotator(String posLoc, boolean verbose, int maxSentenceLength, int numThreads) { this(loadModel(posLoc, verbose), maxSentenceLength, numThreads); }
/** Create a POS tagger annotator. * * @param posLoc Location of POS tagger model (may be file path, classpath resource, or URL * @param verbose Whether to show verbose information on model loading * @param maxSentenceLength Sentences longer than this length will be skipped in processing * @param numThreads The number of threads for the POS tagger annotator to use */ public POSTaggerAnnotator(String posLoc, boolean verbose, int maxSentenceLength, int numThreads) { this(loadModel(posLoc, verbose), maxSentenceLength, numThreads); }
public POSTaggerAnnotator(String posLoc, boolean verbose, int maxSentenceLength) { this(loadModel(posLoc, verbose), verbose, maxSentenceLength); }
public POSTaggerAnnotator(String annotatorName, Properties props) { String posLoc = props.getProperty(annotatorName + ".model"); if (posLoc == null) { posLoc = DefaultPaths.DEFAULT_POS_MODEL; } boolean verbose = PropertiesUtils.getBool(props, annotatorName + ".verbose", false); this.pos = loadModel(posLoc, verbose); this.maxSentenceLength = PropertiesUtils.getInt(props, annotatorName + ".maxlen", Integer.MAX_VALUE); this.nThreads = PropertiesUtils.getInt(props, annotatorName + ".nthreads", PropertiesUtils.getInt(props, "nthreads", 1)); this.reuseTags = PropertiesUtils.getBool(props, annotatorName + ".reuseTags", false); }
public POSTaggerAnnotator(String annotatorName, Properties props) { String posLoc = props.getProperty(annotatorName + ".model"); if (posLoc == null) { posLoc = DefaultPaths.DEFAULT_POS_MODEL; } boolean verbose = PropertiesUtils.getBool(props, annotatorName + ".verbose", false); this.pos = loadModel(posLoc, verbose); this.maxSentenceLength = PropertiesUtils.getInt(props, annotatorName + ".maxlen", Integer.MAX_VALUE); this.nThreads = PropertiesUtils.getInt(props, annotatorName + ".nthreads", PropertiesUtils.getInt(props, "nthreads", 1)); this.reuseTags = PropertiesUtils.getBool(props, annotatorName + ".reuseTags", false); }