/** * Construct a SeqClassifierFlags object based on the passed in properties, * and then call the other constructor. * * @param props See SeqClassifierFlags for known properties. */ public AbstractSequenceClassifier(Properties props) { this(new SeqClassifierFlags(props)); }
protected CRFClassifierFloat() { super(new SeqClassifierFlags()); }
protected CMMClassifier() { super(new SeqClassifierFlags()); }
protected CRFClassifierNonlinear() { super(new SeqClassifierFlags()); }
protected CRFClassifierWithLOP() { super(new SeqClassifierFlags()); }
protected CRFClassifier() { super(new SeqClassifierFlags()); }
props.remove(optLocalFeaturesOnly); flags = new SeqClassifierFlags(props); classifier = new CRFClassifier<>(flags);
flags = new SeqClassifierFlags(p);
rw.init(new SeqClassifierFlags()); int numDocs = 0; int numTokens = 0;
StringUtils.logInvocationString(log, args); Properties props = StringUtils.argsToProperties(args); SeqClassifierFlags flags = new SeqClassifierFlags(props, false); // false for print probs as printed in next code block
SeqClassifierFlags flags = new SeqClassifierFlags(props); flags.entitySubclassification = "noprefix"; flags.retainEntitySubclassification = false;
public static void main(String[] args) { Properties props = StringUtils.argsToProperties(args); SeqClassifierFlags flags = new SeqClassifierFlags(props); MaxMatchSegmenter seg = new MaxMatchSegmenter(); String lexiconFile = props.getProperty("lexicon");
SeqClassifierFlags flags = new SeqClassifierFlags(props); CRFClassifier<CoreLabel> crf = chooseCRFClassifier(flags); String testFile = flags.testFile;
/** * Construct a SeqClassifierFlags object based on the passed in properties, * and then call the other constructor. * * @param props * See SeqClassifierFlags for known properties. */ public AbstractSequenceClassifier(Properties props) { this(new SeqClassifierFlags(props)); }
/** * Construct a SeqClassifierFlags object based on the passed in properties, * and then call the other constructor. * * @param props See SeqClassifierFlags for known properties. */ public AbstractSequenceClassifier(Properties props) { this(new SeqClassifierFlags(props)); }
/** * Construct a SeqClassifierFlags object based on the passed in properties, * and then call the other constructor. * * @param props * See SeqClassifierFlags for known properties. */ public AbstractSequenceClassifier(Properties props) { this(new SeqClassifierFlags(props)); }
protected CRFClassifierFloat() { super(new SeqClassifierFlags()); }
protected CRFClassifierNonlinear() { super(new SeqClassifierFlags()); }
public StanfordTagger(File file) throws Exception { crf = new CRFClassifier<CoreLabel>(new SeqClassifierFlags()); crf.loadClassifierNoExceptions(file); }
public static Iterator<List<CoreLabel>> loadCoNLLDocuments(String filePath) throws IOException{ SeqClassifierFlags inputFlags = new SeqClassifierFlags(); inputFlags.entitySubclassification = "noprefix"; inputFlags.retainEntitySubclassification = true; CoNLLDocumentReaderAndWriter rw = new CoNLLDocumentReaderAndWriter(); rw.init(inputFlags); Iterator<List<CoreLabel>> documents = rw.getIterator(IOUtils.readerFromString(filePath)); return documents; }