From 1756b9ee3f985365b339706d972e8a2ee14c3ef5 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 14 Feb 2016 12:17:47 -0500 Subject: Fixed incorrect diversity of tokens containing the letters aemnou --- kgramstats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kgramstats.cpp') diff --git a/kgramstats.cpp b/kgramstats.cpp index f78336e..af24606 100644 --- a/kgramstats.cpp +++ b/kgramstats.cpp @@ -162,7 +162,7 @@ kgramstats::kgramstats(std::string corpus, int maxK) { if ( // Legacy freevars should be distinct from tokens containing similar words - (canonical.find_first_of("$name$") != std::string::npos) || (canonical.find_first_of("$noun$") != std::string::npos) + (canonical.find("$name$") != std::string::npos) || (canonical.find("$noun$") != std::string::npos) // Words with no letters will be mangled by the spell checker || (canonical.find_first_of("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz") == std::string::npos) ) -- cgit 1.4.1