rock3125 / enhanced-subject-verb-object-extraction

Enhanced Subject Word Object Extraction
Apache License 2.0
148 stars 50 forks source link

SVO sometimes become the OVS! #16

Open limaodaxia opened 11 months ago

limaodaxia commented 11 months ago

Hello author, you did a good job. But I found a strange thing. a same sentence is defined as different SVO structure. In the following sentence,

(Drawing includes non-English language text)

the result is [('Drawing', 'includes', 'non language text')]

but in the following sentence,

The system has a data collecting device connected with an intelligent electric energy table. The intelligent electric energy table transmits power consumption information and charging information to an electric device. The data collecting device transmits power consumption information to a low pressure electric power carrier wave transmission network through an electric power line modem. The data collection device is connected with an RS232 wire, a RS485 wire, a full speed USB port and a Bluetooth port. Intelligent meter reading concentrator system. The system has high data collecting accuracy and reliability, and reduces power consumption. The operating interface is simple in structure. The drawing shows a block diagram of an intelligent meter reading concentrator system. '(Drawing includes non-English language text)'

the last sentence(Drawing includes non-English language text) get the result ('non language text', 'include', 'Drawing') which is a reverse version of the former result. why it happened and how to recorrect it?

rock3125 commented 11 months ago

Maybe it has something to do with the brackets '(' and ') ? Try removing the brackets.

limaodaxia commented 11 months ago

Maybe it has something to do with the brackets '(' and ') ? Try removing the brackets.

In fact, maybe the brackets is not the cause. Full text is as followed

The system has a data collecting device connected with an intelligent electric energy table. The intelligent electric energy table transmits power consumption information and charging information to an electric device. The data collecting device transmits power consumption information to a low pressure electric power carrier wave transmission network through an electric power line modem. The data collection device is connected with an RS232 wire, a RS485 wire, a full speed USB port and a Bluetooth port. Intelligent meter reading concentrator system. The system has high data collecting accuracy and reliability, and reduces power consumption. The operating interface is simple in structure. The drawing shows a block diagram of an intelligent meter reading concentrator system. '(Drawing includes non-English language text)'

the full result is like this

('a data', 'have', 'The system'), ('device', 'collect', 'a data'), ('an intelligent energy table', 'connect', 'device'), ('consumption information', 'transmit', 'The intelligent energy table'), ('device', 'collect', 'The data'), ('consumption information to a carrier transmission network', 'transmit', 'The data'), ('an line modem', 'transmit', 'The data'), ('an RS232 wire , wire', 'connect', 'The collection device'), ('high data', 'have', 'The system'), ('accuracy', 'collect', 'high data'), ('reliability', 'collect', 'high data'), ('The interface', 'operating'), ('a block diagram of an intelligent meter concentrator system', 'show', 'The drawing'), ('non language text', 'include', 'Drawing')

As we can see, ('a data', 'have', 'The system'), ('non language text', 'include', 'Drawing'), ('consumption information', 'transmit', 'The intelligent energy table'), ('high data', 'have', 'The system'), ('non language text', 'include', 'Drawing') and so on are all 'OVS'.