public override ICollection <string> GetCliqueFeatures(PaddedList <In> info, int position, Clique clique) { IList <string> features = new List <string>(Arrays.AsList(info[position].Word().Split(" "))); return(features); }
public CliqueEqualityWrapper(Clique c) { this.c = c; }
/// <summary> /// This method returns a /// <see cref="System.Collections.ICollection{E}"/> /// of the features /// calculated for the word at the specified position in info (the list of /// words) for the specified /// <see cref="Clique"/> /// . /// It should return the actual String features, <b>NOT</b> wrapped in any /// other object, as the wrapping /// will be done automatically. /// Because it takes a /// <see cref="Edu.Stanford.Nlp.Util.PaddedList{E}"/> /// you don't /// need to worry about indices which are outside of the list. /// </summary> /// <param name="info">A PaddedList of the feature-value pairs</param> /// <param name="position">The current position to extract features at</param> /// <param name="clique"> /// The particular clique for which to extract features. It /// should be a member of the knownCliques list. /// </param> /// <returns> /// A /// <see cref="System.Collections.ICollection{E}"/> /// of the features /// calculated for the word at the specified position in info. /// </returns> public abstract ICollection <string> GetCliqueFeatures(PaddedList <In> info, int position, Clique clique);