question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature: Merge multiple `Doc()` objects into one

See original GitHub issue

When processing large documents, I usually process sentence by sentence. Then I have numerous Doc() objects per document. It’ll be great if I could merge those objects into one then serialize/save to disk.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:27
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
honnibalcommented, May 2, 2018

@kyoungrok0517 If you’re saving to disk, then I would suggest the best approach would be to export the annotations to numpy arrays, and then concatenate the arrays. You’d just have to keep an array of lengths to let you unconcatenate the list

Agree that it would be good to have better support for this in the library.

0reactions
github-actions[bot]commented, Oct 31, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to merge multiple documents and keep format in word?
1. Create a new Word document you will place the merged documents, and then click Insert > Object > Text from File. See...
Read more >
Merge features into one feature—ArcGIS Pro | Documentation
In the Modify Features pane, click Merge Merge to combine two or more features on the same layer that share coincident vertices into...
Read more >
The S-Docs Mass Merge Feature - S-Docs for Salesforce
Additionally, the mass merge feature provides the ability to merge an entire batch of documents into a single document in a matter of...
Read more >
How to merge Word documents - Office - Microsoft Learn
Describes how to merge multiple Word documents into one. ... Select Object, and then select Text from File from the drop-down menu.
Read more >
How to Merge or Combine Multiple Word File to One documents
Assalamu Walaikum, In this video, I will present to you, How to Merge or Combine Multiple Word Files into One documents lets get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found