edu.stanford.nlp.ling
Interface CoreAnnotation<V>

All Superinterfaces:
TypesafeMap.Key<CoreMap,V>
All Known Subinterfaces:
CoreLabel.GenericAnnotation<T>
All Known Implementing Classes:
CoreAnnotations.AbbrAnnotation, CoreAnnotations.AbgeneAnnotation, CoreAnnotations.AbstrAnnotation, CoreAnnotations.AfterAnnotation, CoreAnnotations.AfterSGMLAnnotation, CoreAnnotations.AnswerAnnotation, CoreAnnotations.AnswerObjectAnnotation, CoreAnnotations.ArgDescendentAnnotation, CoreAnnotations.ArgumentAnnotation, CoreAnnotations.BagOfWordsAnnotation, CoreAnnotations.BeAnnotation, CoreAnnotations.BeforeAnnotation, CoreAnnotations.BeginPositionAnnotation, CoreAnnotations.BestCliquesAnnotation, CoreAnnotations.BestFullAnnotation, CoreAnnotations.CategoryAnnotation, CoreAnnotations.CategoryFunctionalTagAnnotation, CoreAnnotations.CharacterOffsetEnd, CoreAnnotations.CharacterOffsetStart, CoreAnnotations.CharAnnotation, CoreAnnotations.ChineseCharAnnotation, CoreAnnotations.ChineseIsSegmentedAnnotation, CoreAnnotations.ChineseOrigSegAnnotation, CoreAnnotations.ChineseSegAnnotation, CoreAnnotations.ChunkAnnotation, CoreAnnotations.CoarseTagAnnotation, CoreAnnotations.CoNLLDepAnnotation, CoreAnnotations.CoNLLDepParentIndexAnnotation, CoreAnnotations.CoNLLDepTypeAnnotation, CoreAnnotations.CoNLLPredicateAnnotation, CoreAnnotations.CoNLLSRLAnnotation, CoreAnnotations.ContextsAnnotation, CoreAnnotations.CopyAnnotation, CoreAnnotations.CorefAnnotation, CoreAnnotations.CostMagnificationAnnotation, CoreAnnotations.CovertIDAnnotation, CoreAnnotations.CurrentAnnotation, CoreAnnotations.D2_LBeginAnnotation, CoreAnnotations.D2_LEndAnnotation, CoreAnnotations.D2_LMiddleAnnotation, CoreAnnotations.DayAnnotation, CoreAnnotations.DependentsAnnotation, CoreAnnotations.DictAnnotation, CoreAnnotations.DistSimAnnotation, CoreAnnotations.DoAnnotation, CoreAnnotations.DocIDAnnotation, CoreAnnotations.EndPositionAnnotation, CoreAnnotations.EntityClassAnnotation, CoreAnnotations.EntityRuleAnnotation, CoreAnnotations.EntityTypeAnnotation, CoreAnnotations.FeaturesAnnotation, CoreAnnotations.FemaleGazAnnotation, CoreAnnotations.FirstChildAnnotation, CoreAnnotations.FreqAnnotation, CoreAnnotations.GazAnnotation, CoreAnnotations.GazetteerAnnotation, CoreAnnotations.GeniaAnnotation, CoreAnnotations.GoldAnswerAnnotation, CoreAnnotations.GovernorAnnotation, CoreAnnotations.GrandparentAnnotation, CoreAnnotations.HaveAnnotation, CoreAnnotations.HeadWordStringAnnotation, CoreAnnotations.HeightAnnotation, CoreAnnotations.IDAnnotation, CoreAnnotations.IDFAnnotation, CoreAnnotations.INAnnotation, CoreAnnotations.IndexAnnotation, CoreAnnotations.InterpretationAnnotation, CoreAnnotations.IsDateRangeAnnotation, CoreAnnotations.IsURLAnnotation, CoreAnnotations.LabelAnnotation, CoreAnnotations.LastGazAnnotation, CoreAnnotations.LastTaggedAnnotation, CoreAnnotations.LBeginAnnotation, CoreAnnotations.LeftTermAnnotation, CoreAnnotations.LemmaAnnotation, CoreAnnotations.LEndAnnotation, CoreAnnotations.LengthAnnotation, CoreAnnotations.LMiddleAnnotation, CoreAnnotations.MaleGazAnnotation, CoreAnnotations.MarkingAnnotation, CoreAnnotations.MonthAnnotation, CoreAnnotations.NeighborsAnnotation, CoreAnnotations.NERAnnotation, CoreAnnotations.NERIDAnnotation, CoreAnnotations.NERTagAnnotation, CoreAnnotations.NormalizedNERAnnotation, CoreAnnotations.NotAnnotation, CoreAnnotations.OriginalAnswerAnnotation, CoreAnnotations.OriginalCharAnnotation, CoreAnnotations.ParaPosAnnotation, CoreAnnotations.ParentAnnotation, CoreAnnotations.PercentAnnotation, CoreAnnotations.PolarityAnnotation, CoreAnnotations.PositionAnnotation, CoreAnnotations.PossibleAnswersAnnotation, CoreAnnotations.PredictedAnswerAnnotation, CoreAnnotations.PrevChildAnnotation, CoreAnnotations.PrevSGMLAnnotation, CoreAnnotations.PriorAnnotation, CoreAnnotations.ProjectedCategoryAnnotation, CoreAnnotations.RoleAnnotation, CoreAnnotations.SectionAnnotation, CoreAnnotations.SemanticHeadTagAnnotation, CoreAnnotations.SemanticHeadWordAnnotation, CoreAnnotations.SemanticTagAnnotation, CoreAnnotations.SemanticWordAnnotation, CoreAnnotations.SentenceIDAnnotation, CoreAnnotations.SentenceIndexAnnotation, CoreAnnotations.SentencePosAnnotation, CoreAnnotations.ShapeAnnotation, CoreAnnotations.SpaceBeforeAnnotation, CoreAnnotations.SpanAnnotation, CoreAnnotations.SRLIDAnnotation, CoreAnnotations.SRLInstancesAnnotation, CoreAnnotations.StateAnnotation, CoreAnnotations.StemAnnotation, CoreAnnotations.SubcategorizationAnnotation, CoreAnnotations.TagAnnotation, CoreAnnotations.TagLabelAnnotation, CoreAnnotations.TrueTagAnnotation, CoreAnnotations.UBlockAnnotation, CoreAnnotations.UnaryAnnotation, CoreAnnotations.UnknownAnnotation, CoreAnnotations.UTypeAnnotation, CoreAnnotations.ValueAnnotation, CoreAnnotations.ValueLabelAnnotation, CoreAnnotations.VerbSenseAnnotation, CoreAnnotations.WebAnnotation, CoreAnnotations.WordAnnotation, CoreAnnotations.WordFormAnnotation, CoreAnnotations.WordPosAnnotation, CoreAnnotations.WordSenseAnnotation, CoreAnnotations.YearAnnotation, GrammaticalRelation.DependendentGRAnnotation, GrammaticalRelation.GovernorGRAnnotation, GrammaticalRelation.GrammaticalRelationAnnotation, GrammaticalRelation.KillGRAnnotation, TreeCoreAnnotations.HeadTagAnnotation, TreeCoreAnnotations.HeadWordAnnotation, TreeGraphNode.ArcLabelAnnotation

public interface CoreAnnotation<V>
extends TypesafeMap.Key<CoreMap,V>

The base class for any annotation that can be marked on a CoreMap, parameterized by the type of the value associated with the annotation. Subclasses of this class are the keys in the CoreMap, so they are instantiated only by utility methods in CoreAnnotations.

Author:
dramage, rafferty

Method Summary
 Class<V> getType()
          Returns the type associated with this annotation.
 

Method Detail

getType

Class<V> getType()
Returns the type associated with this annotation. This method must return the same class type as its value type parameter. It feels like one should be able to get away without this method, but because Java erases the generic type signature, that info disappears at runtime.



Stanford NLP Group