We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to use Mykytea with no word segmentation mode (-nows). But it seems not to be possible in current implementation.
Example of -nows shows below.
-nows
echo '私 は 猫 で す'| kytea -nows
私/代名詞/わたくし は/助詞/は 猫/名詞/ねこ で/助動詞/で す/語尾/す
My code to try to use -nows shows below.
import Mykytea if __name__ == '__main__': kytea_tagger = Mykytea.Mykytea('-nows') print(kytea_tagger.getTagsToString('私 は 猫 で す'))
And I execute this program to get the result...
python main.py
私/代名詞/わたくし /補助記号/UNK は/助詞/は /補助記号/UNK 猫/名詞/ねこ /補助記号/UNK で/助動詞/で /補助記号/UNK す/語尾/す
There are unnecessary UNK symbols in the analysis result. This is same as analyzing space splitted sentence with -nows.
UNK
echo '私 は 猫 で す'| kytea`
私/代名詞/わたくし \ /補助記号/UNK は/助詞/は \ /補助記号/UNK 猫/名詞/ねこ \ /補助記号/UNK で/助動詞/で \ /補助記号/UNK す/語尾/す
So I think Mykytea() could not take the -nows option correctly. Regards,
The text was updated successfully, but these errors were encountered:
Current implementation of getTags* doesn't care -nows option appropriately. MyKytea should consider the configuration via config->getDoWS() whether it is required to call calculateWS(). ref: https://github.com/neubig/kytea/blob/e5d4b765a6140508d56bf2a06676c0c4b1abfc50/src/test/test-analysis.h#L220
config->getDoWS()
calculateWS()
Sorry, something went wrong.
No branches or pull requests
I want to use Mykytea with no word segmentation mode (-nows).
But it seems not to be possible in current implementation.
Example of
-nows
shows below.My code to try to use
-nows
shows below.And I execute this program to get the result...
Problem
There are unnecessary
UNK
symbols in the analysis result.This is same as analyzing space splitted sentence with
-nows
.So I think Mykytea() could not take the
-nows
option correctly.Regards,
The text was updated successfully, but these errors were encountered: