<commit_before>package scalanlp.parser
package projections

import scalanlp.util.Index

/**
 * 
 * @author dlwh
 */

case class GrammarProjections[C,F](labels: ProjectionIndexer[C,F], rules: ProjectionIndexer[Rule[C],Rule[F]]) {
  def compose[F2](other: GrammarProjections[F,F2]) = new GrammarProjections(labels compose other.labels, rules compose other.rules)
<commit_msg>readded projections thingy.<commit_after>package scalanlp.parser
package projections

import scalanlp.util.Index

/**
 * 
 * @author dlwh
 */

@SerialVersionUID(1L)
case class GrammarProjections[C,F](labels: ProjectionIndexer[C,F], rules: ProjectionIndexer[Rule[C],Rule[F]]) {
  def compose[F2](other: GrammarProjections[F,F2]) = new GrammarProjections(labels compose other.labels, rules compose other.rules)

{'fraction_non_alphanumeric': 0.12531969309462915, 'fraction_numerical': 0.00639386189258312, 'mean_word_length': 7.072164948453608, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3140731', 'n_tokens_mistral': 265, 'n_tokens_neox': 255, 'n_words': 51}