Last active
August 29, 2015 14:03
-
-
Save chezou/2e771c246bd04c56d062 to your computer and use it in GitHub Desktop.
patch for kytea 0.4.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/lib/kytea.cpp b/src/lib/kytea.cpp | |
| index 8dbae30..04324c3 100644 | |
| --- a/src/lib/kytea.cpp | |
| +++ b/src/lib/kytea.cpp | |
| @@ -74,6 +74,11 @@ void Kytea::addTag(typename Dictionary<Entry>::WordMap& allWords, const KyteaStr | |
| Entry::setInDict(it->second->inDict,dict); | |
| } | |
| } | |
| + | |
| + | |
| +template | |
| +void Kytea::addTag<ModelTagEntry>(Dictionary<ModelTagEntry>::WordMap& allWords, const KyteaString & word, int lev, const KyteaString * tag, int dict); | |
| + | |
| template <class Entry> | |
| void Kytea::addTag(typename Dictionary<Entry>::WordMap& allWords, const KyteaString & word, const KyteaTag * tag, int dict) { | |
| addTag<Entry>(allWords,word,(tag?&tag->first:0),dict); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment