src/Generic/patterns/PatternSet.cpp
// Create the entity label patterns.

Create the entity label patterns.
Create the entity label patterns .
BOOST_FOREACH(Sexp *entityLabelSexp, entitylabelsSexps) {
		int n_entity_label_patterns = entityLabelSexp->getNumChildren() - 1;
		for (int j = 0; j < n_entity_label_patterns; j++) {
			EntityLabelPattern_ptr entityLabelPattern = boost::make_shared<EntityLabelPattern>(
				entityLabelSexp->getNthChild(j+1), _entityLabels, _wordSets);
			if (entityLabelPattern->hasPattern()) {
				entityLabelPattern->replaceShortcuts(_referencePatterns);
			}
			_entityLabelPatterns.push_back(entityLabelPattern);
			_entityLabels.insert(entityLabelPattern->getLabel());
		}
	}
BOOST_FOREACH ( Sexp * entityLabelSexp , entitylabelsSexps ) { int n_entity_label_patterns = entityLabelSexp -> getNumChildren ( ) - 1 ; for ( int j = 0 ; j < n_entity_label_patterns ; j ++ ) { EntityLabelPattern_ptr entityLabelPattern = boost :: make_shared < EntityLabelPattern > ( entityLabelSexp -> getNthChild ( j + 1 ) , _entityLabels , _wordSets ) ; if ( entityLabelPattern -> hasPattern ( ) ) { entityLabelPattern -> replaceShortcuts ( _referencePatterns ) ; } _entityLabelPatterns . push_back ( entityLabelPattern ) ; _entityLabels . insert ( entityLabelPattern -> getLabel ( ) ) ; } }
Create the entity label patterns.
Create the entity label patterns .
// Even though we don't have any reference patterns yet, we call replaceShortcuts
 // because we need CombinationPatterns to update their type correctly.
