@Test public void testTooLong() throws AnalysisException { StringBuilder inputSB = new StringBuilder(); for (int i = 0; i < 100; i++) { inputSB.append("Johnson J, Dutton S, Briffa E, "); } inputSB.append("Broadband learning for doctors. BMJ 2006, 332, 1403-1404."); String input = inputSB.toString(); BibEntry actual = parser.parseBibReference(input); assertEquals(input, actual.getText()); assertTrue(actual.getFieldKeys().isEmpty()); }
@Override public BibEntry parseBibReference(String text) throws AnalysisException { Citation citation = parseToTokenList(text); return CitationUtils.citationToBibref(citation); }
CRFBibReferenceParser implements BibReferenceParser<BibEntry> { @Override public BibEntry parseBibReference(String text) throws AnalysisException { Citation citation = parseToTokenList(text); return CitationUtils.citationToBibref(citation); } }
CRFBibReferenceParser implements BibReferenceParser<BibEntry> { @Override public BibEntry parseBibReference(String text) throws AnalysisException { Citation citation = parseToTokenList(text); return CitationUtils.citationToBibref(citation); } CRFBibReferenceParser(String modelFile, String termsFile, String journalsFile, String surnamesFile, String instsFile);  CRFBibReferenceParser(InputStream modelIS, InputStream termsIS, InputStream journalsIS, InputStream surnamesIS, InputStream instsIS); }
CRFBibReferenceParser implements BibReferenceParser<BibEntry> { @Override public BibEntry parseBibReference(String text) throws AnalysisException { Citation citation = parseToTokenList(text); return CitationUtils.citationToBibref(citation); } CRFBibReferenceParser(String modelFile, String termsFile, String journalsFile, String surnamesFile, String instsFile);  CRFBibReferenceParser(InputStream modelIS, InputStream termsIS, InputStream journalsIS, InputStream surnamesIS, InputStream instsIS); void loadModels(InputStream modelIS, InputStream termsIS, InputStream journalsIS, InputStream surnamesIS, InputStream instsIS); @Override BibEntry parseBibReference(String text); Citation parseToTokenList(String text); static CRFBibReferenceParser getInstance(); static void main(String[] args); }
CRFBibReferenceParser implements BibReferenceParser<BibEntry> { @Override public BibEntry parseBibReference(String text) throws AnalysisException { Citation citation = parseToTokenList(text); return CitationUtils.citationToBibref(citation); } CRFBibReferenceParser(String modelFile, String termsFile, String journalsFile, String surnamesFile, String instsFile);  CRFBibReferenceParser(InputStream modelIS, InputStream termsIS, InputStream journalsIS, InputStream surnamesIS, InputStream instsIS); void loadModels(InputStream modelIS, InputStream termsIS, InputStream journalsIS, InputStream surnamesIS, InputStream instsIS); @Override BibEntry parseBibReference(String text); Citation parseToTokenList(String text); static CRFBibReferenceParser getInstance(); static void main(String[] args);  }