Java Reference
In-Depth Information
+ "passage 30. They were routinely grown at 37°C in
Dulbecco's "
+ "modified Eagle's medium (DMEM) containing 10 % fetal
bovine "
+ "serum (FBS), 2 mM glutamine, 1 mM sodium pyruvate,
and 25 "
+ "mM glucose (Invitrogen, Carlsbad, CA, USA) in a
humidified "
+ "atmosphere containing 5% CO2. For precursor and
13C-sugar "
+ "experiments, tissue culture treated polystyrene 35
mm "
+ "dishes (Corning Inc, Lowell, MA, USA) were seeded
with 2 "
+ "× 106 cells and grown to confluency in DMEM.";
The code that follows is based on the SentenceChunker class, as demonstrated in the
previous section. The difference is in the use of the MedlineSentenceModel class:
TokenizerFactory tokenizerfactory =
IndoEuropeanTokenizerFactory.INSTANCE;
MedlineSentenceModel sentenceModel = new
MedlineSentenceModel();
SentenceChunker sentenceChunker =
new SentenceChunker(tokenizerfactory, sentenceModel);
Chunking chunking = sentenceChunker.chunk(
paragraph.toCharArray(), 0, paragraph.length());
Set<Chunk> sentences = chunking.chunkSet();
String slice = chunking.charSequence().toString();
for (Chunk sentence : sentences) {
System.out.println("["
+ slice.substring(sentence.start(), sentence.end())
+ "]");
}
The output is as follows:
[HepG2 cells were obtained from the American Type Culture
Collection (Rockville, MD, USA) and were used only until
Search WWH ::




Custom Search