leila.patterns
Class LinearLinkage

java.lang.Object
  extended by leila.patterns.Linkage
      extended by leila.patterns.LinearLinkage
All Implemented Interfaces:
java.io.Serializable

public class LinearLinkage
extends Linkage
implements java.io.Serializable

This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name).

LinearLinkage.java is a pseudo-linkage of a sequence of words.

See Also:
Serialized Form

Field Summary
protected  java.lang.String DELIMS
          Contains the delimiters
protected  java.util.List<Link> leftLinks
          Links running to the left
 java.util.List<Link> rightLinks
          Links running to the right
static int WIDTH
          Number of tokens to be taken into account around a word
 
Fields inherited from class leila.patterns.Linkage
EMPTYLINKAGEWORDS, id, linkageWords, oldSentence
 
Constructor Summary
LinearLinkage(java.lang.String str)
          Constructs a linear linkage from a string.
 
Method Summary
 int hashCode()
          Returns a hashCode (Negative for LinearLinkages)
 java.util.List<LinkagePattern> linkagePatterns(Relation r)
          Returns a list of LinkagePatterns for all pairs of interesting words judged as EXAMPLEs by the relation.
 
Methods inherited from class leila.patterns.Linkage
find, linkagePattern, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WIDTH

public static final int WIDTH
Number of tokens to be taken into account around a word

See Also:
Constant Field Values

rightLinks

public java.util.List<Link> rightLinks
Links running to the right


leftLinks

protected java.util.List<Link> leftLinks
Links running to the left


DELIMS

protected final java.lang.String DELIMS
Contains the delimiters

See Also:
Constant Field Values
Constructor Detail

LinearLinkage

public LinearLinkage(java.lang.String str)
Constructs a linear linkage from a string. The id of a linear linkage refers only to the first 10 characters of the string (to give list entries the same id).

Method Detail

linkagePatterns

public java.util.List<LinkagePattern> linkagePatterns(Relation r)
Returns a list of LinkagePatterns for all pairs of interesting words judged as EXAMPLEs by the relation. Ignores bridges of just 1 link or too many links

Overrides:
linkagePatterns in class Linkage

hashCode

public int hashCode()
Returns a hashCode (Negative for LinearLinkages)

Overrides:
hashCode in class Linkage