|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.illinois.cs.cogcomp.lbj.coref.filters.Filter<Mention>
edu.illinois.cs.cogcomp.lbj.coref.filters.MFilter
edu.illinois.cs.cogcomp.lbj.coref.filters.TypeMFilter
public class TypeMFilter
Filters EntityMentions by type
| Field Summary | |
|---|---|
protected java.util.List<java.lang.String> |
m_includeETypes
|
protected java.util.List<java.lang.String> |
m_includeMTypes
|
| Constructor Summary | |
|---|---|
TypeMFilter(java.util.List<java.lang.String> includeMTypes)
Constructs a filter that allows only mentions having a given mention type. |
|
TypeMFilter(java.util.List<java.lang.String> includeMTypes,
java.util.List<java.lang.String> includeETypes)
Constructs a filter that allows only mentions having a given mention type and a given entity type. |
|
TypeMFilter(java.lang.String includeMType)
Constructs a filter that allows only mentions having a mention type. |
|
TypeMFilter(java.lang.String includeMType,
java.lang.String includeEType)
Constructs a filter that allows only mentions having a given mention type and a given entity type. |
|
| Method Summary | |
|---|---|
boolean |
accept(Mention m)
Determines whether m should be accepted by this filter. |
void |
setEType(java.lang.String eType)
Make eType the only accepted entity type. |
void |
setETypes(java.util.List<java.lang.String> eTypes)
Sets the allowed entity types. |
void |
setMType(java.lang.String mType)
Make mType the only accepted mention type. |
void |
setMTypes(java.util.List<java.lang.String> mTypes)
Sets the allowed mention types. |
| Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.filters.Filter |
|---|
getFiltered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<java.lang.String> m_includeMTypes
protected java.util.List<java.lang.String> m_includeETypes
| Constructor Detail |
|---|
public TypeMFilter(java.lang.String includeMType)
includeMType - The allowed mention type;
if null, all mention types are allowed.
public TypeMFilter(java.lang.String includeMType,
java.lang.String includeEType)
includeMType - The allowed mention type; if null, all mention types
are allowed.includeEType - The allowed entity type; if null, all entity types
are allowed.
public TypeMFilter(java.util.List<java.lang.String> includeMTypes,
java.util.List<java.lang.String> includeETypes)
includeMTypes - The allowed mention types;
if null, all mention types
are allowed; if empty, no mention types are allowed.includeETypes - The allowed entity types; if null, all entity types
are allowed; if empty, no entity types are allowed.public TypeMFilter(java.util.List<java.lang.String> includeMTypes)
includeMTypes - The allowed mention types;
if null, all mention types
are allowed; if empty, no mention types are allowed. Backed internally.| Method Detail |
|---|
public boolean accept(Mention m)
m should be accepted by this filter.
accept in class MFilterm - The mention in question.
public void setEType(java.lang.String eType)
eType the only accepted entity type.
public void setETypes(java.util.List<java.lang.String> eTypes)
eTypes - The allowed entity types; if null, all entity types
are allowed; if empty, no entity types are allowed.public void setMType(java.lang.String mType)
mType the only accepted mention type.
public void setMTypes(java.util.List<java.lang.String> mTypes)
mTypes - The allowed mention types; if null, all mention types
are allowed; if empty, no mention types are allowed. Backed internally.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||