How to adjust dependent analysis results #8905
-
|
Dependency parsing results were different for commas and the conjunction "and". First image. That' s not the result I want. When I replaced the "and" with a comma, the result of the dependency analysis was different. Would it be reasonable to add a rule to treat commas as conjunctions? Translated with www.DeepL.com/Translator Japanese to English (free version) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The dependency parser isn't rule based. The way it works it by looking at a lot of example sentences, it learns a statistical model that it uses to make decisions about how to classify things. This means that we can't "fix" or control specific instances, because everything depends on everything else. See #3052 for some details on that. You can manually edit the dependency parse, so if your conditions are regular enough, you can write code to edit things to be the way you want. For long range dependencies like this it might be hard though.
I don't understand - how does spaCy's dependency parse affect Google Translate results? |
Beta Was this translation helpful? Give feedback.
The dependency parser isn't rule based. The way it works it by looking at a lot of example sentences, it learns a statistical model that it uses to make decisions about how to classify things. This means that we can't "fix" or control specific instances, because everything depends on everything else. See #3052 for some details on that.
You can manually edit the dependency parse, so if your conditions are regular enough, you can write code to edit things to be the way you want. For long range dependencies like this it might be hard though.