Results are different between command line and python script
See original GitHub issueHi,
I parsed the same word, but the results differed between the Command Line and Python Script.
Commas Line
$ginza
mode is C
disabling sentence separator
ICカード
text = ICカード
1 ICカード ICカード NOUN 名詞-普通名詞-一般 _ 0 root _ BunsetuBILabel=B|BunsetuPositionType=ROOT|SpaceAfter=No|NP_B
python script
nlp = spacy.load('ja_ginza')
doc = self.nlp("ICカード")
print(doc.to_json())
{'text': 'ICカード', 'ents': [{'start': 0, 'end': 5, 'label': 'PRODUCT'}], 'sents': [{'start': 0, 'end': 5}], 'tokens': [{'id': 0, 'start': 0, 'end': 2, 'pos': 'PROPN', 'tag': '名詞-固有名詞-一般', 'dep': 'compound', 'head': 1}, {'id': 1, 'start': 2, 'end': 5, 'pos': 'NOUN', 'tag': '名詞-普通名詞-一般', 'dep': 'ROOT', 'head': 1}]}
It was divided. “IC” and “カード”.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Differences between running python from the command ...
It's a packet sniffing utility (using scapy.sniff()) that sends results using a twisted server. The sniffing filter selects the correct packets ...
Read more >What's the Difference Between 'py' and 'python' in ...
The command python refers to the Python executable of the default Python installation. Technically, the path of this version is stored inside the...
Read more >What is the Difference between Interactive and Script Mode ...
It is a way of executing a Python program in which statements are written in command prompt and result is obtained on the...
Read more >Python Programming in Interactive vs Script Mode
In Python, there are two options/methods for running code: Interactive mode; Script mode. In this article, we will see the difference ...
Read more >Python Command Line Arguments
Python command line arguments are the key to converting your programs into useful ... Any minor changes in the input will result in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @KoichiYasuoka, Thank you for your answer.
I saw a sudachi_tokenizer.py Mode is set ‘A’ or ‘B’ or ‘C’, not set Tokenizer.SplitMode.X
I send pull request.
@yusuke-yaguchi Thank you for reporting the bug and sending fixing PR. I’ve merged your PR. @KoichiYasuoka Thanks for your analysis to identify the reason of this problem.