Tabnine Logo
Uby.getLexicalEntries
Code IndexAdd Tabnine to your IDE (free)

How to use
getLexicalEntries
method
in
de.tudarmstadt.ukp.lmf.api.Uby

Best Java code snippets using de.tudarmstadt.ukp.lmf.api.Uby.getLexicalEntries (Showing top 5 results out of 315)

origin: de.tudarmstadt.ukp.uby/de.tudarmstadt.ukp.uby.lmf.api-asl

/**
 * Fetches a {@link List} of {@link LexicalEntry} instances which written representation is the
 * specified word.
 *
 * Optionally lexical entries can be filtered by part-of-speech and a {@link Lexicon}.
 *
 * @param word
 *            the written representation of the lexical entries to be fetched
 * @param lexicon
 *            If not null, filters lexical entries by the specified lexicon. Note that the
 *            Lexicon instance has to be obtained beforehand.
 * @return A list of lexical entries matching the specified criteria. If no lexical entry
 *         matches the specified criteria, this method returns an empty list.
 * @see LexicalEntry#getLemma()
 */
public List<LexicalEntry> getLexicalEntries(String word, Lexicon lexicon)
{
  return getLexicalEntries(word, null, lexicon);
}
origin: de.tudarmstadt.ukp.uby/de.tudarmstadt.ukp.uby.uima-asl

private String getSemanticField(String semanticLabelValue) {
  // get the semantic field of a semantic label value of type "domain"
  String semanticField = "UNKNOWN";
  if (!uby.getLexicalEntries(semanticLabelValue,null,wordnet).isEmpty()) { 
    List<LexicalEntry> lexicalEntries = uby.getLexicalEntries(semanticLabelValue,null,wordnet);
    Sense sense = getWordnetSense(lexicalEntries);
    semanticField = getSemanticField(sense);
  }
  
  return semanticField;
}
origin: de.tudarmstadt.ukp.uby/de.tudarmstadt.ukp.uby.uima-asl

if (uby.getLexicalEntries(lemmaString,null,null).isEmpty()) { 
  return "UNKNOWN"; 
} else { // there is at least one UBY lexicon that contains the multiword as lemma					
  if (!uby.getLexicalEntries(lemmaString,null,wordnet).isEmpty()) { 
    List<LexicalEntry> lexicalEntries = uby.getLexicalEntries(lemmaString,null,wordnet);
    Sense sense = getWordnetSense(lexicalEntries);
    return getSemanticField(sense);					
    List<LexicalEntry> lexicalEntries = uby.getLexicalEntries(lemmaString,null,null);						
    String otherSemanticLabelValue = getOtherSemanticLabelValue(lexicalEntries);
    return getSemanticField(otherSemanticLabelValue);						
origin: de.tudarmstadt.ukp.uby/de.tudarmstadt.ukp.uby.uima-asl

  return "UNKNOWN"; 
} else if (uby.getLexicalEntries(token.getLemma().getValue(),null,null).isEmpty()) { 
  return "UNKNOWN"; 
} else { // there is at least one UBY lexicon that contains the lemma
  for (EPartOfSpeech pos : corePosToUbyPos(token.getPos().getType().getShortName())) {
    if (!uby.getLexicalEntries(token.getLemma().getValue(),pos,wordnet).isEmpty()) { 
      List<LexicalEntry> lexicalEntries = uby.getLexicalEntries(token.getLemma().getValue(),pos,wordnet);
      Sense sense = getWordnetSense(lexicalEntries);
      return getSemanticField(sense);
      List<LexicalEntry> lexicalEntries = uby.getLexicalEntries(token.getLemma().getValue(),null,null);						
      String otherSemanticLabelValue = getOtherSemanticLabelValue(lexicalEntries);
      return getSemanticField(otherSemanticLabelValue);						
origin: de.tudarmstadt.ukp.uby/de.tudarmstadt.ukp.uby.uima-asl

    token.getPos().getType().getShortName().equals("ADJ"))  &&
    !auxiliariesAndModals.contains(token.getLemma().getValue())) {
    mfs = getMostFrequentSense(uby.getLexicalEntries(token.getLemma().getValue(), null, null));
String syntacticBehaviour = getSyntacticBehaviour(token.getPos().getType().getShortName(),uby.getLexicalEntries(token.getLemma().getValue(),
    EPartOfSpeech.verb, null));
List<SemanticField> semanticFieldAnnotations = JCasUtil.selectCovering(jcas,
de.tudarmstadt.ukp.lmf.apiUbygetLexicalEntries

Javadoc

Fetches a List of LexicalEntry instances which written representation is the specified word. Optionally lexical entries can be filtered by part-of-speech and a Lexicon.

Popular methods of Uby

  • <init>
    Constructor for a Uby instance used for searching of different elements in a database containing UBY
  • getLexicalEntryIterator
    Returns an Iterator over LexicalEntry instances which written representation is the specified word.
  • getLexicalResource
    Fetches a LexicalResource from the UBY-Database by its name.
  • getLexiconByName
    Fetches a Lexicon with the specified name from the database accessed by this Uby instance.
  • openSession
    Opens hibernate database session

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Best plugins for Eclipse
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