Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/18/15 18:24:58 (9 years ago)
Author:
gkronber
Message:

#2283 fixed compile errors and refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/RoyalSymbolProblem.cs

    r11742 r11793  
    1717    public RoyalSymbolProblem() {
    1818      this.grammar = new Grammar(grammarString);
     19      //TODO: allow configuration of the number of symbols
    1920    }
    2021
     
    3132      // sentence must contain only terminal symbols, we are not checking if the sentence is syntactically valid here because it would be too slow!
    3233      Debug.Assert(sentence.Any(c => grammar.IsTerminal(c)));
    33       return regex.Matches(sentence).Count;
     34      return regex.Matches(sentence.ToString()).Count;
    3435    }
    3536    public string CanonicalRepresentation(string terminalPhrase) {
     37      throw new NotImplementedException();
    3638      return terminalPhrase;
    3739    }
Note: See TracChangeset for help on using the changeset viewer.