src/Generic/patterns/PatternSet.cpp
// Create the word set map.

Create the word set map.
Create the word set map .
BOOST_FOREACH(Sexp *wordSetSexp, wordsetsSexps) {
		int n_wordsets = wordSetSexp->getNumChildren() - 1;
		for (int j = 0; j < n_wordsets; j++) {
			PatternWordSet_ptr wordSet = boost::make_shared<PatternWordSet>(wordSetSexp->getNthChild(j+1), _wordSets);
			if (_wordSets.find(wordSet->getLabel()) != _wordSets.end()) {
				std::stringstream error;
				error << "Duplicate wordset label: " << wordSet->getLabel();
				throw UnexpectedInputException("PatternSet::PatternSet()", error.str().c_str());
			}
			_wordSets[wordSet->getLabel()] = wordSet;
		}
	}
BOOST_FOREACH ( Sexp * wordSetSexp , wordsetsSexps ) { int n_wordsets = wordSetSexp -> getNumChildren ( ) - 1 ; for ( int j = 0 ; j < n_wordsets ; j ++ ) { PatternWordSet_ptr wordSet = boost :: make_shared < PatternWordSet > ( wordSetSexp -> getNthChild ( j + 1 ) , _wordSets ) ; if ( _wordSets . find ( wordSet -> getLabel ( ) ) != _wordSets . end ( ) ) { std :: stringstream error ; error << " " << wordSet -> getLabel ( ) ; throw UnexpectedInputException ( " " , error . str ( ) . c_str ( ) ) ; } _wordSets [ wordSet -> getLabel ( ) ] = wordSet ; } }
Create the word set map.
Create the word set map .