congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Header
Code IndexAdd Tabnine to your IDE (free)

How to use
Header
in
de.julielab.jules.types.pubmed

Best Java code snippets using de.julielab.jules.types.pubmed.Header (Showing top 7 results out of 315)

origin: ch.epfl.bbp.nlp/bluima_typesystem

/** @generated
 * @param jcas JCas to which this Feature Structure belongs
 * @param begin offset to the begin spot in the SofA
 * @param end offset to the end spot in the SofA 
*/  
public Header(JCas jcas, int begin, int end) {
 super(jcas);
 setBegin(begin);
 setEnd(end);
 readObject();
}   
origin: ch.epfl.bbp.nlp/bluima_db

static void getNext(JCas jcas, ResultSet res_, boolean expandAbbrevs_)
    throws CollectionException {
  try {
    int pmid = res_.getInt(1);
    String title = res_.getString(2);
    String abstrct = res_.getString(3);
    if (abstrct == null)
      abstrct = "";
    Header h = new Header(jcas);
    h.setDocId(pmid + "");
    h.setTitle(title);
    h.addToIndexes();
    if (expandAbbrevs_) {
      abstrct = AbbreviationExpander.expand(abstrct);
    }
    jcas.setDocumentText(abstrct);
  } catch (SQLException e) {
    throw new CollectionException(e);
  }
}
origin: ch.epfl.bbp.nlp/bluima_mongodb

@Override
public void getNext(JCas jCas) throws IOException, CollectionException {
  DBObject doc = cur.next();
  Header h = new Header(jCas);
  h.setDocId(doc.get("_id").toString());
  h.addToIndexes();
  Map<String, Integer> dbDeleteKeys = new HashMap<String, Integer>();
  for (String deleteKeyName : keysToDelete) {
    if (doc.containsField(deleteKeyName))
      dbDeleteKeys.put(deleteKeyName, 1);
  }
  // insert all dbLists
  BasicDBObject updateQuery = new BasicDBObject("_id", doc.get("_id")
      .toString());
  BasicDBObject updateCommands = new BasicDBObject();
  updateCommands.put("$unset", dbDeleteKeys);
  coll.update(updateQuery, updateCommands, false, false);
}
origin: ch.epfl.bbp.nlp/bluima_typesystem

 public FeatureStructure createFS(int addr, CASImpl cas) {
      if (Header_Type.this.useExistingInstance) {
       // Return eq fs instance if already created
      FeatureStructure fs = Header_Type.this.jcas.getJfsFromCaddr(addr);
      if (null == fs) {
       fs = new Header(addr, Header_Type.this);
       Header_Type.this.jcas.putJfsFromCaddr(addr, fs);
       return fs;
      }
      return fs;
  } else return new Header(addr, Header_Type.this);
  }
};
origin: ch.epfl.bbp.nlp/bluima_typesystem

/** Internal - constructor used by generator 
 * @generated
 * @param addr low level Feature Structure reference
 * @param type the type of this Feature Structure 
 */
public Header(int addr, TOP_Type type) {
 super(addr, type);
 readObject();
}

origin: ch.epfl.bbp.nlp/bluima_mongodb

else
  jCas.setDocumentText("");
Header h = new Header(jCas);
h.setDocId(doc.get(ID).toString());
if (doc.containsField(TITLE) && doc.get(TITLE) != null)
  h.setTitle(doc.get(TITLE).toString());
else
  h.setTitle("");
h.addToIndexes();
origin: ch.epfl.bbp.nlp/bluima_typesystem

/** @generated
 * @param jcas JCas to which this Feature Structure belongs 
 */
public Header(JCas jcas) {
 super(jcas);
 readObject();   
} 
de.julielab.jules.types.pubmedHeader

Javadoc

The special Header for PubMed (http://www.pubmed.org) documents Updated by JCasGen Sat Mar 07 22:05:57 CET 2015 XML source: /Users/richarde/dev/bluebrain/git/Bluima/modules/bluima_typesystem/target/jcasgen/typesystem.xml

Most used methods

  • <init>
  • addToIndexes
  • setDocId
  • setTitle
  • readObject
    Write your own initialization here
  • setBegin
  • setEnd

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Runner (org.openjdk.jmh.runner)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now