/** * Parses and returns the descriptor for this collection reader. The descriptor is stored in the * uima.jar file and located using the ClassLoader. * * @return an object containing all of the information parsed from the descriptor. * @throws InvalidXMLException if the descriptor is invalid or missing */ public static CasConsumerDescription getDescription() throws InvalidXMLException { InputStream descStream = XmiWriterCasConsumerCtakes.class .getResourceAsStream( "XmiWriterCasConsumerCtakes.xml" ); return UIMAFramework.getXMLParser().parseCasConsumerDescription( new XMLInputSource( descStream, null ) ); }
/** * Parses and returns the descriptor for this collection reader. The descriptor is stored in the * uima.jar file and located using the ClassLoader. * * @return an object containing all of the information parsed from the descriptor. * * @throws InvalidXMLException * if the descriptor is invalid or missing */ public static CasConsumerDescription getDescription() throws InvalidXMLException { InputStream descStream = XCasWriterCasConsumer.class .getResourceAsStream("XCasWriterCasConsumer.xml"); return UIMAFramework.getXMLParser().parseCasConsumerDescription( new XMLInputSource(descStream, null)); }
/** * Parses and returns the descriptor for this collection reader. The descriptor is stored in the * uima.jar file and located using the ClassLoader. * * @return an object containing all of the information parsed from the descriptor. * * @throws InvalidXMLException * if the descriptor is invalid or missing */ public static CasConsumerDescription getDescription() throws InvalidXMLException { InputStream descStream = InlineXmlCasConsumer.class .getResourceAsStream("InlineXmlCasConsumer.xml"); return UIMAFramework.getXMLParser().parseCasConsumerDescription( new XMLInputSource(descStream, null)); }
/** * Parses and returns the descriptor for this collection reader. The descriptor is stored in the * uima.jar file and located using the ClassLoader. * * @return an object containing all of the information parsed from the descriptor. * @throws InvalidXMLException if the descriptor is invalid or missing */ public static CasConsumerDescription getDescription() throws InvalidXMLException { InputStream descStream = XmiWriterCasConsumerCtakes.class .getResourceAsStream( "XmiWriterCasConsumerCtakes.xml" ); return UIMAFramework.getXMLParser().parseCasConsumerDescription( new XMLInputSource( descStream, null ) ); }
/** * Parses and returns the descriptor for this collection reader. The descriptor is stored in the * uima.jar file and located using the ClassLoader. * * @return an object containing all of the information parsed from the descriptor. * * @throws InvalidXMLException * if the descriptor is invalid or missing */ public static CasConsumerDescription getDescription() throws InvalidXMLException { InputStream descStream = XCasWriterCasConsumer.class .getResourceAsStream("XmiWriterCasConsumer.xml"); return UIMAFramework.getXMLParser().parseCasConsumerDescription( new XMLInputSource(descStream, null)); }
CasConsumerDescription casConsumerDescription = UIMAFramework.getXMLParser().parseCasConsumerDescription( new XMLInputSource(new File(casConsumerDescriptorLocation))); CasConsumer casConsumer = UIMAFramework.produceCasConsumer(casConsumerDescription);
CasConsumerDescription casConsumerDescription = UIMAFramework.getXMLParser().parseCasConsumerDescription( new XMLInputSource(new File(casConsumerDescriptorLocation))); CasConsumer casConsumer = UIMAFramework.produceCasConsumer(casConsumerDescription);